React native: Android project not found. Maybe run react-native android first?

前端 未结 30 1210
孤街浪徒
孤街浪徒 2020-12-12 16:43

I had an issue in my React-Native project which was working fine earlier but suddenly it stopped working. Whenever I used the command:

react-native run-andro         


        
30条回答
  •  情歌与酒
    2020-12-12 17:21

    My working solution is below, none of the above worked for me:

    CD into your project folder and type expo start --android.

    Or the long way:

    1. Open AVD manager in Android Studio and run a virtual device (you can close AS afterwards)
    2. CMD into your project folder and type 'expo start'
    3. Once Expo has started choose option 2 which is "Press a for Android emulator"

    It will install expo on the virtual device and you can test from there

提交回复
热议问题