I want to import a project named StackBlur from GitHub as my library. But error happened when I modify .gradle files.
app/build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.badprinter.yobey"
minSdkVersion 11
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.2.1'
compile project (':libs:StackBlur')
}
settings.gradle:
include ':app'
include ":libs:StackBlur"
And my project structure looks like:
-YoBey
-app
-build.gradle
-libs
-StackBlur
-src
-build.gradle
-settings.gradle
-build.gradle