Search Unity

Bug [Android] Gradle build issue - Unity 2021.3.8f1

Discussion in 'AR' started by unity_298708, Nov 4, 2022.

  1. unity_298708

    unity_298708

    Joined:
    Oct 18, 2022
    Posts:
    1
    Hello, I am currently having an issue with building an app using ARCore, I have posted the details below. Any ideas about what's been causing this error?


    CommandInvokationFailure: Gradle build failed.
    C:\Program Files\Unity\Hub\Editor\2021.3.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2021.3.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleDebug"

    Environment Variables:
    __PSLockDownPolicy = 0
    USERDOMAIN = CNUSD
    ProgramFiles = C:\Program Files
    Gradle = D:\Gradle\gradle-6.9.3
    TMP = C:\Users\298708\AppData\Local\Temp
    PROCESSOR_ARCHITECTURE = AMD64
    PROCESSOR_REVISION = 9702
    OS = Windows_NT
    CHROME_CRASHPAD_PIPE_NAME = \\.\pipe\crashpad_21356_ZBSZDJFMVXWDOIDD
    PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 151 Stepping 2, GenuineIntel
    UATDATA = C:\WINDOWS\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77
    USERPROFILE = C:\Users\298708
    JAVA_HOME = C:\Program Files\Unity\Hub\Editor\2021.3.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
    CommonProgramFiles = C:\Program Files\Common Files
    DriverData = C:\Windows\System32\Drivers\DriverData
    ComSpec = C:\WINDOWS\system32\cmd.exe
    PSModulePath = C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
    PUBLIC = C:\Users\Public
    SystemRoot = C:\WINDOWS
    NUMBER_OF_PROCESSORS = 24
    USERDNSDOMAIN = CNUSD.K12.CA.US
    JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF-8
    ProgramW6432 = C:\Program Files
    FPS_BROWSER_APP_PROFILE_STRING = Internet Explorer
    HOMEDRIVE = C:
    TEMP = C:\Users\298708\AppData\Local\Temp
    Path = 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:\Users\298708\AppData\Local\Microsoft\WindowsApps;
    USERNAME = 298708
    COMPUTERNAME = CEHS-401-29
    PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    OneDriveCommercial = C:\Users\298708\OneDrive - Corona-Norco Unified School District
    ALLUSERSPROFILE = C:\ProgramData
    SystemDrive = C:
    windir = C:\WINDOWS
    FPS_BROWSER_USER_PROFILE_STRING = Default
    HOMEPATH = \Users\298708
    CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
    APPDATA = C:\Users\298708\AppData\Roaming
    OneDrive = C:\Users\298708\OneDrive - Corona-Norco Unified School District
    PROCESSOR_LEVEL = 6
    CommonProgramW6432 = C:\Program Files\Common Files
    ProgramFiles(x86) = C:\Program Files (x86)
    SESSIONNAME = Console
    LOGONSERVER = \\DO-DC-4
    LOCALAPPDATA = C:\Users\298708\AppData\Local
    __COMPAT_LAYER = DetectorsAppHealth
    USERDOMAIN_ROAMINGPROFILE = CNUSD
    ProgramData = C:\ProgramData
    ORIGINAL_XDG_CURRENT_DESKTOP = undefined


    stderr[

    FAILURE: Build failed with an exception.

    * What went wrong:
    A problem occurred configuring project ':launcher'.
    > Could not resolve all artifacts for configuration ':launcher:classpath'.
    > Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72.
    Required by:
    project :launcher > com.android.tools.build:gradle:4.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:aaptcompiler:4.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.lint:lint-gradle-api:27.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:gradle-api:4.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > androidx.databinding:databinding-compiler-common:4.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdk-common:27.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:common:27.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools.build:manifest-merger:27.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools.analytics-library:tracker:27.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdklib:27.0.1 > com.android.tools:repository:27.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdk-common:27.0.1 > com.android.tools.analytics-library:shared:27.0.1
    > Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72.
    > Could not get resource 'https://jcenter.bintray.com/org/jet...lib-jdk8/1.3.72/kotlin-stdlib-jdk8-1.3.72.pom'.
    > Could not GET 'https://jcenter.bintray.com/org/jet...lib-jdk8/1.3.72/kotlin-stdlib-jdk8-1.3.72.pom'.
    > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    > Could not resolve org.ow2.asm:asm:7.0.
    Required by:
    project :launcher > com.android.tools.build:gradle:4.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1
    > Could not resolve org.ow2.asm:asm:7.0.
    > Could not get resource 'https://jcenter.bintray.com/org/ow2/asm/asm/7.0/asm-7.0.pom'.
    > Could not GET 'https://jcenter.bintray.com/org/ow2/asm/asm/7.0/asm-7.0.pom'.
    > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    > Could not resolve org.ow2.asm:asm-analysis:7.0.
    Required by:
    project :launcher > com.android.tools.build:gradle:4.0.1
    > Could not resolve org.ow2.asm:asm-analysis:7.0.
    > Could not get resource 'https://jcenter.bintray.com/org/ow2/asm/asm-analysis/7.0/asm-analysis-7.0.pom'.
    > Could not GET 'https://jcenter.bintray.com/org/ow2/asm/asm-analysis/7.0/asm-analysis-7.0.pom'.
    > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    > Could not resolve org.ow2.asm:asm-commons:7.0.
    Required by:
    project :launcher > com.android.tools.build:gradle:4.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1
    > Could not resolve org.ow2.asm:asm-commons:7.0.
    > Could not get resource 'https://jcenter.bintray.com/org/ow2/asm/asm-commons/7.0/asm-commons-7.0.pom'.
    > Could not GET 'https://jcenter.bintray.com/org/ow2/asm/asm-commons/7.0/asm-commons-7.0.pom'.
    > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    > Could not resolve org.ow2.asm:asm-util:7.0.
    Required by:
    project :launcher > com.android.tools.build:gradle:4.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1
    > Could not resolve org.ow2.asm:asm-util:7.0.
    > Could not get resource 'https://jcenter.bintray.com/org/ow2/asm/asm-util/7.0/asm-util-7.0.pom'.
    > Could not GET 'https://jcenter.bintray.com/org/ow2/asm/asm-util/7.0/asm-util-7.0.pom'.
    > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    > Could not resolve net.sf.jopt-simple:jopt-simple:4.9.
    Required by:
    project :launcher > com.android.tools.build:gradle:4.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1
    > Could not resolve net.sf.jopt-simple:jopt-simple:4.9.
    > Could not get resource 'https://jcenter.bintray.com/net/sf/jopt-simple/jopt-simple/4.9/jopt-simple-4.9.pom'.
    > Could not GET 'https://jcenter.bintray.com/net/sf/jopt-simple/jopt-simple/4.9/jopt-simple-4.9.pom'.
    > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    > Could not resolve net.sf.proguard:proguard-gradle:6.0.3.
    Required by:
    project :launcher > com.android.tools.build:gradle:4.0.1
    > Could not resolve net.sf.proguard:proguard-gradle:6.0.3.
    > Could not get resource 'https://jcenter.bintray.com/net/sf/proguard/proguard-gradle/6.0.3/proguard-gradle-6.0.3.pom'.
    > Could not GET 'https://jcenter.bintray.com/net/sf/proguard/proguard-gradle/6.0.3/proguard-gradle-6.0.3.pom'.
    > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    > Could not resolve com.google.protobuf:protobuf-java:3.10.0.
    Required by:
    project :launcher > com.android.tools.build:gradle:4.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdk-common:27.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools.analytics-library:protos:27.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools.analytics-library:tracker:27.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:aaptcompiler:4.0.1 > com.android.tools.build:aapt2-proto:4.0.1-6197926
    > Could not resolve com.google.protobuf:protobuf-java:3.10.0.
    > Could not get resource 'https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.10.0/protobuf-java-3.10.0.pom'.
    > Could not GET 'https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.10.0/protobuf-java-3.10.0.pom'.
    > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    > Could not resolve com.google.protobuf:protobuf-java-util:3.10.0.
    Required by:
    project :launcher > com.android.tools.build:gradle:4.0.1
    > Could not resolve com.google.protobuf:protobuf-java-util:3.10.0.
    > Could not get resource 'https://jcenter.bintray.com/com/goo...ava-util/3.10.0/protobuf-java-util-3.10.0.pom'.
    > Could not GET 'https://jcenter.bintray.com/com/goo...ava-util/3.10.0/protobuf-java-util-3.10.0.pom'.
    > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    > Could not resolve com.google.crypto.tink:tink:1.3.0-rc2.
    Required by:
    project :launcher > com.android.tools.build:gradle:4.0.1
    > Could not resolve com.google.crypto.tink:tink:1.3.0-rc2.
    > Could not get resource 'https://jcenter.bintray.com/com/google/crypto/tink/tink/1.3.0-rc2/tink-1.3.0-rc2.pom'.
    > Could not GET 'https://jcenter.bintray.com/com/google/crypto/tink/tink/1.3.0-rc2/tink-1.3.0-rc2.pom'.
    > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    > Could not resolve com.squareup:javawriter:2.5.0.
    Required by:
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1
    > Could not resolve com.squareup:javawriter:2.5.0.
    > Could not get resource 'https://jcenter.bintray.com/com/squareup/javawriter/2.5.0/javawriter-2.5.0.pom'.
    > Could not GET 'https://jcenter.bintray.com/com/squareup/javawriter/2.5.0/javawriter-2.5.0.pom'.
    > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    > Could not resolve org.bouncycastle:bcpkix-jdk15on:1.56.
    Required by:
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdk-common:27.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools.build:apkzlib:4.0.1
    > Could not resolve org.bouncycastle:bcpkix-jdk15on:1.56.
    > Could not get resource 'https://jcenter.bintray.com/org/bouncycastle/bcpkix-jdk15on/1.56/bcpkix-jdk15on-1.56.pom'.
    > Could not GET 'https://jcenter.bintray.com/org/bouncycastle/bcpkix-jdk15on/1.56/bcpkix-jdk15on-1.56.pom'.
    > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    > Could not resolve org.bouncycastle:bcprov-jdk15on:1.56.
    Required by:
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdk-common:27.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools.build:apkzlib:4.0.1
    > Could not resolve org.bouncycastle:bcprov-jdk15on:1.56.
    > Could not get resource 'https://jcenter.bintray.com/org/bouncycastle/bcprov-jdk15on/1.56/bcprov-jdk15on-1.56.pom'.
    > Could not GET 'https://jcenter.bintray.com/org/bouncycastle/bcprov-jdk15on/1.56/bcprov-jdk15on-1.56.pom'.
    > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    > Could not resolve org.ow2.asm:asm-tree:7.0.
    Required by:
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1
    > Could not resolve org.ow2.asm:asm-tree:7.0.
    > Could not get resource 'https://jcenter.bintray.com/org/ow2/asm/asm-tree/7.0/asm-tree-7.0.pom'.
    > Could not GET 'https://jcenter.bintray.com/org/ow2/asm/asm-tree/7.0/asm-tree-7.0.pom'.
    > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    > Could not resolve javax.inject:javax.inject:1.
    Required by:
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1 > com.android.tools:sdk-common:27.0.1
    > Could not resolve javax.inject:javax.inject:1.
    > Could not get resource 'https://jcenter.bintray.com/javax/inject/javax.inject/1/javax.inject-1.pom'.
    > Could not GET 'https://jcenter.bintray.com/javax/inject/javax.inject/1/javax.inject-1.pom'.
    > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    > Could not resolve it.unimi.dsi:fastutil:7.2.0.
    Required by:
    project :launcher > com.android.tools.build:gradle:4.0.1 > com.android.tools.build:builder:4.0.1
    > Could not resolve it.unimi.dsi:fastutil:7.2.0.
    > Could not get resource 'https://j<message truncated>
     
  2. greg_unity457

    greg_unity457

    Joined:
    Nov 5, 2022
    Posts:
    4
    Having the same problem with that Unity version and also the latest: 2022.1.23f1

    Unity supplied version of Android stuff:
    C:\Program Files\Unity\Hub\Editor\2021.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
    C:\Program Files\Unity\Hub\Editor\2021.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK
    C:\Program Files\Unity\Hub\Editor\2021.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK
    C:\Program Files\Unity\Hub\Editor\2021.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle

    dir /s kotlin-stdlib-jdk8*.*

    gives:

    Directory of C:\Program Files\Unity\Hub\Editor\2021.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\cmdline-tools\2.1\lib\external\org\jetbrains\kotlin
    21/11/2022 06:02 PM <DIR> kotlin-stdlib-jdk8
    0 File(s) 0 bytes
    Directory of C:\Program Files\Unity\Hub\Editor\2021.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\cmdline-tools\2.1\lib\external\org\jetbrains\kotlin\kotlin-stdlib-jdk8\1.3.72
    21/11/2022 06:02 PM 15,479 kotlin-stdlib-jdk8-1.3.72.jar
    1 File(s) 15,479 bytes
    Directory of C:\Program Files\Unity\Hub\Editor\2021.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib
    10/11/2022 09:10 PM 15,477 kotlin-stdlib-jdk8-1.3.61.jar
    2 File(s) 30,956 bytes
    Directory of C:\Program Files\Unity\Hub\Editor\2022.1.23f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\cmdline-tools\6.0\lib\external\org\jetbrains\kotlin
    26/11/2022 02:22 PM <DIR> kotlin-stdlib-jdk8
    0 File(s) 0 bytes
    Directory of C:\Program Files\Unity\Hub\Editor\2022.1.23f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\cmdline-tools\6.0\lib\external\org\jetbrains\kotlin\kotlin-stdlib-jdk8\1.4.32
    26/11/2022 02:22 PM 16,221 kotlin-stdlib-jdk8-1.4.32.jar
    1 File(s) 16,221 bytes
    Directory of C:\Program Files\Unity\Hub\Editor\2022.1.23f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib
    08/11/2022 03:55 PM 15,477 kotlin-stdlib-jdk8-1.3.61.jar
    1 File(s) 15,477 bytes




    I've tried putting the kotlin-stdlib-jdk8-1.3.72.jar file in the AndroidPlayer\Tools\gradle\lib folder but still get the same error.
     
  3. greg_unity457

    greg_unity457

    Joined:
    Nov 5, 2022
    Posts:
    4
    I suspect that the gradle package needs to be upgraded to be compatible with the Android SDK and NDK packages.
     
  4. ashaker20

    ashaker20

    Joined:
    Feb 16, 2022
    Posts:
    3
    did you find a solution?
     
  5. greg_unity457

    greg_unity457

    Joined:
    Nov 5, 2022
    Posts:
    4
    No. Would have posted it if I had. Be nice to have Unity in this conversation.
     
  6. ashaker20

    ashaker20

    Joined:
    Feb 16, 2022
    Posts:
    3
    i fixed it by adding a keystore to my project, not sure if you have one or not.
     
  7. greg_unity457

    greg_unity457

    Joined:
    Nov 5, 2022
    Posts:
    4
    Not sure how you worked that out, but it does fix the issue.
     
  8. ThomFoxx

    ThomFoxx

    Joined:
    Feb 19, 2018
    Posts:
    3
    Unfortunately, this did not fix it for me.
     
  9. jameswongs

    jameswongs

    Joined:
    Aug 5, 2019
    Posts:
    1
    did you find a solution?
    Could not resolve all files for configuration ':launcher:lintClassPath'.
    > Could not resolve com.android.tools.lint:lint-gradle:27.0.1.
    same problem。
     
  10. qualitat

    qualitat

    Joined:
    Nov 24, 2014
    Posts:
    2
    Hello!, I have the same problem, I used win11, I tried another pc with win10 and the app compiles without problems.. unity 2021.3.0f1

    weird, no?
     
  11. gsanchezmartinez

    gsanchezmartinez

    Joined:
    May 24, 2022
    Posts:
    1
    A problem occurred configuring project ':launcher'.
    > Could not resolve all files for configuration ':launcher:classpath'.
    > Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72.

    Same problem, unity 2021.3.16, tried new android sdk, new gradle, latest unity version, no change.
     
  12. newlife

    newlife

    Joined:
    Jan 20, 2010
    Posts:
    1,081
    Same problem here... same project, build succeeds on Unity 2021.1.15, fails on Unity 2021.3.17. This is the latest LTS version. Custom Main Gradle Template is checked, Custom Gradle Properties Template is checked.
    Someone in Unity please help.
     
  13. newlife

    newlife

    Joined:
    Jan 20, 2010
    Posts:
    1,081
    Downgraded my project to Unity 2021.1.15, builds succeeds. Can't believe such a obvious and blocking bug is not yet fixed
     
  14. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    1,062
  15. newlife

    newlife

    Joined:
    Jan 20, 2010
    Posts:
    1,081
    the keystore is present, in fact the same project builds successfully on Unity 2021.1.15, fails on Unity 2021.3.17
     
  16. rickygai

    rickygai

    Joined:
    Mar 9, 2022
    Posts:
    110
    Adding Keystore does not work on my side as well, I am using Unity 2022.3.0f1 and 2022.2.21f1 recently compile and resulting in error below:

    CommandInvokationFailure: Gradle build failed.
    C:\UNITY\2022.3.0f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\UNITY\2022.3.0f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-7.2.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleDebug"

    The project compile successfully under Unity 2021.3.26f1.

    I cannot kept reporting the same issues over and over again for Unity 2022.x versions.

    Please advise.
     
    ehsan_wwe1 likes this.
  17. CiaranWills

    CiaranWills

    Unity Technologies

    Joined:
    Apr 24, 2020
    Posts:
    199
    @rickygai You only need to report it once, and when you do can you let us know the bug number?
     
  18. rickygai

    rickygai

    Joined:
    Mar 9, 2022
    Posts:
    110
    hi CiaranWills, thanks for the feedback, I resolved this issues with the solution provided HERE, is due to depreciated statement "android.enableR8=" in Android gradleTemplate.properties, after removed this statement, I am able to compile for Android platform. Thanks again.
     
    ehsan_wwe1 and andyb-unity like this.