Android Build Failed to Generate Signed APK after upgrade to Android Studio 4.2

Viewed 1523

Execution failed for task ':app:packageRelease'.

A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable com.android.ide.common.signing.KeytoolException: Failed to read key .... from store "----------": Keystore was tampered with, or password was incorrect

It failed with saved password but it build correctly when i manually type password and next time it fails again

Remember passwords checkbox is checked in Build Signed Bundle or APK Window

4 Answers

It is a bug in Android Studio 4.2

You Have to Manually Type Password Each time you Generate Signed APK

Update

This bug is also in Android Studio 4.2.1 and Android Studio 4.2.2

Update

This Bug Is Fixed in Android Studio Arctic Fox 2020.3.1

Hence Upgrading to Android Studio Arctic Fox 2020.3.1 Solves the Problem

I still have this problem on 4.2.1,but the key.jks can work on 4.1.2

I've upgraded to 4.2.1, the problem still exists.

It's fixed!

Versions:

  • Arctic Fox RC 1 | 2020.3.1.21
  • 4.2.3
Related