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 Build failed after Unity Update

Discussion in 'Android' started by magsoftware, Nov 15, 2022.

  1. magsoftware

    magsoftware

    Joined:
    Feb 7, 2019
    Posts:
    111
    I updated Unity from 2021 to 2022.1.19f1 and I can't build my game anymore.

    Error:
    Code (CSharp):
    1. Building Library\Bee\artifacts\Android\fy9m9\libil2cpp.so failed with output:
    2. LLVM ERROR: out of memory
    3. clang++: error: linker command failed due to signal (use -v to see invocation)
    If I change C++ Compiler configuration from MASTER to RELEASE, Unity builds my game but there is another problem. If I install and start the game on my device.. there is a huge gap between scenes and other functions. The scenes loading takes more than 2 minutes...
     
    Last edited: Nov 15, 2022
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,669
    Do you by chance have Scripting Debugging enabled? If so, disabling might help.
     
  3. magsoftware

    magsoftware

    Joined:
    Feb 7, 2019
    Posts:
    111
    upload_2022-11-16_8-35-53.png

    upload_2022-11-16_8-39-23.png

    upload_2022-11-16_8-40-16.png

    Script debugging has already been disabled. Is there something wrong with my settings?
     
    Last edited: Nov 16, 2022
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,669
    It's not about settings, it's more about scripts and what cpp files are generated, Google says that this error might happens when you have some big data structures allocated on the heap. For ex., see here - https://stackoverflow.com/questions...f-memory-how-to-fix-this-error-if-its-fixable

    Try inspecting the generated cpp files and see if there's anything suspicious. To get cpp files - export gradle project from Unity, the cpp files will be in Il2CppOutput directory
     
  5. magsoftware

    magsoftware

    Joined:
    Feb 7, 2019
    Posts:
    111
    But everything was fine before updating Unity from v2021 to 2022.1.19f1... is it normal for this to happen now?
     
  6. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,669
    It's possible, since there could have been changes which made the cpp files generated differently. To be sure you would need to compare generated cpp files from 2021 against 2022.
     
  7. magsoftware

    magsoftware

    Joined:
    Feb 7, 2019
    Posts:
    111
    I don't have that version of unity in PC and I can't find it in unity hub anymore :) Also, I exported my project and I don't know what to look for in the cpp files. What could be suspicious? There are a lot of cpp files with a lot of lines. Where should I look and for what?
     
  8. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,669
    Check the biggest cpp file for starters, maybe attach here
     
  9. magsoftware

    magsoftware

    Joined:
    Feb 7, 2019
    Posts:
    111
  10. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,669
    I don't see anything suspicious. Here are some few things to try:
    * Change Il2Cpp Code Generation to Faster (Smaller) builds in Player Settings, it might produce smaller cpp files.
    * In 2022.1, il2cpp introduced generic sharing, you can try disabling it, Preferences->Diagnostics (enable it)->Editor->VMIl2CppAditionalArgs enter --disable-generic-sharing
    * Try 2022.2, it contains NDK upgrade, means compiler/linker was upgraded, it might have Out Of Memory fixed for LLVM.
     
  11. magsoftware

    magsoftware

    Joined:
    Feb 7, 2019
    Posts:
    111
    Thank you! I cannot disable generic shader. I've got this error :

    Code (CSharp):
    1. Building Library\Bee\artifacts\Android\ManagedStripped failed with output:
    2. Unknown arguments :
    3.      disable-generic-sharing
    Building Library\Bee\artifacts\Android\ManagedStripped failed with output:
    Unknown arguments :
    --disable-generic-sharing
     
  12. magsoftware

    magsoftware

    Joined:
    Feb 7, 2019
    Posts:
    111
    I've updated Unity to 2022.2.. Errors:
    Code (CSharp):
    1. CommandInvokationFailure: Gradle build failed.
    2. C:\Program Files\Unity\Hub\Editor\2022.2.0b16\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2022.2.0b16\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-7.2.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
    3.  
    4. Environment Variables:
    5. USERDOMAIN = DESKTOP-72FHNRT
    6. ProgramFiles = C:\Program Files
    7. TMP = C:\Users\magst\AppData\Local\Temp
    8. PROCESSOR_ARCHITECTURE = AMD64
    9. PROCESSOR_REVISION = 9e0d
    10. OneDriveConsumer = C:\Users\magst\OneDrive
    11. OS = Windows_NT
    12. CHROME_CRASHPAD_PIPE_NAME = \\.\pipe\crashpad_10916_JSLYCJFQOXVBKQTS
    13. PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 158 Stepping 13, GenuineIntel
    14. ProgramW6432 = C:\Program Files
    15. USERPROFILE = C:\Users\magst
    16. JAVA_HOME = C:\Program Files\Unity\Hub\Editor\2022.2.0b16\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
    17. CommonProgramFiles = C:\Program Files\Common Files
    18. DriverData = C:\Windows\System32\Drivers\DriverData
    19. ComSpec = C:\Windows\system32\cmd.exe
    20. PSModulePath = C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
    21. ANDROID_NDK_ROOT = C:\Program Files\Unity\Hub\Editor\2022.2.0b16\Editor\Data\PlaybackEngines\AndroidPlayer\NDK
    22. USERNAME = magst
    23. NUMBER_OF_PROCESSORS = 8
    24. JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF-8
    25. BURST_ANDROID_MIN_API_LEVEL = 22
    26. HOMEDRIVE = C:
    27. TEMP = C:\Users\magst\AppData\Local\Temp
    28. Path = C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\magst\AppData\Local\Microsoft\WindowsApps;
    29. COMPUTERNAME = DESKTOP-72FHNRT
    30. PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    31. ALLUSERSPROFILE = C:\ProgramData
    32. SystemDrive = C:
    33. windir = C:\Windows
    34. HOMEPATH = \Users\magst
    35. PUBLIC = C:\Users\Public
    36. CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
    37. APPDATA = C:\Users\magst\AppData\Roaming
    38. OneDrive = C:\Users\magst\OneDrive
    39. PROCESSOR_LEVEL = 6
    40. CommonProgramW6432 = C:\Program Files\Common Files
    41. ProgramFiles(x86) = C:\Program Files (x86)
    42. SystemRoot = C:\Windows
    43. SESSIONNAME = Console
    44. LOGONSERVER = \\DESKTOP-72FHNRT
    45. LOCALAPPDATA = C:\Users\magst\AppData\Local
    46. __COMPAT_LAYER = DetectorsAppHealth
    47. USERDOMAIN_ROAMINGPROFILE = DESKTOP-72FHNRT
    48. ProgramData = C:\ProgramData
    49. ORIGINAL_XDG_CURRENT_DESKTOP = undefined
    50.  
    51.  
    52. stderr[
    53. Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    54.  
    55. FAILURE: Build failed with an exception.
    56.  
    57. * What went wrong:
    58. A problem occurred configuring root project 'Gradle'.
    59. > Could not resolve all artifacts for configuration ':classpath'.
    60.    > Could not resolve io.grpc:grpc-context:1.21.1.
    61.      Required by:
    62.          project : > com.android.application:com.android.application.gradle.plugin:7.1.2 > com.android.tools.build:gradle:7.1.2 > io.grpc:grpc-core:1.21.1 > io.grpc:grpc-api:1.21.1
    63.       > Could not resolve io.grpc:grpc-context:1.21.1.
    64.          > Could not get resource 'https://plugins.gradle.org/m2/io/grpc/grpc-context/1.21.1/grpc-context-1.21.1.pom'.
    65.             > Could not GET 'https://plugins.gradle.org/m2/io/grpc/grpc-context/1.21.1/grpc-context-1.21.1.pom'.
    66.                > No such host is known (plugins.gradle.org)
    67.       > Could not resolve io.grpc:grpc-context:1.21.1.
    68.          > Could not get resource 'https://dl.google.com/dl/android/maven2/io/grpc/grpc-context/1.21.1/grpc-context-1.21.1.pom'.
    69.             > Could not GET 'https://dl.google.com/dl/android/maven2/io/grpc/grpc-context/1.21.1/grpc-context-1.21.1.pom'.
    70.                > No such host is known (dl.google.com)
    71.       > Could not resolve io.grpc:grpc-context:1.21.1.
    72.          > Could not get resource 'https://repo.maven.apache.org/maven2/io/grpc/grpc-context/1.21.1/grpc-context-1.21.1.pom'.
    73.             > Could not GET 'https://repo.maven.apache.org/maven2/io/grpc/grpc-context/1.21.1/grpc-context-1.21.1.pom'.
    74.                > No such host is known (repo.maven.apache.org)
    75.    > Could not resolve io.netty:netty-common:4.1.34.Final.
    76.      Required by:
    77.          project : > com.android.application:com.android.application.gradle.plugin:7.1.2 > com.android.tools.build:gradle:7.1.2 > io.grpc:grpc-netty:1.21.1 > io.netty:netty-codec-http2:4.1.34.Final
    78.          project : > com.android.application:com.android.application.gradle.plugin:7.1.2 > com.android.tools.build:gradle:7.1.2 > io.grpc:grpc-netty:1.21.1 > io.netty:netty-handler-proxy:4.1.34.Final
    79.       > Could not resolve io.netty:netty-common:4.1.34.Final.
    80.          > Could not get resource 'https://plugins.gradle.org/m2/io/netty/netty-common/4.1.34.Final/netty-common-4.1.34.Final.pom'.
    81.             > Could not GET 'https://plugins.gradle.org/m2/io/netty/netty-common/4.1.34.Final/netty-common-4.1.34.Final.pom'.
    82.                > plugins.gradle.org
    83.       > Could not resolve io.netty:netty-common:4.1.34.Final.
    84.          > Could not get resource 'https://dl.google.com/dl/android/maven2/io/netty/netty-common/4.1.34.Final/netty-common-4.1.34.Final.pom'.
    85.             > Could not GET 'https://dl.google.com/dl/android/maven2/io/netty/netty-common/4.1.34.Final/netty-common-4.1.34.Final.pom'.
    86.                > dl.google.com
    87.       > Could not resolve io.netty:netty-common:4.1.34.Final.
    88.          > Could not get resource 'https://repo.maven.apache.org/maven2/io/netty/netty-common/4.1.34.Final/netty-common-4.1.34.Final.pom'.
    89.             > Could not GET 'https://repo.maven.apache.org/maven2/io/netty/netty-common/4.1.34.Final/netty-common-4.1.34.Final.pom'.
    90.                > repo.maven.apache.org
    91.    > Could not resolve io.netty:netty-buffer:4.1.34.Final.
    92.      Required by:
    93.          project : > com.android.application:com.android.application.gradle.plugin:7.1.2 > com.android.tools.build:gradle:7.1.2 > io.grpc:grpc-netty:1.21.1 > io.netty:netty-codec-http2:4.1.34.Final
    94.          project : > com.android.application:com.android.application.gradle.plugin:7.1.2 > com.android.tools.build:gradle:7.1.2 > io.grpc:grpc-netty:1.21.1 > io.netty:netty-handler-proxy:4.1.34.Final
    95.       > Could not resolve io.netty:netty-buffer:4.1.34.Final.
    96.          > Could not get resource 'https://plugins.gradle.org/m2/io/netty/netty-buffer/4.1.34.Final/netty-buffer-4.1.34.Final.pom'.
    97.             > Could not GET 'https://plugins.gradle.org/m2/io/netty/netty-buffer/4.1.34.Final/netty-buffer-4.1.34.Final.pom'.
    98.                > plugins.gradle.org
    99.       > Could not resolve io.netty:netty-buffer:4.1.34.Final.
    100.          > Could not get resource 'https://dl.google.com/dl/android/maven2/io/netty/netty-buffer/4.1.34.Final/netty-buffer-4.1.34.Final.pom'.
    101.             > Could not GET 'https://dl.google.com/dl/android/maven2/io/netty/netty-buffer/4.1.34.Final/netty-buffer-4.1.34.Final.pom'.
    102.                > dl.google.com
    103.       > Could not resolve io.netty:netty-buffer:4.1.34.Final.
    104.          > Could not get resource 'https://repo.maven.apache.org/maven2/io/netty/netty-buffer/4.1.34.Final/netty-buffer-4.1.34.Final.pom'.
    105.             > Could not GET 'https://repo.maven.apache.org/maven2/io/netty/netty-buffer/4.1.34.Final/netty-buffer-4.1.34.Final.pom'.
    106.                > repo.maven.apache.org
    107.    > Could not resolve io.netty:netty-transport:4.1.34.Final.
    108.      Required by:
    109.          project : > com.android.application:com.android.application.gradle.plugin:7.1.2 > com.android.tools.build:gradle:7.1.2 > io.grpc:grpc-netty:1.21.1 > io.netty:netty-codec-http2:4.1.34.Final
    110.          project : > com.android.application:com.android.application.gradle.plugin:7.1.2 > com.android.tools.build:gradle:7.1.2 > io.grpc:grpc-netty:1.21.1 > io.netty:netty-handler-proxy:4.1.34.Final
    111.       > Could not resolve io.netty:netty-transport:4.1.34.Final.
    112.          > Could not get resource 'https://plugins.gradle.org/m2/io/netty/netty-transport/4.1.34.Final/netty-transport-4.1.34.Final.pom'.
    113.             > Could not GET 'https://plugins.gradle.org/m2/io/netty/netty-transport/4.1.34.Final/netty-transport-4.1.34.Final.pom'.
    114.                > plugins.gradle.org
    115.       > Could not resolve io.netty:netty-transport:4.1.34.Final.
    116.          > Could not get resource 'https://dl.google.com/dl/android/maven2/io/netty/netty-transport/4.1.34.Final/netty-transport-4.1.34.Final.pom'.
    117.             > Could not GET 'https://dl.google.com/dl/android/maven2/io/netty/netty-transport/4.1.34.Final/netty-transport-4.1.34.Final.pom'.
    118.                > dl.google.com
    119.       > Could not resolve io.netty:netty-transport:4.1.34.Final.
    120.          > Could not get resource 'https://repo.maven.apache.org/maven2/io/netty/netty-transport/4.1.34.Final/netty-transport-4.1.34.Final.pom'.
    121.             > Could not GET 'https://repo.maven.apache.org/maven2/io/netty/netty-transport/4.1.34.Final/netty-transport-4.1.34.Final.pom'.
    122.                > repo.maven.apache.org
    123.    > Could not resolve io.netty:netty-codec:4.1.34.Final.
    124.      Required by:
    125.          project : > com.android.application:com.android.application.gradle.plugin:7.1.2 > com.android.tools.build:gradle:7.1.2 > io.grpc:grpc-netty:1.21.1 > io.netty:netty-codec-http2:4.1.34.Final
    126.          project : > com.android.application:com.android.application.gradle.plugin:7.1.2 > com.android.tools.build:gradle:7.1.2 > io.grpc:grpc-netty:1.21.1 > io.netty:netty-handler-proxy:4.1.34.Final
    127.       > Could not resolve io.netty:netty-codec:4.1.34.Final.
    128.          > Could not get resource 'https://plugins.gradle.org/m2/io/netty/netty-codec/4.1.34.Final/netty-codec-4.1.34.Final.pom'.
    129.             > Could not GET 'https://plugins.gradle.org/m2/io/netty/netty-codec/4.1.34.Final/netty-codec-4.1.34.Final.pom'.
    130.                > plugins.gradle.org
    131.       > Could not resolve io.netty:netty-codec:4.1.34.Final.
    132.          > Could not get resource 'https://dl.google.com/dl/android/maven2/io/netty/netty-codec/4.1.34.Final/netty-codec-4.1.34.Final.pom'.
    133.             > Could not GET 'https://dl.google.com/dl/android/maven2/io/netty/netty-codec/4.1.34.Final/netty-codec-4.1.34.Final.pom'.
    134.                > dl.google.com
    135.       > Could not resolve io.netty:netty-codec:4.1.34.Final.
    136.          > Could not get resource 'https://repo.maven.apache.org/maven2/io/netty/netty-codec/4.1.34.Final/netty-codec-4.1.34.Final.pom'.
    137.             > Could not GET 'https://repo.maven.apache.org/maven2/io/netty/netty-codec/4.1.34.Final/netty-codec-4.1.34.Final.pom'.
    138.                > repo.maven.apache.org
    139.    > Could not resolve io.netty:netty-handler:4.1.34.Final.
    140.      Required by:
    141.          project : > com.android.application:com.android.application.gradle.plugin:7.1.2 > com.android.tools.build:gradle:7.1.2 > io.grpc:grpc-netty:1.21.1 > io.netty:netty-codec-http2:4.1.34.Final
    142.       > Could not resolve io.netty:netty-handler:4.1.34.Final.
    143.          > Could not get resource 'https://plugins.gradle.org/m2/io/netty/netty-handler/4.1.34.Final/netty-handler-4.1.34.Final.pom'.
    144.             > Could not GET 'https://plugins.gradle.org/m2/io/netty/netty-handler/4.1.34.Final/netty-handler-4.1.34.Final.pom'.
    145.                > plugins.gradle.org
    146.       > Could not resolve io.netty:netty-handler:4.1.34.Final.
    147.          > Could not get resource 'https://dl.google.com/dl/android/maven2/io/netty/netty-handler/4.1.34.Final/netty-handler-4.1.34.Final.pom'.
    148.             > Could not GET 'https://dl.google.com/dl/android/maven2/io/netty/netty-handler/4.1.34.Final/netty-handler-4.1.34.Final.pom'.
    149.                > dl.google.com
    150.       > Could not resolve io.netty:netty-handler:4.1.34.Final.
    151.          > Could not get resource 'https://repo.maven.apache.org/maven2/io/netty/netty-handler/4.1.34.Final/netty-handler-4.1.34.Final.pom'.
    152.             > Could not GET 'https://repo.maven.apache.org/maven2/io/netty/netty-handler/4.1.34.Final/netty-handler-4.1.34.Final.pom'.
    153.                > repo.maven.apache.org
    154.    > Could not resolve io.netty:netty-codec-http:4.1.34.Final.
    155.      Required by:
    156.          project : > com.android.application:com.android.application.gradle.plugin:7.1.2 > com.android.tools.build:gradle:7.1.2 > io.grpc:grpc-netty:1.21.1 > io.netty:netty-codec-http2:4.1.34.Final
    157.          project : > com.android.application:com.android.application.gradle.plugin:7.1.2 > com.android.tools.build:gradle:7.1.2 > io.grpc:grpc-netty:1.21.1 > io.netty:netty-handler-proxy:4.1.34.Final
    158.       > Could not resolve io.netty:netty-codec-http:4.1.34.Final.
    159.          > Could not get resource 'https://plugins.gradle.org/m2/io/netty/netty-codec-http/4.1.34.Final/netty-codec-http-4.1.34.Final.pom'.
    160.             > Could not GET 'https://plugins.gradle.org/m2/io/netty/netty-codec-http/4.1.34.Final/netty-codec-http-4.1.34.Final.pom'.
    161.                > plugins.gradle.org
    162.       > Could not resolve io.netty:netty-codec-http:4.1.34.Final.
    163.          > Could not get resource 'https://dl.google.com/dl/android/maven2/io/netty/netty-codec-http/4.1.34.Final/netty-codec-http-4.1.34.Final.pom'.
    164.             > Could not GET 'https://dl.google.com/dl/android/maven2/io/netty/netty-codec-http/4.1.34.Final/netty-codec-http-4.1.34.Final.pom'.
    165.                > dl.google.com
    166.       > Could not resolve io.netty:netty-codec-http:4.1.34.Final.
    167.          > Could not get resource 'https://repo.maven.apache.org/maven2/io/netty/netty-codec-http/4.1.34.Final/netty-codec-http-4.1.34.Final.pom'.
    168.             > Could not GET 'https://repo.maven.apache.org/maven2/io/netty/netty-codec-http/4.1.34.Final/netty-codec-http-4.1.34.Final.pom'.
    169.                > repo.maven.apache.org
    170.    > Could not resolve io.netty:netty-codec-socks:4.1.34.Final.
    171.      Required by:
    172.          project : > com.android.application:com.android.application.gradle.plugin:7.1.2 > com.android.tools.build:gradle:7.1.2 > io.grpc:grpc-netty:1.21.1 > io.netty:netty-handler-proxy:4.1.34.Final
    173.       > Could not resolve io.netty:netty-codec-socks:4.1.34.Final.
    174.          > Could not get resource 'https://plugins.gradle.org/m2/io/netty/netty-codec-socks/4.1.34.Final/netty-codec-socks-4.1.34.Final.pom'.
    175.             > Could not GET 'https://plugins.gradle.org/m2/io/netty/netty-codec-socks/4.1.34.Final/netty-codec-socks-4.1.34.Final.pom'.
    176.                > plugins.gradle.org
    177.       > Could not resolve io.netty:netty-codec-socks:4.1.34.Final.
    178.          > Could not get resource 'https://dl.google.com/dl/android/maven2/io/netty/netty-codec-socks/4.1.34.Final/netty-codec-socks-4.1.34.Final.pom'.
    179.             > Could not GET 'https://dl.google.com/dl/android/maven2/io/netty/netty-codec-socks/4.1.34.Final/netty-codec-socks-4.1.34.Final.pom'.
    180.                > dl.google.com
    181.       > Could not resolve io.netty:netty-codec-socks:4.1.34.Final.
    182.          > Could not get resource 'https://repo.maven.apache.org/maven2/io/netty/netty-codec-socks/4.1.34.Final/netty-codec-socks-4.1.34.Final.pom'.
    183.             > Could not GET 'https://repo.maven.apache.org/maven2/io/netty/netty-codec-socks/4.1.34.Final/netty-codec-socks-4.1.34.Final.pom'.
    184.                > repo.maven.apache.org
    185.    > Could not resolve com.fasterxml.jackson.core:jackson-databind:2.11.1.
    186.      Required by:
    187.          project : > com.android.application:com.android.application.gradle.plugin:7.1.2 > com.android.tools.build:gradle:7.1.2 > org.jetbrains.dokka:dokka-core:1.4.32 > com.fasterxml.jackson.module:jackson-module-kotlin:2.11.1
    188.          project : > com.android.application:com.android.application.gradle.plugin:7.1.2 > com.android.tools.build:gradle:7.1.2 > org.jetbrains.dokka:dokka-core:1.4.32 > com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.11.1
    189.       > Could not resolve com.fasterxml.jackson.core:jackson-databind:2.11.1.
    190.          > Could not get resource 'https://plugins.gradle.org/m2/com/fasterxml/jackson/core/jackson-databind/2.11.1/jackson-databind-2.11.1.pom'.
    191.             > Could not GET 'https://plugins.gradle.org/m2/com/fasterxml/jackson/core/jackson-databind/2.11.1/jackson-databind-2.11.1.pom'.
    192.                > plugins.gradle.org
    193.       > Could not resolve com.fasterxml.jackson.core:jackson-databind:2.11.1.
    194.          > Could not get resource 'https://dl.google.com/dl/android/maven2/com/fasterxml/jackson/core/jackson-databind/2.11.1/jackson-databind-2.11.1.pom'.
    195.             > Could not GET 'https://dl.google.com/dl/android/maven2/com/fasterxml/jackson/core/jackson-databind/2.11.1/jackson-databind-2.11.1.pom'.
    196.                > dl.google.com
    197.       > Could not resolve com.fasterxml.jackson.core:jackson-databind:2.11.1.
    198.          > Could not get r<message truncated>
     
    Last edited: Nov 21, 2022
  13. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,669
    Do you have any gradle templates set? Wondering if this is some kind of incompatability? or connection issues.
     
  14. magsoftware

    magsoftware

    Joined:
    Feb 7, 2019
    Posts:
    111
    I am using these settings and I am not able to untick them:
    upload_2022-11-22_11-14-40.png

    I tried to reinstall windows, reinstall unity v2022.2 and I've got this error now:

    Code (CSharp):
    1. Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
    2.  
    3. > Configure project :
    4. Build was configured to prefer settings repositories over project repositories but repository 'Google' was added by build file 'build.gradle'
    5. Build was configured to prefer settings repositories over project repositories but repository 'BintrayJCenter' was added by build file 'build.gradle'
    6. Build was configured to prefer settings repositories over project repositories but repository 'flatDir' was added by build file 'build.gradle'
    7.  
    8. Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
    9.  
    10. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
    11.  
    12. See https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings
    13.  
    Code (CSharp):
    1. Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    2.  
    3. FAILURE: Build failed with an exception.
    4.  
    5. * Where:
    6. Build file 'D:\fb-games\ShipSimulatorMultiplayer\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\build.gradle' line: 3
    7.  
    8. * What went wrong:
    9. A problem occurred evaluating project ':launcher'.
    10. > Failed to apply plugin 'com.android.internal.version-check'.
    11.    > Cannot parse project property android.enableR8='' of type 'class java.lang.String' as boolean. Expected 'true' or 'false'.
    12.  
    13. * Try:
    14. 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.
    15.  
    16. * Get more help at https://help.gradle.org
    17.  
    18. BUILD FAILED in 46s
    19.  
     
  15. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,669
    Probably the templates are no longer compatible with the Unity version you've updated to. I would suggest:
    * Delete and backup the templates
    * Create new ones
    * Merge the new ones with the ones you've backed up and move them back into Unity project.

    P.S android.enableR8= was removed in newer android plugin gradle versions, that's why you're getting an error.
     
  16. magsoftware

    magsoftware

    Joined:
    Feb 7, 2019
    Posts:
    111
    I deleted mainTemplate.gradle, baseProjectTemplate.gradle, launcherTemplate.gradle and gradleTemplate.properties and tried to use Resolve Dependencies.

    After that I've got this error :
    Code (CSharp):
    1. Gradle sync failed: Cause: compileSdkVersion is not specified.
    I changed minSDK to 23( Android 6.0 ) and my project built successfully.

    Thank you for your support!
     
    Last edited: Nov 22, 2022
    Rachan and Tomas1856 like this.
  17. Rachan

    Rachan

    Joined:
    Dec 3, 2012
    Posts:
    663
    I have error say about gradle too, I using unity 2022.2.1f1
     
  18. robson_unity208

    robson_unity208

    Joined:
    Jul 14, 2020
    Posts:
    7
    I tried doing like mentioned above, regenerating the templates. But I am still getting the same errors:

    Code (CSharp):
    1.  
    2. * What went wrong:
    3. Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
    4. > Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'.
    5.    > Could not find com.google.firebase:firebase-analytics-unity:10.3.0.
    6.      Searched in the following locations:
    7.        - https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-analytics-unity/10.3.0/firebase-analytics-unity-10.3.0.pom
    8.  
     
  19. JulienPlayrion

    JulienPlayrion

    Joined:
    Oct 21, 2021
    Posts:
    5
    For anyone struggling more than necessary on this, updating Firebase to the last version (11.0.0 currently) fixes the issue.
    I guess that the fix is contained in the last version of the EDM, that is included within this Firebase version (1.2.176).
    From the changelog: "Android Resolver - Inject Maven Repo to `settingTemplate.gradle` from Unity 2022.2+"
     
    DntasEduardo likes this.