Lint Vital Release Error??

Im getting an error ive never seen before -

Execution failed for task ':launcher:lintVitalRelease'

This is the Whole Output

C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.6.4.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
stderr[
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':launcher:lintVitalRelease'.
> Could not delete old C:\Users\shawn\OneDrive\Desktop\Test social\Temp\gradleOut\launcher\build\reports\lint-results-release-fatal.html
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 5s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
]
stdout[
> Configure project :launcher
WARNING: The option 'android.enableR8' is deprecated and should not be used anymore.
It will be removed in a future version of the Android Gradle plugin, and will no longer allow you to disable R8.
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\28.0.3\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-28\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only
> Task :unityLibrary:preBuild UP-TO-DATE
> Task :unityLibrary:sat.androidlib:preBuild UP-TO-DATE
> Task :launcher:preBuild UP-TO-DATE
> Task :unityLibrary:preReleaseBuild UP-TO-DATE
> Task :launcher:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:sat.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:sat.androidlib:compileReleaseAidl NO-SOURCE
> Task :launcher:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:sat.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:compileReleaseAidl NO-SOURCE
> Task :launcher:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:sat.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :launcher:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:sat.androidlib:generateReleaseResValues
> Task :unityLibrary:sat.androidlib:generateReleaseResources
> Task :unityLibrary:generateReleaseResValues UP-TO-DATE
> Task :launcher:mainApkListPersistenceRelease UP-TO-DATE
> Task :unityLibrary:generateReleaseResources UP-TO-DATE
> Task :launcher:generateReleaseResValues UP-TO-DATE
> Task :launcher:generateReleaseResources UP-TO-DATE
> Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
> Task :unityLibrary:sat.androidlib:packageReleaseResources
> Task :launcher:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:packageReleaseResources UP-TO-DATE
> Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE
> Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
> Task :unityLibrary:sat.androidlib:generateReleaseBuildConfig
> Task :unityLibrary:processReleaseManifest
> Task :unityLibrary:sat.androidlib:parseReleaseLocalResources
> Task :unityLibrary:sat.androidlib:extractDeepLinksRelease
> Task :unityLibrary:prepareLintJarForPublish UP-TO-DATE
> Task :unityLibrary:sat.androidlib:javaPreCompileRelease
> Task :unityLibrary:sat.androidlib:prepareLintJarForPublish UP-TO-DATE
> Task :unityLibrary:sat.androidlib:compileReleaseLibraryResources
> Task :unityLibrary:sat.androidlib:processReleaseManifest
> Task :unityLibrary:sat.androidlib:generateReleaseRFile
> Task :launcher:mergeReleaseResources UP-TO-DATE
> Task :unityLibrary:generateReleaseRFile UP-TO-DATE
> Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:compileReleaseShaders UP-TO-DATE
> Task :unityLibrary:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:sat.androidlib:compileReleaseJavaWithJavac
> Task :unityLibrary:sat.androidlib:mergeReleaseShaders
> Task :unityLibrary:sat.androidlib:compileReleaseShaders
> Task :unityLibrary:sat.androidlib:generateReleaseAssets
> Task :unityLibrary:sat.androidlib:packageReleaseAssets
> Task :unityLibrary:sat.androidlib:bundleLibRuntimeRelease
> Task :unityLibrary:sat.androidlib:bundleLibCompileRelease
> Task :unityLibrary:sat.androidlib:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:sat.androidlib:bundleLibResRelease
> Task :unityLibrary:sat.androidlib:mergeReleaseJniLibFolders
> Task :unityLibrary:sat.androidlib:mergeReleaseNativeLibs
> Task :unityLibrary:sat.androidlib:stripReleaseDebugSymbols
> Task :unityLibrary:packageReleaseAssets
> Task :unityLibrary:sat.androidlib:copyReleaseJniLibsProjectOnly
> Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:compileReleaseJavaWithJavac UP-TO-DATE
> Task :unityLibrary:bundleLibCompileRelease UP-TO-DATE
> Task :unityLibrary:bundleLibRuntimeRelease UP-TO-DATE
> Task :unityLibrary:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:bundleLibResRelease UP-TO-DATE
> Task :launcher:processReleaseManifest
C:\Users\shawn\OneDrive\Desktop\Test social\Temp\gradleOut\launcher\src\main\AndroidManifest.xml:24:9-31:50 Warning:
activity#com.google.firebase.auth.internal.FederatedSignInActivity@android:launchMode was tagged at AndroidManifest.xml:24 to replace other declarations but no other declaration present
> Task :launcher:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:mergeReleaseNativeLibs UP-TO-DATE
> Task :unityLibrary:stripReleaseDebugSymbols UP-TO-DATE
> Task :unityLibrary:copyReleaseJniLibsProjectOnly
> Task :launcher:processReleaseResources
> Task :launcher:compileReleaseJavaWithJavac UP-TO-DATE
> Task :launcher:compileReleaseSources UP-TO-DATE
> Task :launcher:prepareLintJar UP-TO-DATE
> Task :launcher:lintVitalRelease FAILED
54 actionable tasks: 26 executed, 28 up-to-date
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <59b231ad19bf42f6b72bf2546a9b9393>:0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <59b231ad19bf42f6b72bf2546a9b9393>:0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <59b231ad19bf42f6b72bf2546a9b9393>:0)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <59b231ad19bf42f6b72bf2546a9b9393>:0)
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <59b231ad19bf42f6b72bf2546a9b9393>:0)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <59b231ad19bf42f6b72bf2546a9b9393>:0)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <59b231ad19bf42f6b72bf2546a9b9393>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <59b231ad19bf42f6b72bf2546a9b9393>:0)
Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex) (at <59b231ad19bf42f6b72bf2546a9b9393>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <59b231ad19bf42f6b72bf2546a9b9393>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <59b231ad19bf42f6b72bf2546a9b9393>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <59b231ad19bf42f6b72bf2546a9b9393>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <b17f35b08b864a3ca09a7032b437596e>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

the same(

I went into the folder located here : C:\Users\shawn\OneDrive\Desktop\Test social\Temp\gradleOut\launcher\build\reports\lint-results-release-fatal and deleted the whole folder.

The whole build folder.

Same error . Is anybody finds the solution ?

I did what I described above.

C:\Users\shawn\OneDrive\Desktop\Test social\Temp\gradleOut\launcher\build\reports\lint-results-release-fatal

I deleted the Build folder.

I did not have this exact folder, so I deleted everything in "C:\Users\shawn\OneDrive\Desktop\Test social\Temp". Worked for me.

Well you wont have the same folder as me cause mines pointing to Test Social Project. But if you go to your project folder, you should see the Your Project\Temp\gradleOut\launcher\build\reports\lint-results-release-fatal. Either way at least you figured it out!

Add this Peace Of Code in your mainTamplate.Gradle File

lintOptions {
checkReleaseBuilds false
}

1 Like

wtf deleting everything in project\Temp\gradleOut\launcher\build\reports\lint-results-release-fatal did work for me !

Setting all the checkboxes from the PlayerSettings worked for me.

9018457--1243657--image_2023-05-17_120254667.png

1 Like