Reputation: 670
I'm testing out react native and can run the dev server fine on an emulator. When I go to build the apk to test on a real device, I get an
Application not installed error
System
Steps to build apk
keytool -genkey -v -keystore my-app-key.keystore -alias my-app-alias -keyalg RSA -keysize 2048 -validity 10000
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
cd android && ./gradlew assembleRelease
app-release-unsigned.apk
Is there anything I am missing and is the generated file supposed to be unsigned.apk
?
Upvotes: 6
Views: 10893
Reputation: 31
I got the same issue in my Redmi mobile phone. It was due to insufficient storage space. Delete some of your videos, images, or apps.
Upvotes: 0
Reputation: 834
I have solved the issue by just uninstalling the older app by on my device. Seems I had build.apk before releasing my app. So, you cannot build.apk and release.apk of the same app simultaneously.
Upvotes: 1
Reputation:
For me, the same problem was from insufficient storage space. Maybe it'll help you.
Upvotes: 3
Reputation: 1760
The app was previously installed, after removing that instance the issue gets resolved.
Upvotes: 0
Reputation: 1309
This happens due to your app already install for other users so It is not visible in the app drawer. So required to uninstall your for all user and reinstall the app.
Upvotes: 4