When running ./gradlew bundleRelease
I get :
Execution failed for task ':app:packageReleaseBundle'.
> java.util.concurrent.ExecutionException: java.lang.RuntimeException: jarsignerfailed with exit code 1 :
jarsigner error: java.lang.RuntimeException: keystore load: keystore password was incorrect
I followed the official doc here: https://facebook.github.io/react-native/docs/signed-apk-android.html
I tried to put the password in :
android/gradle.properties
in plaintext as the doc suggestsandroid/app/build.gradle
in plaintext to exclude a variable issueI was able to assert :
android/app/build.gradle
was the right one by using java.lang.System.console(password)
to print itkeytool -list -keystore app/my_key.keystore
security find-generic-password -a [username] -s [keychain_password_key_name] -w
I'm out of option here since I don't usually use Java or Gradle.
Given nobody seems to have the answer and after having dug to the end of the web, I found this :
The error is misleading and the implementation is wrong (/troll as usual in java).
Trashing the entire build
folder and trying again fixed the problem and got gradle's mind straight.