Configuration with name 'default' not found

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')



你可能感兴趣的:(Android)