delivery-app-mobile
delivery-app-mobile copied to clipboard
generated apk throws error at installation: base.apk has no certificates at entry AndroidManifest.xml
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]
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