React Native 运行react-native run-

作者: Loki_ | 来源:发表于2018-07-02 13:31 被阅读16次

运行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

相关文章

网友评论

    本文标题:React Native 运行react-native run-

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