To start things off, yes I know there are multiple other threads with the same title addressing the same error, however after 3 full work days, I haven't been able to fix this error.
Project Structure: BaseDir/ -build.gradle
+App/
+ LibProject1/
-build.gradle
-build.gradle
-settings.gradle
-(code/src/etc..)
+LibProject2/
-build.gradle
+LibProject3/
-build.gradle
BaseDir/build.gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
}
}
allprojects {
repositories {
jcenter()
}
}
Settings.gradle:
include: ":App:LibProject1"
include: ":LibProject2"
include: ":Libproject3"
App/build.gradle:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
}
}
allprojects {
repositories {
jcenter()
}
}
apply plugin: 'com.android.application'
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile project(":Copy:CordovaLib")
compile project(':LogManagerAndroidProject')
compile project(':XBDSInterfaces')
}
android {
compileSdkVersion 19
buildToolsVersion "19.1.0"
defaultConfig {
minSdkVersion 14
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
}
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
// Move the tests to tests/java, tests/res, etc...
instrumentTest.setRoot('tests')
// Move the build types to build-types/<type>
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
// This moves them out of them default location under src/<type>/... which would
// conflict with src/ being used by the main source set.
// Adding new build types or product flavors should be accompanied
// by a similar customization.
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
}
Library1,2,3/build.gradle:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
}
}
apply plugin: 'com.android.library'
android{
compileSdkVersion 19
buildToolsVersion "19.1.0"
defaultConfig {
minSdkVersion 14
targetSdkVersion 19
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
}
*forgive the weird format in posting, I haven't gotten the hang of properly posting code blocks.
The error I'm getting is happening in all of my libraries. I've reorganized which libraries get compiled first in the app/build.gradle file, and it never passes the first compile project line. Which ever libproject is first to get compiled, throws the Cannot evaluate module : defualt not found
error.
All the other threads have told me to:
1) Make sure your library folder has a build.gradle file
2) Have a defaultConfig in your build.gradle file
3) Make sure your include statements are correct in your settings.gradle file
and more of the same.
I've made sure all my gradle files are correct, checked spellng, etc.. Not sure what to make of this, the error is the most un-verbose notification I've come across in a while, any help would be majorly appreciated!!