Hello friends. I haven’t found a solution to this problem for several days. I can’t run the command
ionic cordova run android.
It throws me the following error.
Execution failed for task ':app:packageDebug'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
> com.android.ide.common.signing.KeytoolException: Failed to read key AndroidDebugKey from store "/home/user/.android/debug.keystore": Invalid keystore format
The ionic cordova build --release command works perfect.
The command ionic cordova build --packageType=apk, gives me the same error.
I do not understand why!
IONIC INFO =>
Ionic:
ionic (Ionic CLI) : 4.11.0
Ionic Framework : ionic-angular 3.9.4
@ionic/app-scripts : 3.2.4
Cordova:
cordova (Cordova CLI) : 11.0.0
Cordova Platforms : android 10.1.2
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 26 other plugins)
System:
Android SDK Tools : 26.1.1 (/home/user/Android/Sdk)
NodeJS : v14.19.1 (/home/user/.nvm/versions/node/v14.19.1/bin/node)
npm : 6.14.16
OS : Linux 5.13
cordova requirements
android-targetSdkVersion should be greater than or equal to 30.
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-30,android-29,android-27
Gradle: installed /opt/gradle/gradle-7.4.2/bin/gradle
Is it a version problem?
Is it a SDK version problem?
Has anyone encountered this problem?
Thanks to you!!