Problem description
Running an old open source project, compiles the following error.
java.io.IOException: Invalid keystore format
Execution failed for task ':app:transformDexWithInstantRunDependenciesApkForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.signing.KeytoolException: Failed to read key AndroidDebugKey from store "C:\Users\a do\.android\debug.keystore": Invalide keystore format
Solution
According to the error message, there is a problem with the debug signature format.
We only need to open the c drive, in the current user’s directory, there is a .android directory, delete the debug.keystore inside.
If it prompts that the process is occupied, exit Android Studio first. Then delete it again.
Finally re-running the project, will automatically generate debug.keystore.
Read More:
- [Solved] AndroidStudio package Invalid keystore format Error: Execution failed for task ‘:examplecases:packageRelease’…
- [Solved] Android Studio Compile Error: Invalid main APK outputs : EarlySyncBuildOutput
- [Solved] Cordova Android Compile Error: Execution failed for task ‘:packageDebug‘
- Android Package Error: AAPT: error: IDAT: incorrect data check. AAPT: error: file failed to compile.
- insmod Error: Invalid module format [How to Solve]
- [Solved] Android Studio Compile Error: Could not determine java version from ‘11.0.8‘.
- [Solved] Android Studio Compile Error: Execution failed for task ‘:APP_MIDI:lintVitalRelease‘.
- Android studio configurate intent-filter and compile error [Solved]
- Android: How to Solve libuv Compile Error
- [Solved] UE4 Android Package Error: cmd.exe failed with args
- TypeError: unsupported format string passed to numpy.ndarray.__format__
- [Solved] Android Studio Error: AAPT: error: file failed to compile
- Android Studio compile error: build tools is corrupt [Solved]
- [Solved] Android8.1 Compile Error: SSL error when connecting to the Jack server
- [Solved] Android Studio Compile error: Cannot use connection to Gradle distribution . as it has been stopped.
- [Solved] UE4 Android Package Error: failed for task :permission_library:compileDebugJavaWithJavac
- [Solved] Compile Error: AAPT: error: resource android:attr/lStar not found
- [Solved] error: package android.support.design.widget does not exist
- latex Package inputenc Error: Invalid UTF-8 byte “A1
- [Solved] UE4UE5 Package Android Error: UnrealBuildTool failed