react-native run-android Building Error ':app:generateDebugBuildConfig'

前端 未结 5 1526
天命终不由人
天命终不由人 2021-01-01 15:55

I am having a problem to build a new project. I am using React-Native and Android Emulator (AVD) but when I use the command react-native run-android I get the f

5条回答
  •  猫巷女王i
    2021-01-01 16:38

    Create rn.sh file in your root of React native project with following content

     cd android/app/
     rm -rf build
     cd ..
     cd ..
    react-native run-android
    

    Then run from terminal or cmd

    ./rn.sh
    

    Recommendation

    VSCode must be run as Admistrator or GitDesktop must be run as Administrator

提交回复
热议问题