美文网首页
react-native-community 错误

react-native-community 错误

作者: 南京确善能 | 来源:发表于2019-10-23 10:10 被阅读0次
       error Failed to install the app. Make sure you have the Android development environment set up: [https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment](https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment). Run CLI with --verbose flag for more details.
        Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
        FAILURE: Build failed with an exception.
       Where:
        Script 'D:\codes\react_native_test\node_modules@react-native-community\cli-platform-android\native_modules.gradle' line: 206
      What went wrong:
        A problem occurred evaluating script.
        Cannot get property 'packageName' on null object
    
    
    1.手动删除@react-native-community,注意把pack yarn 里面的react-native-community 也删掉
    2.重新安装react-native脚手架
    

    相关文章

      网友评论

          本文标题:react-native-community 错误

          本文链接:https://www.haomeiwen.com/subject/nuphvctx.html