1
私は最近アンドロイドスタジオをバージョン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'
}
参照さ? – vanomart
新しいバージョンでは、buildToolsVersion '27 .0.0 'を宣言する必要はありません。 – sidpal7747