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

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

    If you have created your project with the expo command, like expo init projectname, then afterwards you have to eject your project:

    expo eject
    

    If you have created you project by react-native init projectName then you have to use

    react-native eject
    

提交回复
热议问题