Android Studio gradle compilation error
I wonder if you can help, I'm not a very exerienced developer but trying
my had at Android Development. I'm using Android Studio which uses gradle.
I'm getting the following compilation error:
Gradle: A problem occurred configuring project ':HelloWorld'.
Failed to notify project evaluation listener. Configuration with name
'default' not found.
My folder structure is:
HelloWorldProject
.HelloWorld
.libraries
..facebook
..build.gradle
.src
..main
..build.gradle
...java
....com.helloworld
.....firstPage
.gradle
..wrapper
...gradle-wrapper.jar
...gradle-wrapper.properties
.build.gradle
.settings.gradle
.gradle.properties
my ./build.gradle in the root is empty
my ./setting.gradle file contains:
include ':libraries:facebook', ':ChallengeMate'
my ./HelloWorld/build.gradle is:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
}
dependencies {
dependencies {
compile project(':libraries:facebook')
}
}
android {
compileSdkVersion 17
buildToolsVersion "17.0.0"
defaultConfig {
minSdkVersion 14
targetSdkVersion 16
}
}
my ./HelloWorld/src/build.gradle contains:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
}
dependencies {
dependencies {
compile project(':libraries:facebook')
}
}
android {
compileSdkVersion 17
buildToolsVersion "17.0.0"
defaultConfig {
minSdkVersion 14
targetSdkVersion 16
}
}
No comments:
Post a Comment