React Native 运行react-native run-android报错Configuration with name 'default' not found.
运行react-native run-android报错Configuration with name 'default' not found.
报错原因:
unlink三方库出现错误
解决方式:
方式一:
将node_modules目录删掉,重新执行npm install安装依赖库
rm -rf node_modules && npm install
方式二:
将有问题的三方库配置去掉
包含文件
(1)android/app/bulid.gradle
(2)android/setting.gradle
(3)MainApplication.java