admin管理员组

文章数量:1312768

I would like open my Prebuild Expo React Native Project in Android Studio and run it on the android Emulator (using bare workflow). I have already prebuild my project using "npx expo prebuild --clean"

I can also open the project in Android Studio. But when I try to run it on the emulator, then I always get the Error: "Error running 'app': The application could not be installed." I don't get any other error information.

What is the reason for this Error and how could I solve this? I am looking forward to your advice!

I would like open my Prebuild Expo React Native Project in Android Studio and run it on the android Emulator (using bare workflow). I have already prebuild my project using "npx expo prebuild --clean"

I can also open the project in Android Studio. But when I try to run it on the emulator, then I always get the Error: "Error running 'app': The application could not be installed." I don't get any other error information.

What is the reason for this Error and how could I solve this? I am looking forward to your advice!

Share Improve this question asked Feb 1 at 16:06 haobei620haobei620 513 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

At first try to remove the app from emulator, or do wipe data.

To run your android app from './android' folder:

  1. Open prebuilded folder in Android Studio. Be sure that all dependencies automatically will be installed. Usuallty it takes some time
  2. Next step npx expo run:android
  3. Now your app is running, make some changes in native directory, and apply run from android studio - then you get succesful build, with applied changes.

本文标签: react nativeRun prebuild Expo Project in Android StudioStack Overflow