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

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

6 Likes

Thx so much for that edit. I have been fidgetting with this for ages

THANKS MAN

worked for me as well.
had the error when building for android:

an error occurred while executing com.aindroid.build.gradle.PackageAndroidArtifact$IncrementalSplitterRunnalbe