UnityRef is currently in early development. Some features may be incomplete and/or not functioning.

UNITYREF

Your Pit Stop For Solving ANYTHING in Unity

architecture

[Android] Fix Malformed Input Error During lintVitalAnalyzeRelease Task

Solution

androidgradleproject architectureoptimizationmobile development

Unity 2021.x - Unity 6.3.x

Published 2 days ago

Issue

 An Execution failed for task :launcher:lintVitalAnalyzeRelease error is encountered during an Android build, specifically after updating to Unity 6 or targeting a higher targetSdkVersion. The error indicates issues with transforming .aar files and malformed input, often accompanied by warnings that file or directory paths for libraries like Firebase or Google Mobile Ads cannot be found despite being present in the project.

The Android build failure triggered by the lintVitalAnalyzeRelease task is typically caused by non-ASCII or non-English characters in project file paths, which the Gradle linting process cannot parse.

Explanation

The lintVitalAnalyzeRelease error is frequently caused by the presence of files with non-English or non-ASCII characters in your project directory. The Android build system, specifically the Gradle lint process, struggles to correctly parse file paths or contents when these characters are encountered, leading to transformation failures and malformed input errors. This issue is not strictly related to missing plugin files, but rather to the build system’s inability to process specific file names.

To resolve this:

  1. Perform a thorough review of all file and folder names within your project, especially those within assets or packages included in the Android build.
  2. Rename any file or directory found to contain characters outside the standard English alphabet (e.g., accented letters or foreign symbols).
  3. Use only standard alphanumeric characters, underscores, or hyphens for all file and directory names to ensure compatibility with the lintVitalAnalyzeRelease process.
  4. Clear the Library and Temp folders within your project to ensure any cached malformed paths are removed before the next build attempt.

Additional Tips:

  • If the error persists after renaming files, you can bypass the check by navigating to Project Settings > Player > Android > Publishing Settings and unchecking the Run Lint Vital Release option.
  • Ensure your installation path for the JDK and Android SDK in External Tools does not contain spaces or special characters, as these can also trigger lintVitalAnalyzeRelease failures.

Related Posts Haven't quite found a solution to your problem? We think these posts might help you.

Content inspired by a Unity discussion post.