Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Other Can't build for android

Discussion in 'Editor & General Support' started by magsoftware, Nov 8, 2023.

  1. magsoftware

    magsoftware

    Joined:
    Feb 7, 2019
    Posts:
    123
    i can't build for android anymore. I get the following errors:

    Code (CSharp):
    1. > Configure project :launcher
    2. WARNING:The option 'android.enableR8' is deprecated.
    3. It was removed in version 7.0 of the Android Gradle plugin.
    4. Please remove it from `gradle.properties`.
    5. ============================================================================
    6. AppLovin Quality Service Plug-in for Gradle and Android Studio Version 5.0.2
    7. Copyright (c) 2023 AppLovin Ltd. All rights reserved.
    8. ============================================================================
    9. WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33
    10.  
    11. This Android Gradle plugin (7.1.2) was tested up to compileSdk = 32
    12.  
    13. This warning can be suppressed by adding
    14.     android.suppressUnsupportedCompileSdk=33
    15. to this project's gradle.properties
    16.  
    17. The build will continue, but you are strongly encouraged to update your project to
    18. use a newer Android Gradle Plugin that has been tested with compileSdk = 33
    19.  
    20. > Task :launcher:preBuild UP-TO-DATE
    21. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:preBuild UP-TO-DATE
    22. > Task :unityLibrary:FirebaseCrashlytics.androidlib:preBuild UP-TO-DATE
    23. > Task :launcher:preReleaseBuild UP-TO-DATE
    24. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:preReleaseBuild UP-TO-DATE
    25. > Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE
    26. > Task :unityLibrary:preBuild UP-TO-DATE
    27. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseAidl NO-SOURCE
    28. > Task :unityLibrary:preReleaseBuild UP-TO-DATE
    29. > Task :unityLibrary:FirebaseApp.androidlib:preReleaseBuild UP-TO-DATE
    30. > Task :unityLibrary:FirebaseCrashlytics.androidlib:preReleaseBuild UP-TO-DATE
    31. > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseAidl NO-SOURCE
    32. > Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseAidl NO-SOURCE
    33. > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseRenderscript NO-SOURCE
    34. > Task :launcher:generateReleaseBuildConfig UP-TO-DATE
    35. > Task :unityLibrary:mergeReleaseJniLibFolders UP-TO-DATE
    36. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:packageReleaseRenderscript NO-SOURCE
    37. > Task :unityLibrary:FirebaseCrashlytics.androidlib:packageReleaseRenderscript NO-SOURCE
    38. > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseRenderscript NO-SOURCE
    39. > Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseRenderscript NO-SOURCE
    40. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseRenderscript NO-SOURCE
    41. > Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseResValues UP-TO-DATE
    42. > Task :launcher:javaPreCompileRelease UP-TO-DATE
    43. > Task :unityLibrary:compileReleaseAidl NO-SOURCE
    44. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseResValues UP-TO-DATE
    45. > Task :launcher:generateReleaseResValues UP-TO-DATE
    46. > Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
    47. > Task :launcher:extractDeepLinksRelease UP-TO-DATE
    48. > Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseResources UP-TO-DATE
    49. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseResources UP-TO-DATE
    50. > Task :unityLibrary:mergeReleaseNativeLibs UP-TO-DATE
    51. > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResValues UP-TO-DATE
    52. > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResources UP-TO-DATE
    53. > Task :launcher:compileReleaseAidl NO-SOURCE
    54. > Task :unityLibrary:FirebaseCrashlytics.androidlib:packageReleaseResources UP-TO-DATE
    55. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:packageReleaseResources UP-TO-DATE
    56. > Task :launcher:extractProguardFiles UP-TO-DATE
    57. > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseResources UP-TO-DATE
    58. > Task :launcher:mergeReleaseJniLibFolders UP-TO-DATE
    59. > Task :unityLibrary:FirebaseCrashlytics.androidlib:processReleaseManifest UP-TO-DATE
    60. > Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseBuildConfig UP-TO-DATE
    61. > Task :unityLibrary:FirebaseCrashlytics.androidlib:javaPreCompileRelease UP-TO-DATE
    62. > Task :unityLibrary:FirebaseCrashlytics.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
    63. > Task :unityLibrary:FirebaseCrashlytics.androidlib:mergeReleaseNativeLibs NO-SOURCE
    64. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:processReleaseManifest UP-TO-DATE
    65. > Task :unityLibrary:FirebaseApp.androidlib:processReleaseManifest UP-TO-DATE
    66. > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseBuildConfig UP-TO-DATE
    67. > Task :unityLibrary:FirebaseApp.androidlib:javaPreCompileRelease UP-TO-DATE
    68. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseBuildConfig UP-TO-DATE
    69. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:javaPreCompileRelease UP-TO-DATE
    70. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
    71. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseNativeLibs NO-SOURCE
    72. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:stripReleaseDebugSymbols NO-SOURCE
    73. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
    74. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseShaders UP-TO-DATE
    75. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseShaders NO-SOURCE
    76. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseAssets UP-TO-DATE
    77. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:packageReleaseAssets UP-TO-DATE
    78. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:parseReleaseLocalResources
    79. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:prepareLintJarForPublish UP-TO-DATE
    80. > Task :unityLibrary:FirebaseCrashlytics.androidlib:stripReleaseDebugSymbols NO-SOURCE
    81. > Task :unityLibrary:FirebaseCrashlytics.androidlib:parseReleaseLocalResources
    82. > Task :unityLibrary:FirebaseCrashlytics.androidlib:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
    83. > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
    84. > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseNativeLibs NO-SOURCE
    85. > Task :unityLibrary:FirebaseApp.androidlib:stripReleaseDebugSymbols NO-SOURCE
    86. > Task :unityLibrary:FirebaseApp.androidlib:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
    87. > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseShaders UP-TO-DATE
    88. > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseShaders NO-SOURCE
    89. > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseAssets UP-TO-DATE
    90. > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseAssets UP-TO-DATE
    91. > Task :unityLibrary:FirebaseApp.androidlib:prepareLintJarForPublish UP-TO-DATE
    92. > Task :unityLibrary:FirebaseApp.androidlib:parseReleaseLocalResources
    93. > Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseRFile UP-TO-DATE
    94. > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseRFile UP-TO-DATE
    95. > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
    96. > Task :unityLibrary:FirebaseApp.androidlib:bundleLibCompileToJarRelease UP-TO-DATE
    97. > Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
    98. > Task :unityLibrary:FirebaseCrashlytics.androidlib:bundleLibCompileToJarRelease UP-TO-DATE
    99. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseRFile UP-TO-DATE
    100. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
    101. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:bundleLibCompileToJarRelease UP-TO-DATE
    102. > Task :unityLibrary:stripReleaseDebugSymbols
    103. > Task :unityLibrary:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
    104. > Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
    105. > Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
    106. > Task :unityLibrary:generateReleaseResValues UP-TO-DATE
    107. > Task :unityLibrary:generateReleaseResources UP-TO-DATE
    108. > Task :unityLibrary:packageReleaseResources UP-TO-DATE
    109. > Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
    110. > Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
    111. > Task :unityLibrary:compileReleaseShaders NO-SOURCE
    112. > Task :unityLibrary:generateReleaseAssets UP-TO-DATE
    113. > Task :unityLibrary:processReleaseManifest
    114. > Task :unityLibrary:parseReleaseLocalResources
    115. > Task :unityLibrary:packageReleaseAssets
    116. > Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
    117. > Task :unityLibrary:prepareLintJarForPublish UP-TO-DATE
    118. > Task :unityLibrary:prepareReleaseArtProfile UP-TO-DATE
    119. > Task :unityLibrary:processReleaseJavaRes UP-TO-DATE
    120. > Task :unityLibrary:mergeReleaseJavaResource UP-TO-DATE
    121. > Task :unityLibrary:writeReleaseAarMetadata UP-TO-DATE
    122. > Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
    123. > Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
    124. > Task :unityLibrary:bundleLibResRelease UP-TO-DATE
    125. > Task :unityLibrary:writeReleaseLintModelMetadata UP-TO-DATE
    126. > Task :unityLibrary:copyReleaseJniLibsProjectOnly UP-TO-DATE
    127. > Task :unityLibrary:FirebaseApp.androidlib:extractReleaseAnnotations UP-TO-DATE
    128. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:extractReleaseAnnotations UP-TO-DATE
    129. > Task :unityLibrary:FirebaseCrashlytics.androidlib:extractReleaseAnnotations UP-TO-DATE
    130. > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseGeneratedProguardFiles UP-TO-DATE
    131. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseGeneratedProguardFiles UP-TO-DATE
    132. > Task :unityLibrary:FirebaseCrashlytics.androidlib:mergeReleaseGeneratedProguardFiles UP-TO-DATE
    133. > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseConsumerProguardFiles
    134. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseConsumerProguardFiles
    135. > Task :unityLibrary:FirebaseApp.androidlib:prepareReleaseArtProfile UP-TO-DATE
    136. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:prepareReleaseArtProfile UP-TO-DATE
    137. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:processReleaseJavaRes NO-SOURCE
    138. > Task :unityLibrary:FirebaseApp.androidlib:processReleaseJavaRes NO-SOURCE
    139. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseJavaResource UP-TO-DATE
    140. > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseJavaResource UP-TO-DATE
    141. > Task :unityLibrary:FirebaseCrashlytics.androidlib:mergeReleaseConsumerProguardFiles
    142. > Task :unityLibrary:FirebaseCrashlytics.androidlib:mergeReleaseShaders UP-TO-DATE
    143. > Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseShaders NO-SOURCE
    144. > Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseAssets UP-TO-DATE
    145. > Task :unityLibrary:FirebaseCrashlytics.androidlib:packageReleaseAssets
    146. > Task :unityLibrary:FirebaseCrashlytics.androidlib:prepareLintJarForPublish
    147. > Task :unityLibrary:FirebaseCrashlytics.androidlib:prepareReleaseArtProfile UP-TO-DATE
    148. > Task :unityLibrary:FirebaseCrashlytics.androidlib:processReleaseJavaRes NO-SOURCE
    149. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:syncReleaseLibJars
    150. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:writeReleaseAarMetadata UP-TO-DATE
    151. > Task :unityLibrary:FirebaseApp.androidlib:syncReleaseLibJars
    152. > Task :unityLibrary:FirebaseApp.androidlib:writeReleaseAarMetadata UP-TO-DATE
    153. > Task :unityLibrary:FirebaseCrashlytics.androidlib:mergeReleaseJavaResource
    154. > Task :unityLibrary:FirebaseCrashlytics.androidlib:extractDeepLinksRelease
    155. > Task :unityLibrary:FirebaseCrashlytics.androidlib:writeReleaseAarMetadata
    156. > Task :unityLibrary:FirebaseCrashlytics.androidlib:syncReleaseLibJars
    157. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:bundleReleaseLocalLintAar
    158. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:extractDeepLinksRelease
    159. > Task :launcher:checkReleaseDuplicateClasses FAILED
    160. > Task :unityLibrary:FirebaseApp.androidlib:bundleReleaseLocalLintAar
    161. > Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseLibraryResources
    162. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseLibraryResources
    163. > Task :unityLibrary:generateReleaseRFile FAILED
    164. 100 actionable tasks: 25 executed, 75 up-to-date
    165.  
    166. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    167.  
    Code (CSharp):
    1. Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    2.  
    3. FAILURE: Build completed with 2 failures.
    4.  
    5. 1: Task failed with an exception.
    6. -----------
    7. * What went wrong:
    8. Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
    9. > Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'.
    10.    > Could not find :common:.
    11.      Required by:
    12.          project :launcher > project :unityLibrary
    13.    > Could not find :NativeShare:.
    14.      Required by:
    15.          project :launcher > project :unityLibrary
    16.    > Could not find :billing-5.2.1:.
    17.      Required by:
    18.          project :launcher > project :unityLibrary
    19.  
    20. * Try:
    21. 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.
    22. ==============================================================================
    23.  
    24. 2: Task failed with an exception.
    25. -----------
    26. * What went wrong:
    27. Execution failed for task ':unityLibrary:generateReleaseRFile'.
    28. > Could not resolve all files for configuration ':unityLibrary:releaseCompileClasspath'.
    29.    > Could not find :common:.
    30.      Required by:
    31.          project :unityLibrary
    32.    > Could not find :NativeShare:.
    33.      Required by:
    34.          project :unityLibrary
    35.    > Could not find :billing-5.2.1:.
    36.      Required by:
    37.          project :unityLibrary
    38.  
    39. * Try:
    40. 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.
    41. ==============================================================================
    42.  
    43. * Get more help at https://help.gradle.org
    44.  
    45. BUILD FAILED in 27s
    46.  
    47. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    Code (CSharp):
    1. CommandInvokationFailure: Gradle build failed.
    2. C:\Program Files\Unity\Hub\Editor\2022.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2022.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-7.2.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx8192m" "assembleRelease"
    3.  
    4. Environment Variables:
    5. USERDOMAIN = DESKTOP-72FHNRT
    6. ProgramFiles = C:\Program Files
    7. TMP = C:\Users\magst\AppData\Local\Temp
    8. PROCESSOR_ARCHITECTURE = AMD64
    9. PROCESSOR_REVISION = 9e0d
    10. OneDriveConsumer = C:\Users\magst\OneDrive
    11. OS = Windows_NT
    12. CHROME_CRASHPAD_PIPE_NAME = \\.\pipe\crashpad_9588_CXLGIXJZCSRAEDNB
    13. PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 158 Stepping 13, GenuineIntel
    14. ProgramW6432 = C:\Program Files
    15. USERPROFILE = C:\Users\magst
    16. JAVA_HOME = C:\Program Files\Unity\Hub\Editor\2022.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
    17. CommonProgramFiles = C:\Program Files\Common Files
    18. DriverData = C:\Windows\System32\Drivers\DriverData
    19. ComSpec = C:\Windows\system32\cmd.exe
    20. PSModulePath = C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
    21. PUBLIC = C:\Users\Public
    22. USERNAME = magst
    23. NUMBER_OF_PROCESSORS = 8
    24. JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF-8
    25. FPS_BROWSER_APP_PROFILE_STRING = Internet Explorer
    26. TEMP = C:\Users\magst\AppData\Local\Temp
    27. Path = C:\Program Files\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\dotnet\;C:\Users\magst\AppData\Local\Microsoft\WindowsApps;
    28. COMPUTERNAME = DESKTOP-72FHNRT
    29. PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    30. ALLUSERSPROFILE = C:\ProgramData
    31. SystemDrive = C:
    32. windir = C:\Windows
    33. FPS_BROWSER_USER_PROFILE_STRING = Default
    34. HOMEPATH = \Users\magst
    35. CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
    36. APPDATA = C:\Users\magst\AppData\Roaming
    37. OneDrive = C:\Users\magst\OneDrive
    38. PROCESSOR_LEVEL = 6
    39. CommonProgramW6432 = C:\Program Files\Common Files
    40. ProgramFiles(x86) = C:\Program Files (x86)
    41. SystemRoot = C:\Windows
    42. SESSIONNAME = Console
    43. LOGONSERVER = \\DESKTOP-72FHNRT
    44. LOCALAPPDATA = C:\Users\magst\AppData\Local
    45. HOMEDRIVE = C:
    46. USERDOMAIN_ROAMINGPROFILE = DESKTOP-72FHNRT
    47. ProgramData = C:\ProgramData
    48. ORIGINAL_XDG_CURRENT_DESKTOP = undefined
    49.  
    50.  
    51. stderr[
    52. Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    53.  
    54. FAILURE: Build completed with 2 failures.
    55.  
    56. 1: Task failed with an exception.
    57. -----------
    58. * What went wrong:
    59. Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
    60. > Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'.
    61.    > Could not find :common:.
    62.      Required by:
    63.          project :launcher > project :unityLibrary
    64.    > Could not find :NativeShare:.
    65.      Required by:
    66.          project :launcher > project :unityLibrary
    67.    > Could not find :billing-5.2.1:.
    68.      Required by:
    69.          project :launcher > project :unityLibrary
    70.  
    71. * Try:
    72. 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.
    73. ==============================================================================
    74.  
    75. 2: Task failed with an exception.
    76. -----------
    77. * What went wrong:
    78. Execution failed for task ':unityLibrary:generateReleaseRFile'.
    79. > Could not resolve all files for configuration ':unityLibrary:releaseCompileClasspath'.
    80.    > Could not find :common:.
    81.      Required by:
    82.          project :unityLibrary
    83.    > Could not find :NativeShare:.
    84.      Required by:
    85.          project :unityLibrary
    86.    > Could not find :billing-5.2.1:.
    87.      Required by:
    88.          project :unityLibrary
    89.  
    90. * Try:
    91. 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.
    92. ==============================================================================
    93.  
    94. * Get more help at https://help.gradle.org
    95.  
    96. BUILD FAILED in 27s
    97. ]
    98. stdout[
    99.  
    100. > Configure project :launcher
    101. WARNING:The option 'android.enableR8' is deprecated.
    102. It was removed in version 7.0 of the Android Gradle plugin.
    103. Please remove it from `gradle.properties`.
    104. ============================================================================
    105. AppLovin Quality Service Plug-in for Gradle and Android Studio Version 5.0.2
    106. Copyright (c) 2023 AppLovin Ltd. All rights reserved.
    107. ============================================================================
    108. WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33
    109.  
    110. This Android Gradle plugin (7.1.2) was tested up to compileSdk = 32
    111.  
    112. This warning can be suppressed by adding
    113.     android.suppressUnsupportedCompileSdk=33
    114. to this project's gradle.properties
    115.  
    116. The build will continue, but you are strongly encouraged to update your project to
    117. use a newer Android Gradle Plugin that has been tested with compileSdk = 33
    118.  
    119. > Task :launcher:preBuild UP-TO-DATE
    120. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:preBuild UP-TO-DATE
    121. > Task :unityLibrary:FirebaseCrashlytics.androidlib:preBuild UP-TO-DATE
    122. > Task :launcher:preReleaseBuild UP-TO-DATE
    123. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:preReleaseBuild UP-TO-DATE
    124. > Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE
    125. > Task :unityLibrary:preBuild UP-TO-DATE
    126. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseAidl NO-SOURCE
    127. > Task :unityLibrary:preReleaseBuild UP-TO-DATE
    128. > Task :unityLibrary:FirebaseApp.androidlib:preReleaseBuild UP-TO-DATE
    129. > Task :unityLibrary:FirebaseCrashlytics.androidlib:preReleaseBuild UP-TO-DATE
    130. > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseAidl NO-SOURCE
    131. > Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseAidl NO-SOURCE
    132. > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseRenderscript NO-SOURCE
    133. > Task :launcher:generateReleaseBuildConfig UP-TO-DATE
    134. > Task :unityLibrary:mergeReleaseJniLibFolders UP-TO-DATE
    135. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:packageReleaseRenderscript NO-SOURCE
    136. > Task :unityLibrary:FirebaseCrashlytics.androidlib:packageReleaseRenderscript NO-SOURCE
    137. > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseRenderscript NO-SOURCE
    138. > Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseRenderscript NO-SOURCE
    139. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseRenderscript NO-SOURCE
    140. > Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseResValues UP-TO-DATE
    141. > Task :launcher:javaPreCompileRelease UP-TO-DATE
    142. > Task :unityLibrary:compileReleaseAidl NO-SOURCE
    143. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseResValues UP-TO-DATE
    144. > Task :launcher:generateReleaseResValues UP-TO-DATE
    145. > Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
    146. > Task :launcher:extractDeepLinksRelease UP-TO-DATE
    147. > Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseResources UP-TO-DATE
    148. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseResources UP-TO-DATE
    149. > Task :unityLibrary:mergeReleaseNativeLibs UP-TO-DATE
    150. > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResValues UP-TO-DATE
    151. > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResources UP-TO-DATE
    152. > Task :launcher:compileReleaseAidl NO-SOURCE
    153. > Task :unityLibrary:FirebaseCrashlytics.androidlib:packageReleaseResources UP-TO-DATE
    154. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:packageReleaseResources UP-TO-DATE
    155. > Task :launcher:extractProguardFiles UP-TO-DATE
    156. > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseResources UP-TO-DATE
    157. > Task :launcher:mergeReleaseJniLibFolders UP-TO-DATE
    158. > Task :unityLibrary:FirebaseCrashlytics.androidlib:processReleaseManifest UP-TO-DATE
    159. > Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseBuildConfig UP-TO-DATE
    160. > Task :unityLibrary:FirebaseCrashlytics.androidlib:javaPreCompileRelease UP-TO-DATE
    161. > Task :unityLibrary:FirebaseCrashlytics.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
    162. > Task :unityLibrary:FirebaseCrashlytics.androidlib:mergeReleaseNativeLibs NO-SOURCE
    163. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:processReleaseManifest UP-TO-DATE
    164. > Task :unityLibrary:FirebaseApp.androidlib:processReleaseManifest UP-TO-DATE
    165. > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseBuildConfig UP-TO-DATE
    166. > Task :unityLibrary:FirebaseApp.androidlib:javaPreCompileRelease UP-TO-DATE
    167. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseBuildConfig UP-TO-DATE
    168. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:javaPreCompileRelease UP-TO-DATE
    169. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
    170. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseNativeLibs NO-SOURCE
    171. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:stripReleaseDebugSymbols NO-SOURCE
    172. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
    173. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseShaders UP-TO-DATE
    174. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseShaders NO-SOURCE
    175. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseAssets UP-TO-DATE
    176. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:packageReleaseAssets UP-TO-DATE
    177. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:parseReleaseLocalResources
    178. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:prepareLintJarForPublish UP-TO-DATE
    179. > Task :unityLibrary:FirebaseCrashlytics.androidlib:stripReleaseDebugSymbols NO-SOURCE
    180. > Task :unityLibrary:FirebaseCrashlytics.androidlib:parseReleaseLocalResources
    181. > Task :unityLibrary:FirebaseCrashlytics.androidlib:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
    182. > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
    183. > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseNativeLibs NO-SOURCE
    184. > Task :unityLibrary:FirebaseApp.androidlib:stripReleaseDebugSymbols NO-SOURCE
    185. > Task :unityLibrary:FirebaseApp.androidlib:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
    186. > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseShaders UP-TO-DATE
    187. > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseShaders NO-SOURCE
    188. > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseAssets UP-TO-DATE
    189. > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseAssets UP-TO-DATE
    190. > Task :unityLibrary:FirebaseApp.androidlib:prepareLintJarForPublish UP-TO-DATE
    191. > Task :unityLibrary:FirebaseApp.androidlib:parseReleaseLocalResources
    192. > Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseRFile UP-TO-DATE
    193. > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseRFile UP-TO-DATE
    194. > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
    195. > Task :unityLibrary:FirebaseApp.androidlib:bundleLibCompileToJarRelease UP-TO-DATE
    196. > Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
    197. > Task :unityLibrary:FirebaseCrashlytics.androidlib:bundleLibCompileToJarRelease UP-TO-DATE
    198. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseRFile UP-TO-DATE
    199. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
    200. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:bundleLibCompileToJarRelease UP-TO-DATE
    201. > Task :unityLibrary:stripReleaseDebugSymbols
    202. > Task :unityLibrary:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
    203. > Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
    204. > Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
    205. > Task :unityLibrary:generateReleaseResValues UP-TO-DATE
    206. > Task :unityLibrary:generateReleaseResources UP-TO-DATE
    207. > Task :unityLibrary:packageReleaseResources UP-TO-DATE
    208. > Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
    209. > Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
    210. > Task :unityLibrary:compileReleaseShaders NO-SOURCE
    211. > Task :unityLibrary:generateReleaseAssets UP-TO-DATE
    212. > Task :unityLibrary:processReleaseManifest
    213. > Task :unityLibrary:parseReleaseLocalResources
    214. > Task :unityLibrary:packageReleaseAssets
    215. > Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
    216. > Task :unityLibrary:prepareLintJarForPublish UP-TO-DATE
    217. > Task :unityLibrary:prepareReleaseArtProfile UP-TO-DATE
    218. > Task :unityLibrary:processReleaseJavaRes UP-TO-DATE
    219. > Task :unityLibrary:mergeReleaseJavaResource UP-TO-DATE
    220. > Task :unityLibrary:writeReleaseAarMetadata UP-TO-DATE
    221. > Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
    222. > Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
    223. > Task :unityLibrary:bundleLibResRelease UP-TO-DATE
    224. > Task :unityLibrary:writeReleaseLintModelMetadata UP-TO-DATE
    225. > Task :unityLibrary:copyReleaseJniLibsProjectOnly UP-TO-DATE
    226. > Task :unityLibrary:FirebaseApp.androidlib:extractReleaseAnnotations UP-TO-DATE
    227. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:extractReleaseAnnotations UP-TO-DATE
    228. > Task :unityLibrary:FirebaseCrashlytics.androidlib:extractReleaseAnnotations UP-TO-DATE
    229. > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseGeneratedProguardFiles UP-TO-DATE
    230. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseGeneratedProguardFiles UP-TO-DATE
    231. > Task :unityLibrary:FirebaseCrashlytics.androidlib:mergeReleaseGeneratedProguardFiles UP-TO-DATE
    232. > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseConsumerProguardFiles
    233. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseConsumerProguardFiles
    234. > Task :unityLibrary:FirebaseApp.androidlib:prepareReleaseArtProfile UP-TO-DATE
    235. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:prepareReleaseArtProfile UP-TO-DATE
    236. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:processReleaseJavaRes NO-SOURCE
    237. > Task :unityLibrary:FirebaseApp.androidlib:processReleaseJavaRes NO-SOURCE
    238. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseJavaResource UP-TO-DATE
    239. > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseJavaResource UP-TO-DATE
    240. > Task :unityLibrary:FirebaseCrashlytics.androidlib:mergeReleaseConsumerProguardFiles
    241. > Task :unityLibrary:FirebaseCrashlytics.androidlib:mergeReleaseShaders UP-TO-DATE
    242. > Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseShaders NO-SOURCE
    243. > Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseAssets UP-TO-DATE
    244. > Task :unityLibrary:FirebaseCrashlytics.androidlib:packageReleaseAssets
    245. > Task :unityLibrary:FirebaseCrashlytics.androidlib:prepareLintJarForPublish
    246. > Task :unityLibrary:FirebaseCrashlytics.androidlib:prepareReleaseArtProfile UP-TO-DATE
    247. > Task :unityLibrary:FirebaseCrashlytics.androidlib:processReleaseJavaRes NO-SOURCE
    248. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:syncReleaseLibJars
    249. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:writeReleaseAarMetadata UP-TO-DATE
    250. > Task :unityLibrary:FirebaseApp.androidlib:syncReleaseLibJars
    251. > Task :unityLibrary:FirebaseApp.androidlib:writeReleaseAarMetadata UP-TO-DATE
    252. > Task :unityLibrary:FirebaseCrashlytics.androidlib:mergeReleaseJavaResource
    253. > Task :unityLibrary:FirebaseCrashlytics.androidlib:extractDeepLinksRelease
    254. > Task :unityLibrary:FirebaseCrashlytics.androidlib:writeReleaseAarMetadata
    255. > Task :unityLibrary:FirebaseCrashlytics.androidlib:syncReleaseLibJars
    256. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:bundleReleaseLocalLintAar
    257. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:extractDeepLinksRelease
    258. > Task :launcher:checkReleaseDuplicateClasses FAILED
    259. > Task :unityLibrary:FirebaseApp.androidlib:bundleReleaseLocalLintAar
    260. > Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseLibraryResources
    261. > Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseLibraryResources
    262. > Task :unityLibrary:generateReleaseRFile FAILED
    263. 100 actionable tasks: 25 executed, 75 up-to-date
    264. ]
    265. exit code: 1
    266. UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <476ef08ce6bf48598d2df8af8530034d>:0)
    267. UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingF<message truncated>

    How to fix them?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    39,327
    How to troubleshoot build failures:

    First, make a blank project with a single blank scene and prove that it builds successfully.

    If the blank project does NOT build, go fix your Unity installation or your other tools, such as Android SDK, NDK, JDK, etc. It may even be necessary to change to a different version of Unity3D. It is generally best to stay with LTS versions of Unity3D.

    Until you can build a blank project to the target platform, don't fiddle with anything else.

    Once you can build a blank project, now bisect the problem by bringing over parts of your current project and building it one subsystem at a time, perhaps stubbing things out that might trigger compiler errors.

    Most often things that prevent building are third-party libraries such as Firebase.

    Once you identify the subsystem, go to the documentation for it and make sure you are doing it correctly.

    It may also be helpful to work through a tutorial or two for whatever subsystem is making the build fail.

    Android build not building:

    Recently (circa July 2022) there have been reports of Unity's installer failing to install the Android Tools.

    https://forum.unity.com/threads/cant-build-for-android.1306098/

    Here was how I brought up Unity2020.3.41 and the Android SDK 31 on October 30, 2022 (edited on August 23, 2023 to include Android SDK 33...):

    https://forum.unity.com/threads/aab...y-2021-3-8-with-jdk-1-8.1322211/#post-8551193

    Android Gradle errors and other related stuff:

    https://forum.unity.com/threads/unity-gradle-bug-please-help.1368018/#post-8625789