Good day!
There is the following project structure
MainProgect(Он же root всего проекта) --SubProgectLib build.gradle --SubProgectLib2 build.gradle --src --res AndroidManifest.xml settings.gradle build.gradle In the file settings.gradle spelled
include ':SubProgectLib' include ':SubProgectLib2' when synchronizing a project with the help of Gradle gives
Gradle 'MainProgect' project refresh failed: Configuration with name 'default' not found. gradle.build
buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.7.+' } } allprojects { repositories { mavenCentral() } } apply plugin: 'android' android { compileSdkVersion 19 buildToolsVersion "19.0.1" defaultConfig { minSdkVersion 8 targetSdkVersion 19 versionCode 1 versionName "1.0" } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] res.srcDirs = ['res'] } } buildTypes { release { runProguard false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } } dependencies { compile 'com.android.support:support-v4:19.0.1' compile 'com.google.android.gms:play-services:3.2.+' compile project(':SubProgectLib') compile project(':SubProgectLib2') compile fileTree(dir: 'libs', include: '*.jar') } I can not understand how to fix it. Tell me, maybe someone came across.
UPD: In general, the problem was stupid. as it turned out, in one of the SubProgectLib there was no gradle.build. Although I was sure of the opposite.