Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$Incremental

Discussion in 'Editor & General Support' started by unity_hbxVaSw7KwRBjQ, Apr 30, 2024.

  1. unity_hbxVaSw7KwRBjQ

    unity_hbxVaSw7KwRBjQ

    Joined:
    Sep 20, 2020
    Posts:
    4
    I'm working on an AR project that i have built before fine. I'm using Unity 2022.3.14f1
    but now I get this error :
    A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable

    I forgot what I have done before this error came, I implemented firebase and then deleted it, I added keystore, and that's I I don't remember changing big deal.

    this is the console errors :
    Starting a Gradle Daemon, 3 incompatible Daemons could not be reused, use --status for details
    > Task :launcher:packageRelease FAILED
    PackagingOptions.jniLibs.useLegacyPackaging should be set to true because android:extractNativeLibs is set to "true" in AndroidManifest.xml.
    98 actionable tasks: 5 executed, 93 up-to-date
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)


    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    FAILURE: Build failed with an exception.
    * What went wrong:
    Execution failed for task ':launcher:packageRelease'.
    > A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
    > com.android.ide.common.signing.KeytoolException: Failed to read key Select... from store "C:\Users\najla\arport\user.keystore": No key with alias 'Select...' found in keystore C:\Users\najla\arport\user.keystore


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


    Any help please

    EDIT: turns out I didn't put an Alias for the keystore lol. i just added it and everything worked fine
     
    Last edited: Apr 30, 2024
    Sshony likes this.
  2. Sshony

    Sshony

    Joined:
    Jan 28, 2024
    Posts:
    9
    Thx so much for that edit. I have been fidgetting with this for ages
     
  3. giinsen

    giinsen

    Joined:
    Oct 13, 2017
    Posts:
    5