Meine App mit targetSdkversion = 25 und compileSdkversion = 25für SDK21 android app
Jetzt muss ich es für targetSdkversion funktioniert als 21. Die App wird mit einer Fehler App andernfalls funktioniert nicht funktioniert gut kompilieren.
Muss ich eine Werkzeugversion oder andere Parameter ändern?
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion '26.0.2'
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "MY.APP.NAME"
minSdkVersion 17
targetSdkVersion 21
versionCode 11
versionName "1.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
exclude group: 'com.google.code.findbugs'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.google.android.gms:play-services-location:11.0.4'
compile 'com.android.support:design:25.3.1'
compile 'com.squareup.okhttp3:okhttp:3.0.1'
compile 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
testCompile 'junit:junit:4.12'
}
hoffe, das hilft: https://stackoverflow.com/questions/26694108/what-is-the-difference-between-compilesdkversion-and-targetsdkversion –
@Sara Danke, aber nach der Lektüre dieses finde ich mich mehr verwirrt . Heißt das, Targetversion hat nichts mit meinem Problem zu tun? –