Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Build error

Discussion in '2019.3 Beta' started by justtime, Oct 18, 2019.

  1. justtime

    justtime

    Joined:
    Oct 6, 2013
    Posts:
    413
    Hi there! I switched from 2019.2.9f to 2019.3b7 and got error on Android build
    Code (CSharp):
    1. CommandInvokationFailure: Gradle build failed.
    2. C:/Program Files/Java/jdk1.8.0_141\bin\java.exe -classpath "C:\Program Files\2019.3.0b7\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
    3.  
    4. stderr[
    5.  
    6. FAILURE: Build failed with an exception.
    7.  
    8. * What went wrong:
    9. Execution failed for task ':launcher:transformResourcesWithMergeJavaResForRelease'.
    10. > More than one file was found with OS independent path 'androidsupportmultidexversion.txt'
    11.  
    12. * Try:
    13. 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.
    14.  
    15. * Get more help at https://help.gradle.org
    16.  
    17. BUILD FAILED in 36s
    18. ]
    19. stdout[
    20.  
    21. > Configure project :launcher
    22. Exception while marshalling C:\Program Files\2019.3.0b7\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\28.0.3\package.xml. Probably the SDK is read-only
    23. Exception while marshalling C:\Program Files\2019.3.0b7\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
    24. Exception while marshalling C:\Program Files\2019.3.0b7\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-28\package.xml. Probably the SDK is read-only
    25. Exception while marshalling C:\Program Files\2019.3.0b7\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only
    26. Exception while marshalling C:\Program Files\2019.3.0b7\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\28.0.3\package.xml. Probably the SDK is read-only
    27. Exception while marshalling C:\Program Files\2019.3.0b7\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
    28. Exception while marshalling C:\Program Files\2019.3.0b7\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-28\package.xml. Probably the SDK is read-only
    29. Exception while marshalling C:\Program Files\2019.3.0b7\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only
    30.  
    31. > Task :launcher:preBuild UP-TO-DATE
    32. > Task :unityLibrary:appodeal-mytarget:preBuild UP-TO-DATE
    33. > Task :unityLibrary:appodeal-facebook:preBuild UP-TO-DATE
    34. > Task :unityLibrary:preBuild UP-TO-DATE
    35. > Task :unityLibrary:appodeal-appodeal-inmobi:preBuild UP-TO-DATE
    36. > Task :unityLibrary:appodeal:preBuild UP-TO-DATE
    37. > Task :unityLibrary:unity-android-resources:preBuild UP-TO-DATE
    38. > Task :unityLibrary:Firebase:preBuild UP-TO-DATE
    39. > Task :unityLibrary:Firebase:preReleaseBuild UP-TO-DATE
    40. > Task :unityLibrary:unity-android-resources:preReleaseBuild UP-TO-DATE
    41. > Task :unityLibrary:appodeal-appodeal-inmobi:preReleaseBuild UP-TO-DATE
    42. > Task :unityLibrary:appodeal:preReleaseBuild UP-TO-DATE
    43. > Task :unityLibrary:appodeal-facebook:preReleaseBuild UP-TO-DATE
    44. > Task :unityLibrary:appodeal-mytarget:preReleaseBuild UP-TO-DATE
    45. > Task :launcher:extractProguardFiles UP-TO-DATE
    46. > Task :unityLibrary:extractProguardFiles UP-TO-DATE
    47. > Task :unityLibrary:appodeal:checkReleaseManifest
    48. > Task :unityLibrary:preReleaseBuild UP-TO-DATE
    49. > Task :unityLibrary:unity-android-resources:checkReleaseManifest
    50. > Task :unityLibrary:appodeal-facebook:checkReleaseManifest
    51. > Task :unityLibrary:appodeal-mytarget:checkReleaseManifest
    52. > Task :unityLibrary:checkReleaseManifest UP-TO-DATE
    53. > Task :unityLibrary:appodeal-appodeal-inmobi:checkReleaseManifest
    54. > Task :unityLibrary:Firebase:checkReleaseManifest
    55. > Task :unityLibrary:appodeal-appodeal-inmobi:processReleaseManifest
    56. > Task :unityLibrary:appodeal:processReleaseManifest
    57. > Task :unityLibrary:unity-android-resources:processReleaseManifest
    58. > Task :unityLibrary:appodeal-mytarget:processReleaseManifest
    59. > Task :unityLibrary:appodeal-facebook:processReleaseManifest
    60.  
    61. > Task :unityLibrary:processReleaseManifest
    62. C:\Unity_Projects\JamTracks2_latest_TEST_TMP_NEW_IAP_NEW_FIREBASE_2019.3_Latest_2_2019.3b\Temp\gradleOut\unityLibrary\src\main\AndroidManifest.xml:6:3-93 Warning:
    63.     uses-permission#android.permission.READ_PHONE_STATE was tagged at AndroidManifest.xml:6 to remove other declarations but no other declaration present
    64. C:\Unity_Projects\JamTracks2_latest_TEST_TMP_NEW_IAP_NEW_FIREBASE_2019.3_Latest_2_2019.3b\Temp\gradleOut\unityLibrary\src\main\AndroidManifest.xml:7:3-86 Warning:
    65.     uses-permission#android.permission.BLUETOOTH was tagged at AndroidManifest.xml:7 to remove other declarations but no other declaration present
    66.  
    67. > Task :unityLibrary:Firebase:processReleaseManifest
    68. > Task :unityLibrary:appodeal:compileReleaseAidl NO-SOURCE
    69. > Task :unityLibrary:appodeal-appodeal-inmobi:compileReleaseAidl NO-SOURCE
    70. > Task :unityLibrary:appodeal-facebook:compileReleaseAidl NO-SOURCE
    71. > Task :unityLibrary:appodeal-mytarget:compileReleaseAidl NO-SOURCE
    72. > Task :unityLibrary:Firebase:compileReleaseAidl NO-SOURCE
    73. > Task :unityLibrary:unity-android-resources:compileReleaseAidl NO-SOURCE
    74. > Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
    75. > Task :unityLibrary:compileReleaseAidl NO-SOURCE
    76. > Task :unityLibrary:appodeal:packageReleaseRenderscript NO-SOURCE
    77. > Task :unityLibrary:appodeal-appodeal-inmobi:packageReleaseRenderscript NO-SOURCE
    78. > Task :unityLibrary:appodeal-facebook:packageReleaseRenderscript NO-SOURCE
    79. > Task :unityLibrary:appodeal-mytarget:packageReleaseRenderscript NO-SOURCE
    80. > Task :unityLibrary:Firebase:packageReleaseRenderscript NO-SOURCE
    81. > Task :unityLibrary:unity-android-resources:packageReleaseRenderscript NO-SOURCE
    82. > Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
    83. > Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
    84. > Task :unityLibrary:generateReleaseResValues UP-TO-DATE
    85. > Task :unityLibrary:generateReleaseResources UP-TO-DATE
    86. > Task :unityLibrary:appodeal:compileReleaseRenderscript NO-SOURCE
    87. > Task :unityLibrary:appodeal-appodeal-inmobi:compileReleaseRenderscript NO-SOURCE
    88. > Task :unityLibrary:appodeal:generateReleaseResValues
    89. > Task :unityLibrary:appodeal-facebook:compileReleaseRenderscript NO-SOURCE
    90. > Task :unityLibrary:appodeal:generateReleaseResources
    91. > Task :unityLibrary:appodeal-mytarget:compileReleaseRenderscript NO-SOURCE
    92. > Task :unityLibrary:Firebase:compileReleaseRenderscript NO-SOURCE
    93. > Task :unityLibrary:appodeal-appodeal-inmobi:generateReleaseResValues
    94. > Task :unityLibrary:Firebase:generateReleaseResValues
    95. > Task :unityLibrary:Firebase:generateReleaseResources
    96. > Task :unityLibrary:unity-android-resources:compileReleaseRenderscript NO-SOURCE
    97. > Task :unityLibrary:appodeal-mytarget:generateReleaseResValues
    98. > Task :unityLibrary:appodeal-facebook:generateReleaseResValues
    99. > Task :unityLibrary:appodeal-appodeal-inmobi:generateReleaseResources
    100. > Task :unityLibrary:appodeal-facebook:generateReleaseResources
    101. > Task :unityLibrary:appodeal-mytarget:generateReleaseResources
    102. > Task :unityLibrary:packageReleaseResources UP-TO-DATE
    103. > Task :unityLibrary:unity-android-resources:generateReleaseResValues
    104. > Task :unityLibrary:prepareLintJar UP-TO-DATE
    105. > Task :unityLibrary:generateReleaseSources UP-TO-DATE
    106. > Task :unityLibrary:unity-android-resources:generateReleaseResources
    107. > Task :unityLibrary:prepareLintJarForPublish UP-TO-DATE
    108. > Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
    109. > Task :unityLibrary:compileReleaseShaders UP-TO-DATE
    110. > Task :unityLibrary:generateReleaseAssets UP-TO-DATE
    111. > Task :unityLibrary:appodeal-mytarget:packageReleaseResources
    112. > Task :unityLibrary:appodeal-facebook:packageReleaseResources
    113. > Task :unityLibrary:appodeal:packageReleaseResources
    114. > Task :unityLibrary:Firebase:packageReleaseResources
    115. > Task :unityLibrary:appodeal-facebook:generateReleaseRFile
    116. > Task :unityLibrary:appodeal:generateReleaseRFile
    117. > Task :unityLibrary:Firebase:generateReleaseRFile
    118. > Task :unityLibrary:appodeal-facebook:generateReleaseBuildConfig
    119. > Task :unityLibrary:appodeal-facebook:prepareLintJar UP-TO-DATE
    120. > Task :unityLibrary:appodeal-facebook:generateReleaseSources
    121. > Task :unityLibrary:appodeal:generateReleaseBuildConfig
    122. > Task :unityLibrary:appodeal:prepareLintJar UP-TO-DATE
    123. > Task :unityLibrary:appodeal:generateReleaseSources
    124. > Task :unityLibrary:Firebase:generateReleaseBuildConfig
    125. > Task :unityLibrary:Firebase:prepareLintJar UP-TO-DATE
    126. > Task :unityLibrary:Firebase:generateReleaseSources
    127. > Task :unityLibrary:appodeal-facebook:javaPreCompileRelease
    128. > Task :unityLibrary:Firebase:javaPreCompileRelease
    129. > Task :unityLibrary:unity-android-resources:packageReleaseResources
    130. > Task :unityLibrary:appodeal:javaPreCompileRelease
    131. > Task :unityLibrary:unity-android-resources:generateReleaseRFile
    132. > Task :unityLibrary:unity-android-resources:generateReleaseBuildConfig
    133. > Task :unityLibrary:unity-android-resources:prepareLintJar UP-TO-DATE
    134. > Task :unityLibrary:unity-android-resources:generateReleaseSources
    135. > Task :unityLibrary:unity-android-resources:javaPreCompileRelease
    136. > Task :unityLibrary:appodeal-appodeal-inmobi:packageReleaseResources
    137. > Task :unityLibrary:appodeal-mytarget:generateReleaseRFile
    138. > Task :unityLibrary:appodeal-mytarget:generateReleaseBuildConfig
    139. > Task :unityLibrary:appodeal-mytarget:prepareLintJar UP-TO-DATE
    140. > Task :unityLibrary:appodeal-mytarget:generateReleaseSources
    141. > Task :unityLibrary:appodeal-appodeal-inmobi:generateReleaseRFile
    142. > Task :unityLibrary:packageReleaseAssets
    143. > Task :unityLibrary:appodeal-appodeal-inmobi:generateReleaseBuildConfig
    144. > Task :unityLibrary:appodeal-appodeal-inmobi:prepareLintJar UP-TO-DATE
    145. > Task :unityLibrary:appodeal-appodeal-inmobi:generateReleaseSources
    146. > Task :unityLibrary:generateReleaseRFile UP-TO-DATE
    147. > Task :unityLibrary:appodeal-mytarget:javaPreCompileRelease
    148. > Task :unityLibrary:processReleaseJavaRes NO-SOURCE
    149. > Task :unityLibrary:mergeReleaseConsumerProguardFiles UP-TO-DATE
    150. > Task :unityLibrary:appodeal-appodeal-inmobi:javaPreCompileRelease
    151. > Task :unityLibrary:mergeReleaseJniLibFolders UP-TO-DATE
    152. > Task :unityLibrary:transformNativeLibsWithMergeJniLibsForRelease UP-TO-DATE
    153. > Task :unityLibrary:transformNativeLibsWithStripDebugSymbolForRelease UP-TO-DATE
    154. > Task :unityLibrary:transformNativeLibsWithIntermediateJniLibsForRelease UP-TO-DATE
    155. > Task :launcher:preReleaseBuild
    156. > Task :launcher:compileReleaseAidl NO-SOURCE
    157. > Task :launcher:compileReleaseRenderscript NO-SOURCE
    158. > Task :launcher:checkReleaseManifest UP-TO-DATE
    159. > Task :launcher:generateReleaseBuildConfig UP-TO-DATE
    160. > Task :launcher:prepareLintJar UP-TO-DATE
    161. > Task :launcher:generateReleaseSources UP-TO-DATE
    162. > Task :launcher:mainApkListPersistenceRelease UP-TO-DATE
    163. > Task :launcher:generateReleaseResValues UP-TO-DATE
    164. > Task :launcher:generateReleaseResources UP-TO-DATE
    165. > Task :unityLibrary:appodeal:compileReleaseJavaWithJavac
    166. > Task :unityLibrary:appodeal-appodeal-inmobi:compileReleaseJavaWithJavac
    167. > Task :unityLibrary:unity-android-resources:compileReleaseJavaWithJavac
    168. > Task :unityLibrary:appodeal-mytarget:compileReleaseJavaWithJavac
    169. > Task :unityLibrary:appodeal-facebook:compileReleaseJavaWithJavac
    170. > Task :unityLibrary:appodeal-appodeal-inmobi:bundleLibCompileRelease
    171. > Task :unityLibrary:Firebase:compileReleaseJavaWithJavac
    172. > Task :unityLibrary:appodeal-appodeal-inmobi:prepareLintJarForPublish UP-TO-DATE
    173. > Task :unityLibrary:appodeal-mytarget:bundleLibCompileRelease
    174. > Task :unityLibrary:appodeal-mytarget:prepareLintJarForPublish UP-TO-DATE
    175. > Task :unityLibrary:appodeal-appodeal-inmobi:mergeReleaseShaders
    176. > Task :unityLibrary:Firebase:bundleLibCompileRelease
    177. > Task :unityLibrary:appodeal-mytarget:mergeReleaseShaders
    178. > Task :unityLibrary:Firebase:prepareLintJarForPublish UP-TO-DATE
    179. > Task :unityLibrary:appodeal-facebook:bundleLibCompileRelease
    180. > Task :unityLibrary:appodeal-mytarget:compileReleaseShaders
    181. > Task :unityLibrary:appodeal-mytarget:generateReleaseAssets
    182. > Task :unityLibrary:appodeal-facebook:prepareLintJarForPublish UP-TO-DATE
    183. > Task :unityLibrary:appodeal-appodeal-inmobi:compileReleaseShaders
    184. > Task :unityLibrary:appodeal-appodeal-inmobi:generateReleaseAssets
    185. > Task :unityLibrary:unity-android-resources:bundleLibCompileRelease
    186. > Task :unityLibrary:unity-android-resources:prepareLintJarForPublish UP-TO-DATE
    187. > Task :unityLibrary:appodeal:bundleLibCompileRelease
    188. > Task :unityLibrary:appodeal-facebook:mergeReleaseShaders
    189. > Task :unityLibrary:appodeal:prepareLintJarForPublish UP-TO-DATE
    190. > Task :unityLibrary:appodeal:mergeReleaseShaders
    191. > Task :unityLibrary:appodeal:compileReleaseShaders
    192. > Task :unityLibrary:appodeal:generateReleaseAssets
    193. > Task :unityLibrary:appodeal-facebook:compileReleaseShaders
    194. > Task :unityLibrary:appodeal-facebook:generateReleaseAssets
    195. > Task :unityLibrary:unity-android-resources:mergeReleaseShaders
    196. > Task :unityLibrary:Firebase:mergeReleaseShaders
    197. > Task :unityLibrary:appodeal-appodeal-inmobi:packageReleaseAssets
    198. > Task :unityLibrary:appodeal-mytarget:packageReleaseAssets
    199. > Task :unityLibrary:appodeal-appodeal-inmobi:processReleaseJavaRes NO-SOURCE
    200. > Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
    201. > Task :unityLibrary:appodeal-mytarget:processReleaseJavaRes NO-SOURCE
    202. > Task :unityLibrary:Firebase:compileReleaseShaders
    203. > Task :unityLibrary:unity-android-resources:compileReleaseShaders
    204. > Task :unityLibrary:unity-android-resources:generateReleaseAssets
    205. > Task :unityLibrary:Firebase:generateReleaseAssets
    206. > Task :unityLibrary:appodeal-appodeal-inmobi:bundleLibResRelease
    207. > Task :unityLibrary:appodeal:packageReleaseAssets
    208. > Task :unityLibrary:appodeal:processReleaseJavaRes NO-SOURCE
    209. > Task :unityLibrary:compileReleaseJavaWithJavac UP-TO-DATE
    210. > Task :unityLibrary:appodeal-mytarget:bundleLibResRelease
    211. > Task :unityLibrary:bundleLibCompileRelease UP-TO-DATE
    212. > Task :unityLibrary:unity-android-resources:packageReleaseAssets
    213. > Task :unityLibrary:unity-android-resources:processReleaseJavaRes NO-SOURCE
    214. > Task :unityLibrary:bundleLibResRelease UP-TO-DATE
    215. > Task :unityLibrary:appodeal-appodeal-inmobi:bundleLibRuntimeRelease
    216. > Task :unityLibrary:appodeal-appodeal-inmobi:mergeReleaseConsumerProguardFiles UP-TO-DATE
    217. > Task :unityLibrary:bundleLibRuntimeRelease UP-TO-DATE
    218. > Task :unityLibrary:appodeal-mytarget:bundleLibRuntimeRelease
    219. > Task :unityLibrary:Firebase:packageReleaseAssets
    220. > Task :unityLibrary:Firebase:processReleaseJavaRes NO-SOURCE
    221. > Task :unityLibrary:appodeal-mytarget:mergeReleaseConsumerProguardFiles UP-TO-DATE
    222. > Task :unityLibrary:appodeal-facebook:packageReleaseAssets
    223. > Task :unityLibrary:appodeal-facebook:processReleaseJavaRes NO-SOURCE
    224. > Task :unityLibrary:unity-android-resources:bundleLibResRelease
    225. > Task :unityLibrary:Firebase:bundleLibResRelease
    226. > Task :unityLibrary:appodeal:bundleLibResRelease
    227. > Task :unityLibrary:Firebase:bundleLibRuntimeRelease
    228. > Task :unityLibrary:appodeal-facebook:bundleLibResRelease
    229. > Task :unityLibrary:Firebase:mergeReleaseConsumerProguardFiles UP-TO-DATE
    230. > Task :unityLibrary:appodeal:bundleLibRuntimeRelease
    231. > Task :unityLibrary:appodeal:mergeReleaseConsumerProguardFiles UP-TO-DATE
    232. > Task :unityLibrary:appodeal-appodeal-inmobi:mergeReleaseJniLibFolders
    233. > Task :unityLibrary:appodeal-mytarget:mergeReleaseJniLibFolders
    234. > Task :unityLibrary:Firebase:mergeReleaseJniLibFolders
    235. > Task :unityLibrary:appodeal:mergeReleaseJniLibFolders
    236. > Task :unityLibrary:appodeal-facebook:bundleLibRuntimeRelease
    237. > Task :unityLibrary:unity-android-resources:bundleLibRuntimeRelease
    238. > Task :unityLibrary:unity-android-resources:mergeReleaseConsumerProguardFiles UP-TO-DATE
    239. > Task :unityLibrary:appodeal-facebook:mergeReleaseConsumerProguardFiles UP-TO-DATE
    240. > Task :unityLibrary:unity-android-resources:mergeReleaseJniLibFolders
    241. > Task :unityLibrary:appodeal-mytarget:transformNativeLibsWithMergeJniLibsForRelease
    242. > Task :unityLibrary:appodeal-appodeal-inmobi:transformNativeLibsWithMergeJniLibsForRelease
    243. > Task :unityLibrary:appodeal-mytarget:transformNativeLibsWithStripDebugSymbolForRelease
    244. > Task :unityLibrary:Firebase:transformNativeLibsWithMergeJniLibsForRelease
    245. > Task :unityLibrary:appodeal-facebook:mergeReleaseJniLibFolders
    246. > Task :unityLibrary:unity-android-resources:transformNativeLibsWithMergeJniLibsForRelease
    247. > Task :unityLibrary:appodeal-mytarget:transformNativeLibsWithIntermediateJniLibsForRelease
    248. > Task :unityLibrary:appodeal-appodeal-inmobi:transformNativeLibsWithStripDebugSymbolForRelease
    249. > Task :unityLibrary:appodeal:transformNativeLibsWithMergeJniLibsForRelease
    250. > Task :unityLibrary:Firebase:transformNativeLibsWithStripDebugSymbolForRelease
    251. > Task :unityLibrary:appodeal-appodeal-inmobi:tra<message truncated>
    Gradle file
    Code (CSharp):
    1.  
    2. // GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
    3. buildscript {
    4.    repositories {
    5.       google()
    6.       jcenter()
    7.    }
    8.  
    9.    dependencies {
    10.       classpath 'com.android.tools.build:gradle:3.2.0'
    11.    }
    12. }
    13.  
    14. allprojects {
    15.    repositories {
    16.       google()
    17.       jcenter()
    18.       flatDir {
    19.         dirs 'libs'
    20.       }
    21.    }
    22. }
    23.  
    24. // Android Resolver Repos Start
    25. ([rootProject] + (rootProject.subprojects as List)).each {
    26.     ext {
    27.         it.setProperty("android.useAndroidX", true)
    28.         it.setProperty("android.enableJetifier", true)
    29.     }
    30. }
    31. ([rootProject] + (rootProject.subprojects as List)).each { project ->
    32.     project.repositories {
    33.         def unityProjectPath = "file:///" + file(rootProject.projectDir.path + "/../../").absolutePath
    34.         maven {
    35.             url "https://maven.google.com"
    36.         }
    37.         maven {
    38.             url (unityProjectPath + "/Assets/Firebase/m2repository") // Assets/Firebase/Editor/AnalyticsDependencies.xml:20, Assets/Firebase/Editor/AppDependencies.xml:20, Assets/Firebase/Editor/CrashlyticsDependencies.xml:20, Assets/Firebase/Editor/MessagingDependencies.xml:22, Assets/Firebase/Editor/RemoteConfigDependencies.xml:22
    39.         }
    40.         maven {
    41.             url "https://maven.google.com" // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:10, Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:19, Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:27, Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:35, Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:40
    42.         }
    43.         mavenLocal()
    44.         jcenter()
    45.         mavenCentral()
    46.     }
    47. }
    48. // Android Resolver Repos End
    49. apply plugin: 'com.android.library'
    50.  
    51. dependencies {
    52.    implementation fileTree(dir: 'libs', include: ['*.jar'])
    53.    implementation 'com.android.support:multidex:1.0.3'
    54. // Android Resolver Dependencies Start
    55.     implementation 'com.android.support:recyclerview-v7:26.1.0' // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:35
    56.     implementation 'com.android.support:support-v4:26.1.0' // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:27
    57.     implementation 'com.crashlytics.sdk.android:crashlytics:2.9.9' // Assets/Firebase/Editor/CrashlyticsDependencies.xml:15
    58.     implementation 'com.google.android.exoplayer:exoplayer:2.8.4' // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:40
    59.     implementation 'com.google.android.gms:play-services-ads:15.0.1' // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:10
    60.     implementation 'com.google.android.gms:play-services-location:15.0.1' // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:19
    61.     implementation 'com.google.firebase:firebase-analytics:17.2.0' // Assets/Firebase/Editor/RemoteConfigDependencies.xml:15
    62.     implementation 'com.google.firebase:firebase-analytics-unity:6.6.0' // Assets/Firebase/Editor/AnalyticsDependencies.xml:20
    63.     implementation 'com.google.firebase:firebase-app-unity:6.6.0' // Assets/Firebase/Editor/AppDependencies.xml:20
    64.     implementation 'com.google.firebase:firebase-common:19.1.0' // Assets/Firebase/Editor/AppDependencies.xml:13
    65.     implementation 'com.google.firebase:firebase-config:19.0.1' // Assets/Firebase/Editor/RemoteConfigDependencies.xml:13
    66.     implementation 'com.google.firebase:firebase-config-unity:6.6.0' // Assets/Firebase/Editor/RemoteConfigDependencies.xml:22
    67.     implementation 'com.google.firebase:firebase-crashlytics-unity:6.6.0' // Assets/Firebase/Editor/CrashlyticsDependencies.xml:20
    68.     implementation 'com.google.firebase:firebase-iid:[20.0.0]' // Assets/Firebase/Editor/RemoteConfigDependencies.xml:17
    69.     implementation 'com.google.firebase:firebase-messaging:20.0.0' // Assets/Firebase/Editor/MessagingDependencies.xml:17
    70.     implementation 'com.google.firebase:firebase-messaging-unity:6.6.0' // Assets/Firebase/Editor/MessagingDependencies.xml:22
    71. // Android Resolver Dependencies End
    72. **DEPS**}
    73.  
    74. // Android Resolver Exclusions Start
    75. android {
    76.   packagingOptions {
    77.       exclude ('/lib/arm64-v8a/*' + '*')
    78.       exclude ('/lib/armeabi/*' + '*')
    79.       exclude ('/lib/mips/*' + '*')
    80.       exclude ('/lib/mips64/*' + '*')
    81.       exclude ('/lib/x86/*' + '*')
    82.       exclude ('/lib/x86_64/*' + '*')
    83.   }
    84. }
    85. // Android Resolver Exclusions End
    86. android {
    87.    compileSdkVersion **APIVERSION**
    88.    buildToolsVersion '**BUILDTOOLS**'
    89.  
    90.    defaultConfig {
    91. consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD**
    92.       minSdkVersion **MINSDKVERSION**
    93.       targetSdkVersion **TARGETSDKVERSION**
    94.       multiDexEnabled true
    95.      
    96.       ndk {
    97.             abiFilters **ABIFILTERS**
    98.         }
    99.      
    100.       versionCode 2064
    101.    }
    102.  
    103.    lintOptions {
    104.       abortOnError false
    105.    }
    106.  
    107.    aaptOptions {
    108.       noCompress '.unity3d', '.ress', '.resource', '.obb'**STREAMING_ASSETS**
    109.    }
    110.  
    111. **SIGN**
    112.    buildTypes {
    113.       debug {
    114.          minifyEnabled **MINIFY_DEBUG**
    115.          useProguard **PROGUARD_DEBUG**
    116.          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'**USER_PROGUARD**
    117.          jniDebuggable true
    118.       }
    119.       release {
    120.          minifyEnabled **MINIFY_RELEASE**
    121.          useProguard **PROGUARD_RELEASE**
    122.          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'**USER_PROGUARD**
    123.          **SIGNCONFIG**
    124.       }
    125.    }
    126.    
    127.    
    128. **PACKAGING_OPTIONS**
    129.    
    130. }
    131.  
    132.  
    133. **SOURCE_BUILD_SETUP**
    134.  
     
    Last edited: Oct 18, 2019
  2. mikapote

    mikapote

    Joined:
    Oct 24, 2018
    Posts:
    28
    Hi @justtime ! I'm struggling with the same issue on 2019.3. Have you managed to find a solution?
     
  3. mikapote

    mikapote

    Joined:
    Oct 24, 2018
    Posts:
    28
    To add a bit more to the issue: I was actually trying to activate multidex, which is supposed to be a straightforward process (no issues in the past with my previous game).

    I encounter two build errors:
    1) The one described in this thread (More than one file was found with OS independent path 'androidsupportmultidexversion.txt')
    2) Or, if I don't minify the project when building, multidex seems not enabled at all ("D8: Cannot fit requested classes in a single dex file ")(??)

    Either way, I can't build with multidex in Unity 2019.3.
     
    Last edited: Oct 30, 2019
  4. JuliusM

    JuliusM

    Unity Technologies

    Joined:
    Apr 17, 2013
    Posts:
    821
  5. mahdi-malv

    mahdi-malv

    Joined:
    Jul 14, 2019
    Posts:
    4
    @mikapote Have you managed to solve this issue?

    I'm afraid unity as a library does not seem to help solving it. I'm still having the exact issues:

    MultiDex not enabled:

    D8: Cannot fit requested classes in a single dex file

    MultiDex enabled (In launcherTemplate.gradle or mainTemplate.gradle):

    More than one file was found with OS independent path 'androidsupportmultidexversion.txt'
     
  6. growsolutionsapp

    growsolutionsapp

    Joined:
    May 12, 2021
    Posts:
    16
    CommandInvokationFailure: Gradle build failed.
    C:\Program Files\Unity\Hub\Editor\2021.1.7f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "E:\gradle-5.6.4\lib\gradle-launcher-5.6.4.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "bundleRelease"

    stderr[

    FAILURE: Build failed with an exception.

    * What went wrong:
    Could not determine the dependencies of task ':launcher:collectReleaseDependencies'.
    > Could not resolve all task dependencies for configuration ':launcher:releaseRuntimeClasspath'.
    > Could not resolve com.google.android.gms:play-services-analytics:+.
    Required by:
    project :launcher > project :unityLibrary
    > Failed to list versions for com.google.android.gms:play-services-analytics.
    > Unable to load Maven meta-data from https://adcolony.bintray.com/AdColo...ms/play-services-analytics/maven-metadata.xml.
    > Could not get resource 'https://adcolony.bintray.com/AdColo...ms/play-services-analytics/maven-metadata.xml'.
    > Could not GET 'https://adcolony.bintray.com/AdColo...ms/play-services-analytics/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
    > Could not resolve com.google.android.gms:play-services-ads-base:[19.5.0].
    Required by:
    project :launcher > project :unityLibrary > com.google.android.gms:play-services-ads:19.5.0
    project :launcher > project :unityLibrary > com.google.android.gms:play-services-ads:19.5.0 > com.google.android.gms:play-services-ads-lite:19.5.0
    project :launcher > project :unityLibrary > com.google.android.gms:play-services-ads:19.5.0 > com.google.android.gms:play-services-gass:19.5.0
    > Skipped due to earlier error
    > Failed to list versions for com.google.android.gms:play-services-ads-base.
    > Unable to load Maven meta-data from https://dl.bintray.com/ironsource-m...gms/play-services-ads-base/maven-metadata.xml.
    > Could not get resource 'https://dl.bintray.com/ironsource-m...gms/play-services-ads-base/maven-metadata.xml'.
    > Could not GET 'https://dl.bintray.com/ironsource-m...gms/play-services-ads-base/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

    * 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 12s
    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.
    ]
    exit code: 1
    UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <cd517df1ccdc42249d6d08ee842341ea>:0)
    UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <cd517df1ccdc42249d6d08ee842341ea>:0)
    UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <cd517df1ccdc42249d6d08ee842341ea>:0)
    UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <cd517df1ccdc42249d6d08ee842341ea>:0)
    UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <cd517df1ccdc42249d6d08ee842341ea>: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 <cd517df1ccdc42249d6d08ee842341ea>:0)
    UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <cd517df1ccdc42249d6d08ee842341ea>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <cd517df1ccdc42249d6d08ee842341ea>: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 <cd517df1ccdc42249d6d08ee842341ea>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <cd517df1ccdc42249d6d08ee842341ea>: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 <cd517df1ccdc42249d6d08ee842341ea>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <cd517df1ccdc42249d6d08ee842341ea>: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 <03b7a01d7ff445ec8ed231b348714f65>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)
     
    gametapstudiostesting likes this.
  7. bekici

    bekici

    Joined:
    Nov 1, 2018
    Posts:
    7
    Hello,
    Bintray is down for now.
    https://statusgator.com/services/bintray
     
  8. growsolutionsapp

    growsolutionsapp

    Joined:
    May 12, 2021
    Posts:
    16
    I Have New Solution found for them
    implementation 'com.google.android.gms:play-services-analytics:18.0.0'
    and Use gradle-6.7.1
     
  9. gametapstudiostesting

    gametapstudiostesting

    Joined:
    Oct 20, 2021
    Posts:
    1
    Same issue you find any solution?
     
  10. growsolutionsapp

    growsolutionsapp

    Joined:
    May 12, 2021
    Posts:
    16
    com.google.android.gms:play-services-analytics:+
    to Replace com.google.android.gms:play-services-analytics:18.0.0
     
  11. growsolutionsapp

    growsolutionsapp

    Joined:
    May 12, 2021
    Posts:
    16
    I Have New Solution found for them
    implementation 'com.google.android.gms:play-services-analytics:18.0.0'
    and Use gradle-6.7.1