Here's my build.gradle file. After updgrading to AS 1.5.1 and attempting to compile/sync, I got error on last line, but program executes fine:
apply plugin: 'com.android.application'
android {
compileSdkVersion 19
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.dslomer64.wordyhelperton"
minSdkVersion 19
targetSdkVersion 19
versionCode 16
versionName "3.02"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.android.support:support-v4:22.2.1'
}
The error is on the last line above (compile 'com.android....-v4:22.2.1
).
It says:
This support library should not use a different version (22) than the compileSdkVersion (19).
So I changed compileSdkVersion
to 22 and also changed minSdkVersion
and targetSdkVersion
to 22 since the first change alone still gave warnings, but NO ERRORS.
The warnings are on every line from 'defaultConfig' down.
The warning is:
defaultConfig cannot be applied to groovy.lang.Closure ... assignment with incompatible types
What should I do? App compiles and runs fine. Is ignoring these warnings are OK?