【发布时间】:2019-01-08 09:26:05
【问题描述】:
对于 build.gradle 配置,一切正常。
compileSdkVersion 26
defaultConfig {
applicationId "com.my.app"
minSdkVersion 16
targetSdkVersion 26
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
dependencies {
implementation project(':market_licensing')
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.android.gms:play-services-ads:17.1.2'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:design:26.1.0'
implementation "com.android.support:appcompat-v7:26.1.0"
}
当我迁移到版本 27 时,
compileSdkVersion 27
defaultConfig {
applicationId "com.my.app"
minSdkVersion 16
targetSdkVersion 27
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
dependencies {
implementation project(':market_licensing')
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.android.gms:play-services-ads:17.1.2'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:design:27.1.1'
implementation "com.android.support:appcompat-v7:27.1.1"
}
我有一个错误:
所有 com.android.support 库必须使用完全相同的版本 规范(混合版本可能导致运行时崩溃)。成立 版本 27.1.1、26.1.0。
为什么我仍然显示与旧版本 26.1.0 的冲突?我很干净。
【问题讨论】:
-
我已经去掉了实施项目(':market_licensing') 错误依旧。
标签: java android android-studio