'Android Build Failed to Generate Signed APK after upgrade to Android Studio 4.2
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
Solution 1:[1]
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
Solution 2:[2]
I still have this problem on 4.2.1,but the key.jks can work on 4.1.2
Solution 3:[3]
I've upgraded to 4.2.1, the problem still exists.
Solution 4:[4]
It's fixed! ?
Versions:
- Arctic Fox RC 1 | 2020.3.1.21
- 4.2.3
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | Joe |
| Solution 3 | sowhat |
| Solution 4 | sowhat |
