yaboiduke
yaboiduke

Reputation: 670

React Native App Not Installed Error

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

  1. keytool -genkey -v -keystore my-app-key.keystore -alias my-app-alias -keyalg RSA -keysize 2048 -validity 10000
  2. 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/
  3. cd android && ./gradlew assembleRelease
  4. Got apk app-release-unsigned.apk

Is there anything I am missing and is the generated file supposed to be unsigned.apk ?

Upvotes: 6

Views: 10893

Answers (5)

Abdur Rahman
Abdur Rahman

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

Sardorek Aminjonov
Sardorek Aminjonov

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

user10294571
user10294571

Reputation:

For me, the same problem was from insufficient storage space. Maybe it'll help you.

Upvotes: 3

Ravinath
Ravinath

Reputation: 1760

The app was previously installed, after removing that instance the issue gets resolved.

Upvotes: 0

Vijay Vavdiya
Vijay Vavdiya

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.

  1. Go to Device/Android OS Settings
  2. Select APPS
  3. Your app will be listed here
  4. Goto details of your app by Selecting your app from list
  5. Tap in tree dot menu at top right corner
  6. Press uninstall for all users
  7. Try again to install your app
  8. Now It will install successfully.

Upvotes: 4

Related Questions