Cannot install apk with error INSTALL_FAILED_INVALID_APK


#1

I build my standalone android app according to https://docs.expo.io/versions/latest/guides/building-standalone-apps.html. Expo builds the apk successfully for me with build id: 81264d83-bb2c-4f14-800a-82ffcb37c715.

And then I try to install the app using adb but fails with error code INSTALL_FAILED_INVALID_APK. What is the problem? Note that I have also built ipa which is submitted to TestFlight and run in my device successfully.


#2

Did you make any changes app.json or package.json, like naming of your app?


#3

I dig into the error message and find that my package name is incorrect. I change it according to https://developer.android.com/guide/topics/manifest/manifest-element.html#package and manage to install my apk. Thank you for help!