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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Bug Issue migrating to Unity 2022 LTS

Discussion in 'LevelPlay' started by PapayaLimon, Jun 10, 2023.

  1. PapayaLimon

    PapayaLimon

    Joined:
    Aug 22, 2018
    Posts:
    84
    Hello! My project works well with LevelPlay on Unity 2021 with banners and interstitials. But now that 2022 LTS is out I think its time to move to Unity 2022. So want to know if someone knows why i get this issues on my build. For some reason I delete Resolved Libraries and still appear as duplicated:

    Code (CSharp):
    1.  
    2. > Configure project :launcher
    3. WARNING:The option setting 'android.bundle.enableUncompressedNativeLibs=false' is deprecated.
    4. The current default is 'true'.
    5. It will be removed in version 8.0 of the Android Gradle plugin.
    6. You can add the following to your build.gradle instead:
    7. android {
    8.     packagingOptions {
    9.         jniLibs {
    10.             useLegacyPackaging = true
    11.         }
    12.     }
    13. }
    14.  
    15. > Configure project :unityLibrary
    16. Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'unityLibrary\build.gradle'
    17. Build was configured to prefer settings repositories over project repositories but repository 'maven2' was added by build file 'unityLibrary\build.gradle'
    18. Build was configured to prefer settings repositories over project repositories but repository 'maven3' was added by build file 'unityLibrary\build.gradle'
    19. Build was configured to prefer settings repositories over project repositories but repository 'MavenLocal' was added by build file 'unityLibrary\build.gradle'
    20. Build was configured to prefer settings repositories over project repositories but repository 'BintrayJCenter' was added by build file 'unityLibrary\build.gradle'
    21. Build was configured to prefer settings repositories over project repositories but repository 'MavenRepo' was added by build file 'unityLibrary\build.gradle'
    22. Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'unityLibrary\build.gradle'
    23. Build was configured to prefer settings repositories over project repositories but repository 'maven2' was added by build file 'unityLibrary\build.gradle'
    24. Build was configured to prefer settings repositories over project repositories but repository 'maven3' was added by build file 'unityLibrary\build.gradle'
    25. Build was configured to prefer settings repositories over project repositories but repository 'MavenLocal' was added by build file 'unityLibrary\build.gradle'
    26. Build was configured to prefer settings repositories over project repositories but repository 'BintrayJCenter' was added by build file 'unityLibrary\build.gradle'
    27. Build was configured to prefer settings repositories over project repositories but repository 'MavenRepo' was added by build file 'unityLibrary\build.gradle'
    28. Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'unityLibrary\build.gradle'
    29. Build was configured to prefer settings repositories over project repositories but repository 'maven2' was added by build file 'unityLibrary\build.gradle'
    30. Build was configured to prefer settings repositories over project repositories but repository 'maven3' was added by build file 'unityLibrary\build.gradle'
    31. Build was configured to prefer settings repositories over project repositories but repository 'MavenLocal' was added by build file 'unityLibrary\build.gradle'
    32. Build was configured to prefer settings repositories over project repositories but repository 'BintrayJCenter' was added by build file 'unityLibrary\build.gradle'
    33. Build was configured to prefer settings repositories over project repositories but repository 'MavenRepo' was added by build file 'unityLibrary\build.gradle'
    34. WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33
    35.  
    36. This Android Gradle plugin (7.1.2) was tested up to compileSdk = 32
    37.  
    38. This warning can be suppressed by adding
    39.     android.suppressUnsupportedCompileSdk=33
    40. to this project's gradle.properties
    41.  
    42. The build will continue, but you are strongly encouraged to update your project to
    43. use a newer Android Gradle Plugin that has been tested with compileSdk = 33
    44.  
    45. > Task :unityLibrary:IronSource.plugin:preBuild UP-TO-DATE
    46. > Task :unityLibrary:IronSource.androidlib:preBuild UP-TO-DATE
    47. > Task :unityLibrary:preBuild UP-TO-DATE
    48. > Task :launcher:preBuild UP-TO-DATE
    49. > Task :launcher:preReleaseBuild UP-TO-DATE
    50. > Task :unityLibrary:IronSource.androidlib:preReleaseBuild UP-TO-DATE
    51. > Task :unityLibrary:preReleaseBuild UP-TO-DATE
    52. > Task :unityLibrary:IronSource.plugin:preReleaseBuild UP-TO-DATE
    53. > Task :unityLibrary:IronSource.androidlib:packageReleaseRenderscript NO-SOURCE
    54. > Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
    55. > Task :unityLibrary:IronSource.plugin:packageReleaseRenderscript NO-SOURCE
    56. > Task :unityLibrary:IronSource.androidlib:compileReleaseRenderscript NO-SOURCE
    57. > Task :unityLibrary:IronSource.plugin:compileReleaseRenderscript NO-SOURCE
    58. > Task :unityLibrary:generateReleaseResValues UP-TO-DATE
    59. > Task :launcher:generateReleaseResValues UP-TO-DATE
    60. > Task :unityLibrary:IronSource.androidlib:generateReleaseResValues UP-TO-DATE
    61. > Task :unityLibrary:IronSource.plugin:generateReleaseResValues UP-TO-DATE
    62. > Task :unityLibrary:IronSource.plugin:generateReleaseResources UP-TO-DATE
    63. > Task :unityLibrary:IronSource.androidlib:generateReleaseResources UP-TO-DATE
    64. > Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
    65. > Task :launcher:compileReleaseRenderscript NO-SOURCE
    66. > Task :launcher:generateReleaseResources UP-TO-DATE
    67. > Task :unityLibrary:generateReleaseResources UP-TO-DATE
    68. > Task :launcher:writeReleaseApplicationId UP-TO-DATE
    69. > Task :unityLibrary:IronSource.androidlib:packageReleaseResources UP-TO-DATE
    70. > Task :unityLibrary:packageReleaseResources UP-TO-DATE
    71. > Task :unityLibrary:IronSource.plugin:packageReleaseResources UP-TO-DATE
    72. > Task :unityLibrary:IronSource.androidlib:extractDeepLinksRelease UP-TO-DATE
    73. > Task :unityLibrary:IronSource.plugin:extractDeepLinksRelease UP-TO-DATE
    74. > Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
    75. > Task :unityLibrary:IronSource.androidlib:processReleaseManifest UP-TO-DATE
    76. > Task :unityLibrary:processReleaseManifest UP-TO-DATE
    77. > Task :unityLibrary:IronSource.plugin:processReleaseManifest UP-TO-DATE
    78. > Task :unityLibrary:IronSource.plugin:compileReleaseLibraryResources UP-TO-DATE
    79. > Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
    80. > Task :unityLibrary:IronSource.androidlib:compileReleaseLibraryResources UP-TO-DATE
    81. > Task :launcher:analyticsRecordingRelease
    82. > Task :unityLibrary:IronSource.androidlib:mergeReleaseShaders UP-TO-DATE
    83. > Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
    84. > Task :unityLibrary:IronSource.plugin:mergeReleaseShaders UP-TO-DATE
    85. > Task :unityLibrary:compileReleaseShaders NO-SOURCE
    86. > Task :unityLibrary:IronSource.plugin:compileReleaseShaders NO-SOURCE
    87. > Task :unityLibrary:IronSource.androidlib:compileReleaseShaders NO-SOURCE
    88. > Task :unityLibrary:IronSource.plugin:generateReleaseAssets UP-TO-DATE
    89. > Task :unityLibrary:generateReleaseAssets UP-TO-DATE
    90. > Task :unityLibrary:IronSource.androidlib:generateReleaseAssets UP-TO-DATE
    91. > Task :unityLibrary:IronSource.androidlib:packageReleaseAssets UP-TO-DATE
    92. > Task :unityLibrary:IronSource.plugin:packageReleaseAssets UP-TO-DATE
    93. > Task :unityLibrary:IronSource.androidlib:compileReleaseAidl NO-SOURCE
    94. > Task :unityLibrary:IronSource.plugin:compileReleaseAidl NO-SOURCE
    95. > Task :unityLibrary:IronSource.plugin:parseReleaseLocalResources UP-TO-DATE
    96. > Task :unityLibrary:IronSource.androidlib:parseReleaseLocalResources UP-TO-DATE
    97. > Task :unityLibrary:IronSource.androidlib:generateReleaseRFile UP-TO-DATE
    98. > Task :unityLibrary:IronSource.plugin:generateReleaseRFile UP-TO-DATE
    99. > Task :unityLibrary:IronSource.androidlib:generateReleaseBuildConfig UP-TO-DATE
    100. > Task :unityLibrary:IronSource.plugin:generateReleaseBuildConfig UP-TO-DATE
    101. > Task :unityLibrary:IronSource.androidlib:javaPreCompileRelease UP-TO-DATE
    102. > Task :unityLibrary:IronSource.plugin:javaPreCompileRelease UP-TO-DATE
    103. > Task :unityLibrary:IronSource.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
    104. > Task :unityLibrary:IronSource.plugin:compileReleaseJavaWithJavac UP-TO-DATE
    105. > Task :unityLibrary:IronSource.androidlib:mergeReleaseGeneratedProguardFiles
    106. > Task :unityLibrary:IronSource.plugin:mergeReleaseGeneratedProguardFiles
    107. > Task :unityLibrary:packageReleaseAssets
    108. > Task :unityLibrary:compileReleaseAidl NO-SOURCE
    109. > Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
    110. > Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE
    111. > Task :unityLibrary:IronSource.plugin:writeReleaseAarMetadata UP-TO-DATE
    112. > Task :unityLibrary:IronSource.androidlib:writeReleaseAarMetadata UP-TO-DATE
    113. > Task :unityLibrary:IronSource.plugin:processReleaseJavaRes NO-SOURCE
    114. > Task :unityLibrary:IronSource.androidlib:processReleaseJavaRes NO-SOURCE
    115. > Task :unityLibrary:IronSource.androidlib:exportReleaseConsumerProguardFiles
    116. > Task :unityLibrary:IronSource.plugin:exportReleaseConsumerProguardFiles
    117. > Task :unityLibrary:IronSource.plugin:bundleLibResRelease NO-SOURCE
    118. > Task :unityLibrary:IronSource.androidlib:bundleLibResRelease NO-SOURCE
    119. > Task :unityLibrary:IronSource.plugin:mergeReleaseJniLibFolders UP-TO-DATE
    120. > Task :unityLibrary:IronSource.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
    121. > Task :unityLibrary:IronSource.plugin:mergeReleaseNativeLibs NO-SOURCE
    122. > Task :unityLibrary:IronSource.androidlib:mergeReleaseNativeLibs NO-SOURCE
    123. > Task :unityLibrary:IronSource.plugin:copyReleaseJniLibsProjectOnly UP-TO-DATE
    124. > Task :unityLibrary:IronSource.androidlib:copyReleaseJniLibsProjectOnly UP-TO-DATE
    125. > Task :unityLibrary:IronSource.plugin:prepareReleaseArtProfile UP-TO-DATE
    126. > Task :unityLibrary:IronSource.androidlib:prepareReleaseArtProfile UP-TO-DATE
    127. > Task :unityLibrary:IronSource.androidlib:bundleLibRuntimeToJarRelease
    128. > Task :unityLibrary:IronSource.plugin:bundleLibRuntimeToJarRelease
    129. > Task :unityLibrary:IronSource.plugin:bundleLibCompileToJarRelease
    130. > Task :unityLibrary:IronSource.androidlib:bundleLibCompileToJarRelease
    131. > Task :launcher:mergeReleaseResources FAILED
    132. > Task :unityLibrary:generateReleaseRFile FAILED
    133.  
    134. Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
    135.  
    136. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
    137.  
    138. See https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings
    139. 54 actionable tasks: 12 executed, 42 up-to-date
    140.  
    141. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    142.  
    143. Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    144.  
    145. FAILURE: Build completed with 2 failures.
    146.  
    147. 1: Task failed with an exception.
    148. -----------
    149. * What went wrong:
    150. Execution failed for task ':launcher:mergeReleaseResources'.
    151. > Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'.
    152.   > Could not find com.ironsource.adapters:adcolonyadapter:4.3.14.
    153.     Searched in the following locations:
    154.       - https://dl.google.com/dl/android/maven2/com/ironsource/adapters/adcolonyadapter/4.3.14/adcolonyadapter-4.3.14.pom
    155.       - https://repo.maven.apache.org/maven2/com/ironsource/adapters/adcolonyadapter/4.3.14/adcolonyadapter-4.3.14.pom
    156.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/adcolonyadapter-4.3.14.jar
    157.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/adcolonyadapter.jar
    158.     Required by:
    159.         project :launcher > project :unityLibrary
    160.   > Could not find com.ironsource.adapters:admobadapter:4.3.38.
    161.     Searched in the following locations:
    162.       - https://dl.google.com/dl/android/maven2/com/ironsource/adapters/admobadapter/4.3.38/admobadapter-4.3.38.pom
    163.       - https://repo.maven.apache.org/maven2/com/ironsource/adapters/admobadapter/4.3.38/admobadapter-4.3.38.pom
    164.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/admobadapter-4.3.38.jar
    165.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/admobadapter.jar
    166.     Required by:
    167.         project :launcher > project :unityLibrary
    168.   > Could not find com.ironsource.adapters:applovinadapter:4.3.39.
    169.     Searched in the following locations:
    170.       - https://dl.google.com/dl/android/maven2/com/ironsource/adapters/applovinadapter/4.3.39/applovinadapter-4.3.39.pom
    171.       - https://repo.maven.apache.org/maven2/com/ironsource/adapters/applovinadapter/4.3.39/applovinadapter-4.3.39.pom
    172.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/applovinadapter-4.3.39.jar
    173.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/applovinadapter.jar
    174.     Required by:
    175.         project :launcher > project :unityLibrary
    176.   > Could not find com.ironsource.adapters:facebookadapter:4.3.43.
    177.     Searched in the following locations:
    178.       - https://dl.google.com/dl/android/maven2/com/ironsource/adapters/facebookadapter/4.3.43/facebookadapter-4.3.43.pom
    179.       - https://repo.maven.apache.org/maven2/com/ironsource/adapters/facebookadapter/4.3.43/facebookadapter-4.3.43.pom
    180.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/facebookadapter-4.3.43.jar
    181.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/facebookadapter.jar
    182.     Required by:
    183.         project :launcher > project :unityLibrary
    184.   > Could not find com.ironsource.adapters:liftoffadapter:4.3.5.
    185.     Searched in the following locations:
    186.       - https://dl.google.com/dl/android/maven2/com/ironsource/adapters/liftoffadapter/4.3.5/liftoffadapter-4.3.5.pom
    187.       - https://repo.maven.apache.org/maven2/com/ironsource/adapters/liftoffadapter/4.3.5/liftoffadapter-4.3.5.pom
    188.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/liftoffadapter-4.3.5.jar
    189.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/liftoffadapter.jar
    190.     Required by:
    191.         project :launcher > project :unityLibrary
    192.   > Could not find com.ironsource.adapters:unityadsadapter:4.3.30.
    193.     Searched in the following locations:
    194.       - https://dl.google.com/dl/android/maven2/com/ironsource/adapters/unityadsadapter/4.3.30/unityadsadapter-4.3.30.pom
    195.       - https://repo.maven.apache.org/maven2/com/ironsource/adapters/unityadsadapter/4.3.30/unityadsadapter-4.3.30.pom
    196.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/unityadsadapter-4.3.30.jar
    197.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/unityadsadapter.jar
    198.     Required by:
    199.         project :launcher > project :unityLibrary
    200.   > Could not find com.ironsource.sdk:mediationsdk:7.3.1.
    201.     Searched in the following locations:
    202.       - https://dl.google.com/dl/android/maven2/com/ironsource/sdk/mediationsdk/7.3.1/mediationsdk-7.3.1.pom
    203.       - https://repo.maven.apache.org/maven2/com/ironsource/sdk/mediationsdk/7.3.1/mediationsdk-7.3.1.pom
    204.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/mediationsdk-7.3.1.jar
    205.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/mediationsdk.jar
    206.     Required by:
    207.         project :launcher > project :unityLibrary
    208.  
    209. * Try:
    210. 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.
    211. ==============================================================================
    212.  
    213. 2: Task failed with an exception.
    214. -----------
    215. * What went wrong:
    216. Execution failed for task ':unityLibrary:generateReleaseRFile'.
    217. > Could not resolve all files for configuration ':unityLibrary:releaseCompileClasspath'.
    218.   > Could not find com.ironsource.adapters:adcolonyadapter:4.3.14.
    219.     Required by:
    220.         project :unityLibrary
    221.   > Could not find com.ironsource.adapters:admobadapter:4.3.38.
    222.     Required by:
    223.         project :unityLibrary
    224.   > Could not find com.ironsource.adapters:applovinadapter:4.3.39.
    225.     Required by:
    226.         project :unityLibrary
    227.   > Could not find com.ironsource.adapters:facebookadapter:4.3.43.
    228.     Required by:
    229.         project :unityLibrary
    230.   > Could not find com.ironsource.adapters:liftoffadapter:4.3.5.
    231.     Required by:
    232.         project :unityLibrary
    233.   > Could not find com.ironsource.adapters:unityadsadapter:4.3.30.
    234.     Required by:
    235.         project :unityLibrary
    236.   > Could not find com.ironsource.sdk:mediationsdk:7.3.1.
    237.     Required by:
    238.         project :unityLibrary
    239.  
    240. * Try:
    241. 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.
    242. ==============================================================================
    243.  
    244. * Get more help at https://help.gradle.org
    245.  
    246. BUILD FAILED in 7s
    247.  
    248. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    249.  
    250. CommandInvokationFailure: Gradle build failed.
    251. C:\Program Files\Unity\Hub\Editor\2022.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2022.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-7.2.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "bundleRelease"
    252.  
    253. Environment Variables:
    254. USERDOMAIN = CUTYDINA
    255. ProgramFiles = C:\Program Files
    256. LAUNCH_DARKLY_CLIENT_TOKEN = 60a7e30fafc7e60e33446283
    257. TMP = C:\Users\geral\AppData\Local\Temp
    258. OneDrive = C:\Users\geral\OneDrive
    259. PROCESSOR_ARCHITECTURE = AMD64
    260. PROCESSOR_REVISION = a701
    261. OS = Windows_NT
    262. CHROME_CRASHPAD_PIPE_NAME = \\.\pipe\crashpad_14740_ITEXPYTMOZIUGSAY
    263. PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 167 Stepping 1, GenuineIntel
    264. ProgramW6432 = C:\Program Files
    265. GRADLE = C:\Gradle\gradle-6.9.3\bin
    266. USERPROFILE = C:\Users\geral
    267. JAVA_HOME = C:\Program Files\Unity\Hub\Editor\2022.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
    268. JD2_HOME = C:\Users\geral\AppData\Local\JDownloader 2.0
    269. DriverData = C:\Windows\System32\Drivers\DriverData
    270. ComSpec = C:\WINDOWS\system32\cmd.exe
    271. AMPLITUDE_API_KEY = 28f3cae0b33b8b3702120c9ed1a935aa
    272. PSModulePath = C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
    273. ANDROID_NDK_ROOT = C:\Program Files\Unity\Hub\Editor\2022.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK
    274. USERNAME = geral
    275. HEAP_CLIENT_TOKEN = 1717415662
    276. NUMBER_OF_PROCESSORS = 16
    277. WOOTRIC_CLIENT_TOKEN = NPS-aa8be4c3
    278. JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF-8
    279. DEBUG_ENV_VAR = UnityHub
    280. BURST_ANDROID_MIN_API_LEVEL = 22
    281. TEMP = C:\Users\geral\AppData\Local\Temp
    282. Path = C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\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\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\dotnet\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\geral\AppData\Local\Programs\Python\Python311\Scripts\;C:\Users\geral\AppData\Local\Programs\Python\Python311\;C:\Users\geral\AppData\Local\Microsoft\WindowsApps;C:\ffmpeg\bin;
    283. PYTHON = C:\Users\geral\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.11
    284. EFC_13888 = 1
    285. COMPUTERNAME = CUTYDINA
    286. PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    287. SystemDrive = C:
    288. ALLUSERSPROFILE = C:\ProgramData
    289. SENTRY_ACCESS_TOKEN = 3df78d9e53f8456aa90fbae044ce1a6261421ab1d0014674bc2e933477289017
    290. HEAP_CLIENT_TOKEN_STAGING = 3786794399
    291. windir = C:\WINDOWS
    292. AMPLITUDE_API_KEY_STAGING = 83ee04fccc67e4fcc7dd527c4c6f1e21
    293. PUBLIC = C:\Users\Public
    294. CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
    295. APPDATA = C:\Users\geral\AppData\Roaming
    296. CommonProgramFiles = C:\Program Files\Common Files
    297. PROCESSOR_LEVEL = 6
    298. CommonProgramW6432 = C:\Program Files\Common Files
    299. ProgramFiles(x86) = C:\Program Files (x86)
    300. SystemRoot = C:\WINDOWS
    301. SESSIONNAME = Console
    302. LOGONSERVER = \\CUTYDINA
    303. LOCALAPPDATA = C:\Users\geral\AppData\Local
    304. HOMEPATH = \Users\geral
    305. LAUNCH_DARKLY_CLIENT_TOKEN_STAGING = 60a7e30fafc7e60e33446282
    306. HOMEDRIVE = C:
    307. USERDOMAIN_ROAMINGPROFILE = CUTYDINA
    308. ProgramData = C:\ProgramData
    309. ORIGINAL_XDG_CURRENT_DESKTOP = undefined
    310.  
    311.  
    312. stderr[
    313. Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    314.  
    315. FAILURE: Build completed with 2 failures.
    316.  
    317. 1: Task failed with an exception.
    318. -----------
    319. * What went wrong:
    320. Execution failed for task ':launcher:mergeReleaseResources'.
    321. > Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'.
    322.   > Could not find com.ironsource.adapters:adcolonyadapter:4.3.14.
    323.     Searched in the following locations:
    324.       - https://dl.google.com/dl/android/maven2/com/ironsource/adapters/adcolonyadapter/4.3.14/adcolonyadapter-4.3.14.pom
    325.       - https://repo.maven.apache.org/maven2/com/ironsource/adapters/adcolonyadapter/4.3.14/adcolonyadapter-4.3.14.pom
    326.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/adcolonyadapter-4.3.14.jar
    327.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/adcolonyadapter.jar
    328.     Required by:
    329.         project :launcher > project :unityLibrary
    330.   > Could not find com.ironsource.adapters:admobadapter:4.3.38.
    331.     Searched in the following locations:
    332.       - https://dl.google.com/dl/android/maven2/com/ironsource/adapters/admobadapter/4.3.38/admobadapter-4.3.38.pom
    333.       - https://repo.maven.apache.org/maven2/com/ironsource/adapters/admobadapter/4.3.38/admobadapter-4.3.38.pom
    334.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/admobadapter-4.3.38.jar
    335.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/admobadapter.jar
    336.     Required by:
    337.         project :launcher > project :unityLibrary
    338.   > Could not find com.ironsource.adapters:applovinadapter:4.3.39.
    339.     Searched in the following locations:
    340.       - https://dl.google.com/dl/android/maven2/com/ironsource/adapters/applovinadapter/4.3.39/applovinadapter-4.3.39.pom
    341.       - https://repo.maven.apache.org/maven2/com/ironsource/adapters/applovinadapter/4.3.39/applovinadapter-4.3.39.pom
    342.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/applovinadapter-4.3.39.jar
    343.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/applovinadapter.jar
    344.     Required by:
    345.         project :launcher > project :unityLibrary
    346.   > Could not find com.ironsource.adapters:facebookadapter:4.3.43.
    347.     Searched in the following locations:
    348.       - https://dl.google.com/dl/android/maven2/com/ironsource/adapters/facebookadapter/4.3.43/facebookadapter-4.3.43.pom
    349.       - https://repo.maven.apache.org/maven2/com/ironsource/adapters/facebookadapter/4.3.43/facebookadapter-4.3.43.pom
    350.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/facebookadapter-4.3.43.jar
    351.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/facebookadapter.jar
    352.     Required by:
    353.         project :launcher > project :unityLibrary
    354.   > Could not find com.ironsource.adapters:liftoffadapter:4.3.5.
    355.     Searched in the following locations:
    356.       - https://dl.google.com/dl/android/maven2/com/ironsource/adapters/liftoffadapter/4.3.5/liftoffadapter-4.3.5.pom
    357.       - https://repo.maven.apache.org/maven2/com/ironsource/adapters/liftoffadapter/4.3.5/liftoffadapter-4.3.5.pom
    358.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/liftoffadapter-4.3.5.jar
    359.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/liftoffadapter.jar
    360.     Required by:
    361.         project :launcher > project :unityLibrary
    362.   > Could not find com.ironsource.adapters:unityadsadapter:4.3.30.
    363.     Searched in the following locations:
    364.       - https://dl.google.com/dl/android/maven2/com/ironsource/adapters/unityadsadapter/4.3.30/unityadsadapter-4.3.30.pom
    365.       - https://repo.maven.apache.org/maven2/com/ironsource/adapters/unityadsadapter/4.3.30/unityadsadapter-4.3.30.pom
    366.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/unityadsadapter-4.3.30.jar
    367.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/unityadsadapter.jar
    368.     Required by:
    369.         project :launcher > project :unityLibrary
    370.   > Could not find com.ironsource.sdk:mediationsdk:7.3.1.
    371.     Searched in the following locations:
    372.       - https://dl.google.com/dl/android/maven2/com/ironsource/sdk/mediationsdk/7.3.1/mediationsdk-7.3.1.pom
    373.       - https://repo.maven.apache.org/maven2/com/ironsource/sdk/mediationsdk/7.3.1/mediationsdk-7.3.1.pom
    374.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/mediationsdk-7.3.1.jar
    375.       - file:/C:/Geraldina/Mobile Games/TheSpiderAndTheSnake/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/mediationsdk.jar
    376.     Required by:
    377.         project :launcher > project :unityLibrary
    378.  
    379. * Try:
    380. 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.
    381. ==============================================================================
    382.  
    383. 2: Task failed with an exception.
    384. -----------
    385. * What went wrong:
    386. Execution failed for task ':unityLibrary:generateReleaseRFile'.
    387. > Could not resolve all files for configuration ':unityLibrary:releaseCompileClasspath'.
    388.   > Could not find com.ironsource.adapters:adcolonyadapter:4.3.14.
    389.     Required by:
    390.         project :unityLibrary
    391.   > Could not find com.ironsource.adapters:admobadapter:4.3.38.
    392.     Required by:
    393.         project :unityLibrary
    394.   > Could not find com.ironsource.adapters:applovinadapter:4.3.39.
    395.     Required by:
    396.         project :unityLibrary
    397.   > Could not find com.ironsource.adapters:facebookadapter:4.3.43.
    398.     Required by:
    399.         project :unityLibrary
    400.   > Could not find com.ironsource.adapters:liftoffadapter:4.3.5.
    401.     Required by:
    402.         project :unityLibrary
    403.   > Could not find com.ironsource.adapters:unityadsadapter:4.3.30.
    404.     Required by:
    405.         project :unityLibrary
    406.   > Could not find com.ironsource.sdk:mediationsdk:7.3.1.
    407.     Required by:
    408.         project :unityLibrary
    409.  
    410. * Try:
    411. 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.
    412. ==============================================================================
    413.  
    414. * Get more help at https://help.gradle.org
    415.  
    416. BUILD FAILED in 7s
    417. ]
    418. stdout[
    419.  
    420. > Configure project :launcher
    421. WARNING:The option setting 'android.bundle.enableUncompressedNativeLibs=false' is deprecated.
    422. The current default is 'true'.
    423. It will be removed in version 8.0 of the Android Gradle plugin.
    424. You can add the following to your build.gradle instead:
    425. android {
    426.    packagingOptions {
    427.        jniLibs {
    428.            useLegacyPackaging = true
    429.        }
    430.    }
    431. }
    432.  
    433. > Configure project :unityLibrary
    434. Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'unityLibrary\build.gradle'
    435. Build was configured to prefer settings repositories over project repositories but repository 'maven2' was added by build file 'unityLibrary\build.gradle'
    436. Build was configured to prefer settings repositories over project repositories but repository 'maven3' was added by build file 'unityLibrary\build.gradle'
    437. Build was configured to prefer settings repositories over project repositories but repository 'MavenLocal' was added by build file 'unityLibrary\build.gradle'
    438. Build was configured to prefer settings repositories over project repositories but repository 'BintrayJCenter' was added by build file 'unityLibrary\build.gradle'
    439. Build was configured to prefer settings repositories over project repositories but repository 'MavenRepo' was added by build file 'unityLibrary\build.gradle'
    440. Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'unityLibrary\build.gradle'
    441. Build was configured to prefer settings repositories over project repositories but repository 'maven2' was added by build file 'unityLibrary\build.gradle'
    442. Build was configured to prefer settings repositories over project repositories but repository 'maven3' was added by build file 'unityLibrary\build.gradle'
    443. Build was configured to prefer settings repositories over project repositories but repository 'MavenLocal' was added by build file 'unityLibrary\build.gradle'
    444. Build was configured to prefer settings repositories over project repositories but repository 'BintrayJCenter' was added by build file 'unityLibrary\build.gradle'
    445. Build was configured to prefer settings repositories over project repositories but repository 'MavenRepo' was added by build file 'unityLibrary\build.gradle'
    446. Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'unityLibrary\build.gradle'
    447. Build was configured to prefer settings repositories over project repositories but repository 'maven2' was added by build file 'unityLibrary\build.gradle'
    448. Build was configured to prefer settings repositories over project repositories but repository 'maven3' was added by build file 'unityLibrary\build.gradle'
    449. Build was configured to prefer settings repositories over project repositories but repository 'MavenLocal' was added by build file 'unityLibrary\build.gradle'
    450. Build was configured to prefer settings repositories over project repositories but repository 'BintrayJCenter' was added by build file 'unityLibrary\build.gradle'
    451. Build was configured to prefer settings repositories over project repositories but repository 'MavenRepo' was added by build file 'unityLibrary\build.gradle'
    452. WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33
    453.  
    454. This Android Gradle plugin (7.1.2) was tested up to compileSdk = 32
    455.  
    456. This warning can be suppressed by adding
    457.    android.suppressUnsupportedCompileSdk=33
    458. to this project's gradle.properties
    459.  
    460. The build will continue, but you are strongly encouraged to update your project to
    461. use a newer Android Gradle Plugin that has been tested with compileSdk = 33
    462.  
    463. > Task :unityLibrary:IronSource.plugin:preBuild UP-TO-DATE
    464. > Task :unityLibrary:IronSource.androidlib:preBuild UP-TO-DATE
    465. > Task :unityLibrary:preBuild UP-TO-DATE
    466. > Task :launcher:preBuild UP-TO-DATE
    467. > Task :launcher:preReleaseBuild UP-TO-DATE
    468. > Task :unityLibrary:IronSource.androidlib:preReleaseBuild UP-TO-DATE
    469. > Task :unityLibrary:preReleaseBuild UP-TO-DATE
    470. > Task :unityLibrary:IronSource.plugin:preReleaseBuild UP-TO-DATE
    471. > Task :unityLibrary:IronSource.androidlib:packageReleaseRenderscript NO-SOURCE
    472. > Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
    473. > Task :unityLibrary:IronSource.plugin:packageReleaseRenderscript NO-SOURCE
    474. > Task :unityLibrary:IronSource.androidlib:compileReleaseRenderscript NO-SOURCE
    475. > Task :unityLibrary:IronSource.plugin:compileReleaseRenderscript NO-SOURCE
    476. > Task :unityLibrary:generateReleaseResValues UP-TO-DATE
    477. > Task :launcher:generateReleaseResValues UP-TO-DATE
    478. > Task :unityLibrary:IronSource.androidlib:generateReleaseResValues UP-TO-DATE
    479. > Task :unityLibrary:IronSource.plugin:generateReleaseResValues UP-TO-DATE
    480. > Task :unityLibrary:IronSource.plugin:generateReleaseResources UP-TO-DATE
    481. > Task :unityLibrary:IronSource.androidlib:generateReleaseResources UP-TO-DATE
    482. > Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
    483. > Task :launcher:compileReleaseRenderscript NO-SOURCE
    484. > Task :launcher:generateReleaseResources UP-TO-DATE
    485. > Task :unityLibrary:generateReleaseResources UP-TO-DATE
    486. > Task :launcher:writeReleaseApplicationId UP-TO-DATE
    487. > Task :unityLibrary:IronSource.androidlib:packageReleaseResources UP-TO-DATE
    488. > Task :unityLibrary:packageReleaseResources UP-TO-DATE
    489. > Task :unityLibrary:IronSource.plugin:packageReleaseResources UP-TO-DATE
    490. > Task :unityLibrary:IronSource.androidlib:extractDeepLinksRelease UP-TO-DATE
    491. > Task :unityLibrary:IronSource.plugin:extractDeepLinksRelease UP-TO-DATE
    492. > Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
    493. > Task :unityLibrary:IronSource.androidlib:processReleaseManifest UP-TO-DATE
    494. > Task :unityLibrary:processReleaseManifest UP-TO-DATE
    495. > Task :unityLibrary:IronSource.plugin:processReleaseManifest UP-TO-DATE
    496. > Task :unityLibrary:IronSource.plugin:compileReleaseLibraryResources UP-TO-DATE
    497. > Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
    498. > Task :unityLibrary:IronSource.androidlib:compileReleaseLibraryResources UP-TO-DATE
    499. > Task :launcher:analyticsRecordingRelease
    500. > Task :unityLibrary:IronSource.androidlib:mergeReleaseShaders UP-TO-DATE
    501. > Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
    502. > Tas<message truncated>
    503. Build completed with a result of 'Failed' in 463 seconds (463092 ms)
    504. 3 errors
    505. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    506.  
    507.  
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,415
    Do you use any custom android manifest or template files?
    What target API do you target?

    I saw a lot of ironsource stuff. Are all packages and everything related to ads up to date?
     
  3. PapayaLimon

    PapayaLimon

    Joined:
    Aug 22, 2018
    Posts:
    84
    Yes, I use custom on both. Android manifest just add the

    Code (CSharp):
    1. "<uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove" />"
    for avoid problems on GooglePlay.

    And on Gradle template:

    Code (CSharp):
    1. android.useAndroidX=true
    2. android.enableJetifier=true
    3. android.enableR8.fullMode=true


    API Level 33

    Yes, Checked, updated, delete resolved libraries and resolve and also try force resolve.

    Image of Build files:
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,415
    Start without any manifest/template/lroguard/minify and see if that works. These versions will give issues when changing Unity versions since stuff like the included sdk and gradle change
     
  5. PapayaLimon

    PapayaLimon

    Joined:
    Aug 22, 2018
    Posts:
    84
    When I do that Gradle Resolve stuck and didn't do nothing.

    Code (CSharp):
    1. Win32Exception: ApplicationName='C:\Geraldina\Mobile Games\TheSpiderAndTheSnake\Temp\PlayServicesResolverGradle\gradlew.bat', CommandLine='--no-daemon -b "C:\Geraldina\Mobile Games\TheSpiderAndTheSnake\Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle" "-PANDROID_HOME=C:/Program Files/Unity/Hub/Editor/2022.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK" "-PTARGET_DIR=C:\Geraldina\Mobile Games\TheSpiderAndTheSnake\Assets\Plugins\Android" "-PMAVEN_REPOS=https://android-sdk.is.com/;https://maven.google.com/" "-PPACKAGES_TO_COPY=com.ironsource.sdk:mediationsdk:7.3.1;com.google.android.gms:play-services-ads-identifier:18.0.1;com.google.android.gms:play-services-basement:18.1.0;com.adcolony:sdk:4.8.0;com.ironsource.adapters:adcolonyadapter:4.3.14;com.google.android.gms:play-services-ads:22.1.0;com.ironsource.adapters:admobadapter:4.3.38;com.ironsource.adapters:applovinadapter:4.3.39;com.applovin:applovin-sdk:11.10.1;com.facebook.android:audience-network-sdk:6.14.0;com.ironsource.adapters:facebookadapter:4.3.43;io.liftoff:liftoffads:1.9.1;com.ironsource.adapters:liftoffadapter:4.3.5;com.ironsource.adapters:unityadsadapter:4.3.30;com.unity3d.ads:unity-ads:4.7.1" "-PUSE_JETIFIER=1" "-PDATA_BINDING_VERSION=7.1.2"', CurrentDirectory='C:\Geraldina\Mobile Games\TheSpiderAndTheSnake\Temp\PlayServicesResolverGradle', Native error= El sistema no puede encontrar el archivo especificado.
    2.  
    3. System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) (at <6bb3336e864c4ab48c43a2538573e586>:0)
    4. System.Diagnostics.Process.Start () (at <6bb3336e864c4ab48c43a2538573e586>:0)
    5. (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    6. GooglePlayServices.CommandLine.RunViaShell (System.String toolPath, System.String arguments, System.String workingDirectory, System.Collections.Generic.Dictionary`2[TKey,TValue] envVars, GooglePlayServices.CommandLine+IOHandler ioHandler, System.Boolean useShellExecution, System.Boolean stdoutRedirectionInShellMode) (at <6107d0e161ea44f5b1a06a3cb63d4bc0>:0)
    7. GooglePlayServices.CommandLine.Run (System.String toolPath, System.String arguments, System.String workingDirectory, System.Collections.Generic.Dictionary`2[TKey,TValue] envVars, GooglePlayServices.CommandLine+IOHandler ioHandler) (at <6107d0e161ea44f5b1a06a3cb63d4bc0>:0)
    8. GooglePlayServices.CommandLine+<RunAsync>c__AnonStorey0.<>m__1 () (at <6107d0e161ea44f5b1a06a3cb63d4bc0>:0)
    9. System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) (at <6aa56e57ab504395b555cf3ed50fa53d>:0)
    10. System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <6aa56e57ab504395b555cf3ed50fa53d>:0)
    11. System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <6aa56e57ab504395b555cf3ed50fa53d>:0)
    12. System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) (at <6aa56e57ab504395b555cf3ed50fa53d>:0)
    13. System.Threading.ThreadHelper.ThreadStart () (at <6aa56e57ab504395b555cf3ed50fa53d>:0)
    14. UnityEngine.<>c:<RegisterUECatcher>b__0_0(Object, UnhandledExceptionEventArgs)
    15.  

    I also tested removing LevelPlay and it builds ok, but if I install again it stucks again on 0% at Resolve. What will be the correct way to Migrate from 2021 to 2022?
     
  6. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,415
    Maybe level play has a new setup?
     
  7. PapayaLimon

    PapayaLimon

    Joined:
    Aug 22, 2018
    Posts:
    84
    So, what do you think i need to do in that case? :(
     
  8. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,415
    Remove the package and custom android files, check documentation, follow it.
    And don't use auto resolving packages etc if you do, they cause a lot of issues
     
  9. PapayaLimon

    PapayaLimon

    Joined:
    Aug 22, 2018
    Posts:
    84
    ok. i will try, i will tell here if i get any luck
     
    DevDunk likes this.
  10. PapayaLimon

    PapayaLimon

    Joined:
    Aug 22, 2018
    Posts:
    84
    Ok, done that but still not building. I didn't auto resolve packages but started to Resolve at build and stuck forever :(. Build ok without Ads Mediation, so something wrong with it. Or need to get stuck in 2021 forever?
     
  11. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,415
  12. PapayaLimon

    PapayaLimon

    Joined:
    Aug 22, 2018
    Posts:
    84
    Already installed that one. My game works ok in 2021 and show ads correctly. The issue is when i try to migrate project to 2022.
     
  13. PapayaLimon

    PapayaLimon

    Joined:
    Aug 22, 2018
    Posts:
    84
    Ok I export one of my games as a package, I create a new file in Unity 2022 LTS and installed Ads Mediation with Iron Source. This is what I get just in a new project, without changing anything in 2022. Some ideas why this happen??? Is completely new, nothing installed.

     
  14. Iris_Alvarez

    Iris_Alvarez

    Joined:
    Nov 15, 2015
    Posts:
    1
    Hello, I have the same problem, could someone solve it?
     
  15. DonJorris

    DonJorris

    Joined:
    Mar 29, 2016
    Posts:
    8
    Hey, use this tutorial to fix the Win32Exception:

    the fix starts at 6:11
     
  16. PapayaLimon

    PapayaLimon

    Joined:
    Aug 22, 2018
    Posts:
    84
    Ok, done this but still cant get my game build correctly. I get the same issue all the time

    Code (CSharp):
    1.  
    2.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$12 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    3.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$13 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    4.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$14 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    5.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$15 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    6.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$16 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    7.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$17 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    8.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$18 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    9.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$19 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    10.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$2 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    11.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$20 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    12.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$21 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    13.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$22 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    14.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$23 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    15.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$24 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    16.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$25 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    17.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$26 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    18.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$27 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    19.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$28 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    20.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$29 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    21.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$3 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    22.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$30 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    23.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$31 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    24.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$32 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    25.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$33 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    26.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$34 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    27.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$35 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    28.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$36 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    29.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$37 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    30.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$38 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    31.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$39 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    32.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$4 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    33.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$40 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    34.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$41 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    35.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$41$1 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    36.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$41$1$1 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    37.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$41$2 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    38.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$41$2$1 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    39.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$41$2$2 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    40.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$41$2$3 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    41.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$41$2$4 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    42.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$41$2$5 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    43.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$41$2$6 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    44.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$41$2$7 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    45.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$41$3 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    46.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$41$3$1 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    47.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$41$3$2 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    48.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$41$3$3 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    49.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$41$3$4 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    50.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$41$3$5 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    51.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$41$3$6 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    52.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$41$3$7 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    53.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$42 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    54.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$43 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    55.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$44 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    56.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$5 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    57.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$6 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    58.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$7 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    59.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$8 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    60.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$9 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    61.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridgeConstants found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    62.      Duplicate class com.ironsource.unity.androidbridge.AndroidBridgeUtilities found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    63.      Duplicate class com.ironsource.unity.androidbridge.LevelPlayInterstitialWrapper found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    64.      Duplicate class com.ironsource.unity.androidbridge.LevelPlayInterstitialWrapper$1 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    65.      Duplicate class com.ironsource.unity.androidbridge.LevelPlayInterstitialWrapper$2 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    66.      Duplicate class com.ironsource.unity.androidbridge.LevelPlayInterstitialWrapper$3 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    67.      Duplicate class com.ironsource.unity.androidbridge.LevelPlayInterstitialWrapper$4 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    68.      Duplicate class com.ironsource.unity.androidbridge.LevelPlayInterstitialWrapper$5 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    69.      Duplicate class com.ironsource.unity.androidbridge.LevelPlayInterstitialWrapper$6 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    70.      Duplicate class com.ironsource.unity.androidbridge.LevelPlayInterstitialWrapper$7 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    71.      Duplicate class com.ironsource.unity.androidbridge.LevelPlayRewardedVideoWrapper found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    72.      Duplicate class com.ironsource.unity.androidbridge.LevelPlayRewardedVideoWrapper$1 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    73.      Duplicate class com.ironsource.unity.androidbridge.LevelPlayRewardedVideoWrapper$2 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    74.      Duplicate class com.ironsource.unity.androidbridge.LevelPlayRewardedVideoWrapper$3 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    75.      Duplicate class com.ironsource.unity.androidbridge.LevelPlayRewardedVideoWrapper$4 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    76.      Duplicate class com.ironsource.unity.androidbridge.LevelPlayRewardedVideoWrapper$5 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    77.      Duplicate class com.ironsource.unity.androidbridge.LevelPlayRewardedVideoWrapper$6 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    78.      Duplicate class com.ironsource.unity.androidbridge.LevelPlayRewardedVideoWrapper$7 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    79.      Duplicate class com.ironsource.unity.androidbridge.LevelPlayRewardedVideoWrapper$8 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    80.      Duplicate class com.ironsource.unity.androidbridge.LevelPlayRewardedVideoWrapper$9 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    81.      Duplicate class com.ironsource.unity.androidbridge.UnityBannerListener found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    82.      Duplicate class com.ironsource.unity.androidbridge.UnityImpressionDataListener found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    83.      Duplicate class com.ironsource.unity.androidbridge.UnityInitializationListener found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    84.      Duplicate class com.ironsource.unity.androidbridge.UnityInterstitialListener found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    85.      Duplicate class com.ironsource.unity.androidbridge.UnityLevelPlayBannerListener found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    86.      Duplicate class com.ironsource.unity.androidbridge.UnityLevelPlayInterstitialListener found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    87.      Duplicate class com.ironsource.unity.androidbridge.UnityLevelPlayRewardedVideoListener found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    88.      Duplicate class com.ironsource.unity.androidbridge.UnityLevelPlayRewardedVideoManualListener found in modules IronSource-bridg<message truncated>

    I Delete Resolved Libraries and still getting this issue. Also, I add the gradlew.bat file and suddenly disappear again. So Im not making any progress. I'm becoming crazy with all this stuff.
     
  17. DonJorris

    DonJorris

    Joined:
    Mar 29, 2016
    Posts:
    8
    Same error here, please tell me if you find a solution...
    Starting to pull my hair out D;
     
  18. DonJorris

    DonJorris

    Joined:
    Mar 29, 2016
    Posts:
    8
    Last edited: Jul 4, 2023
  19. PapayaLimon

    PapayaLimon

    Joined:
    Aug 22, 2018
    Posts:
    84
    will wait to see how is going. Hoping you get lucky.
     
  20. DonJorris

    DonJorris

    Joined:
    Mar 29, 2016
    Posts:
    8
    It finally finally works!!

    okay, the problem is that the mobile dependencie resolver does not work the way it should and IronSource doesn't install correctly if you do the steps written on their website.

    To get it working I did the following:
    1. Fix the duplicate classes error you get by deleting the file ironSource.plugin file located at Assets/IronSource/Plugins/Android, this seems to be from an older version of IronSource that doesn't get deleted, when installing. In the same folder should be another file called IronSource.androidlib, this is the correct one.

    After doing that building the demoscene worked for me, but it didn't show ads and logcat showed an error saying that it couldn't find some classes when pressing the "show rewarded ad" button.
    This is caused by the mobile dependencie resolver not downloading the resources once you click resolve.

    2. So to fix this, click Delete Resolved Libraries then resolve, on my end it showed "Resolve Successful" but thats a lie.
    Use Force Resolve instead! This throwed another error: "Could not create an instance of type org.gradle.initialization.DefaultSettings_Decorated"
    This is fixed the most ridiculous way described here: https://stackoverflow.com/a/73342855/22178553
    So after doing that using Force Resolve should work and the dependencies should download.
    Remember to always copy the gradlew.bat file into the temp folder as shown in the video or you will get the Win32 error.

    So now test ads are shown when building to an android phone. yay!

    Hope this helps, if you run into another error just write it in here, I might have run into the same error earlier...
    Good luck with your project!
     
  21. PapayaLimon

    PapayaLimon

    Joined:
    Aug 22, 2018
    Posts:
    84
    ok, done that and still not resolve :(
     
  22. DonJorris

    DonJorris

    Joined:
    Mar 29, 2016
    Posts:
    8
    okay there are some other steps I did, which might have helped. I deleted the unity cache, reimported all my assets and toggled the first two settings in the mobile dependency resolver settings (Use Gradle daemon and enable auto-resolution) on and off, make sure to save those settings at the bottom of the window.
    I don't know if any of that helped, but I was able to Force Resolve afterwards.
     
  23. jennifer_unity277

    jennifer_unity277

    Joined:
    Jan 18, 2022
    Posts:
    6
    @PapayaLimon I had the same issue and just got my Android build working. I needed to update to the newest version of EDM4U as the location for repos is supposed to be specified in the settingsTemplate.gradle file rather than mainTemplate.gradle (where it was previously).
    Specifically, check this setting for the Android Resolver before resolving your libraries.
     

    Attached Files:

  24. uranaka

    uranaka

    Joined:
    Jul 14, 2021
    Posts:
    6
    Hello.I have the same problem.

    I updated EDM4.
    (Assets→External Dependency Manager→Version Handler→Update)

    However,the following items do not appear in the settings for the Android Resolver.

    "Copy and patch settingsTemplate.gradle from 2022.2"

    What should I do now?
     
  25. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,415
    Try without EDM if possible. All build issues I've seen are because it F***s up
     
  26. uranaka

    uranaka

    Joined:
    Jul 14, 2021
    Posts:
    6
    Thank you for the reply.

    I did deleting ironSource.plugin folder located at Assets/IronSource/Plugins/Android.

    That made the build possible.

    But no ads are displayed.

    Logcat showed errors like this:

    "setUnityInitializationListener method doesn't exist, error: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/ironsource/mediationsdk/sdk/InitializationListener;"

    What should I do next?
     
    Last edited: Aug 28, 2023
  27. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,415
    Follow the setup guide for the ads package you use step by step
     
  28. uranaka

    uranaka

    Joined:
    Jul 14, 2021
    Posts:
    6
    My problem was solved.

    I did the following.

    *Deleting "ironSource.plugin" folder located at Assets/IronSource/Plugins/Android.

    *Setting "android.enableR8=true"(gradleTemplate.properties)

    *Updating to the newest version of EDM4U
    (Download URL https://developers.google.com/unity/archive?hl=en#external_dependency_manager_for_unity)

    *Don't check "Enable Auto Resolution" in EDM4U settings.

    *Doing Force Resolve with EDM4U.

    I hope it solves your problem too!
     
    Last edited: Aug 28, 2023
    vagelis199 likes this.