我创建了一个项目:
compileSdkVersion 27
buildToolsVersion '27.0.2'
关于dependecies我有这个代码:
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
// androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
// exclude group: 'com.android.support', module: 'support-annotations'
// })
compile 'com.android.support:appcompat-v7:27.0.2'
compile 'com.android.support:recyclerview-v7:27.0.2'
compile 'com.android.support:support-annotations:27.0.2'
compile 'com.android.support:support-vector-drawable:27.0.2'
compile 'com.android.support:design:27.0.2'
compile 'com.android.support:support-v4:27.0.2'
compile 'com.github.Kunzisoft:Android-SwitchDateTimePicker:1.4'
compile 'com.eminayar.panterdialog:panter-dialog:0.0.2.1'
compile 'com.github.polok:clicknumberpicker:0.1.2'
compile 'com.roughike:bottom-bar:2.1.1'
compile 'com.github.HotBitmapGG:RingProgressBar:V1.2.2'
compile 'com.anjlab.android.iab.v3:library:1.0.44'
compile 'com.google.android.gms:play-services-ads:11.6.2'
compile 'com.github.10uroi:ToastOX:1.0.1'
compile 'com.yarolegovich:lovely-dialog:1.0.4'
testCompile 'junit:junit:4.12'
}
我在com.android.support上有错误:appcompat-v7:27.0.2'它说:
所有com.android.support库必须使用完全相同的版本 规范(混合版本可能导致运行时崩溃)。发现 版本27.0.2,24.2.1。例子包括 com.android.support:animated-vector-drawable:27.0.2和 com.android.support:percent:24.2.1
我已经运行了gradlew -q dependencies app:dependencies --configuration compile 这就是结果:
如何将其更改为27?
注意!我没有使用编译com.android.support:percent:24.2.1它从com.github.polok导入:clicknumberpicker:0.1.2
答案 0 :(得分:0)
更改 -
com.android.support:percent:24.2.1
到 -
com.android.support:percent:27.0.2