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脚手架
网友评论