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

前端 未结 30 1180
孤街浪徒
孤街浪徒 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:26

    When I ran react-native eject, I got this error:

    Both the iOS and Android folders already exist! Please delete `ios` and/or `android` before ejecting.
    
    • Delete the MyProject/android folder.
    • Run react-native eject This generated the android folder

    • Then run react-native run-android to build android

提交回复
热议问题