Run android issue


#1

Hello there,

I followed installation guilde https://ionicframework.com/docs/intro/deploying/ in order to deploy release build on android.

Unfortunatelly I get an error when I execute “ionic cordova run android --prod --release”:

Built the following apk(s):
        C:/Data/iReportIonic/platforms/android/build/outputs/apk/android-release-unsigned.apk
Using apk: C:/Data/iReportIonic/platforms/android/build/outputs/apk/android-release-unsigned.apk

Package name: io.ionic.starter
Error: C:\Users\...\AppData\Local\Android\sdk\Platform-Tools\adb.exe: Command failed with exit code 1 Error output:
Failed to install C:/Data/iReportIonic/platforms/android/build/outputs/apk/android-release-unsigned.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Package /data/app/vmdl1035028981.tmp/base.apk has no certificates at entry
AndroidManifest.xml]

[ERROR] An error occurred while running cordova run android --release (exit code 1). ```


I do not face any problems when I build, sign and install the signed package manually:

ionic cordova build --release android
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore HelloWorld-release-unsigned.apk alias_name

I guess, there is some configuration missing (AndroidManifest.xml ?). Unfortunately I did not find any helpful hints.