最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

react native - Run prebuild Expo Project in Android Studio - Stack Overflow

programmeradmin0浏览0评论

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.
发布评论

评论列表(0)

  1. 暂无评论