Configuration with name 'default' not found

来源:互联网 发布:电脑桌面课程表软件 编辑:程序博客网 时间:2024/05/01 12:28

Adnroid Studio gradle 项目时候提示如下两种之一,很有可能是项目根目录下的setting.gradle里面的model没有配置好。



1)Configuration with name 'default' not found.


2)Error:A problem occurred configuring project ':app'.

> Failed to notify project evaluation listener.
   > Cannot evaluate module react-native-code-push : Configuration with name 'default' not found.

   > Must apply 'com.android.application' first!




例如:

project(':react-native-code-push').projectDir = new File(rootProject.projectDir, 'node_modules/react-native-code-push/android/app')
写成
project(':react-native-code-push').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-code-push/android/app')



0 0
原创粉丝点击