1
我最近更新的Android工作室到3.0版本,現在我面臨的SDK兼容性問題意味着,該應用停止,即使在我的gradle這個提「的minSdkVersion 15」後低於21 SDK響應。請有人告訴我如何解決這個問題?面對兼容性問題3.0
這裏是我的gradle這個
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.example.demo.msts"
minSdkVersion 15
targetSdkVersion 27
versionCode 1
versionName "1.0"
multiDexEnabled true
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
dependencies {
implementation 'com.android.support:appcompat-v7:27.0.0'
compile('com.wdullaer:materialdatetimepicker:3.3.1')
{
exclude group: 'com.android.support'
}
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:design:27.0.0'
implementation 'com.android.support:support-v4:27.0.0'
implementation 'com.android.support:support-compat:27.0.0'
implementation 'com.android.support:support-core-ui:27.0.0'
implementation 'com.android.support:recyclerview-v7:27.0.0'
implementation 'com.android.support:cardview-v7:27.0.0'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.android.support:support-core-utils:27.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:0.5'
androidTestImplementation 'com.android.support.test.espresso:espresso-
core:2.2.2'
}
哪裏是buildToolsVersion '27 .0.0' ? – vanomart
在新版本中,沒有必要宣佈buildToolsVersion '27 .0.0' – sidpal7747