delivery-app-mobile icon indicating copy to clipboard operation
delivery-app-mobile copied to clipboard

generated apk throws error at installation: base.apk has no certificates at entry AndroidManifest.xml

Open jrichardsz opened this issue 4 years ago • 1 comments

I tried to install the generated apk file with:

adb install /tmp/delivery-app-mobile/android/app/build/outputs/apk/release/app-release-unsigned.apk

And I got this error

Failed to install /tmp/delivery-app-mobile/android/app/build/outputs/apk/release/app-release-unsigned.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Package /data/app/vmdl1171391791.tmp/base.apk has no certificates at entry AndroidManifest.xml]

jrichardsz avatar Sep 27 '20 03:09 jrichardsz

I don't know if this order is correct, but worked for me:

  • run:

keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000

  • The created debug.keystore file needs to be moved to ~/delivery-app-mobile/android/keystores directory.
  • Then rerun npx react-native run-android

jrichardsz avatar Sep 27 '20 03:09 jrichardsz