gpt4 book ai didi

android - 在Android Studio中,所有com.android.support库都必须使用完全相同的版本

转载 作者:行者123 更新时间:2023-12-03 05:12:27 25 4
gpt4 key购买 nike

我最近升级到了Android Studio 2.3。并且此错误开始出现:

enter image description here

这是我的库列表:

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 files('libs/wekaSTRIPPED.jar')
compile('com.mikepenz:materialdrawer:5.8.1@aar') { // Material Drawer
transitive = true
}
compile 'com.android.support:appcompat-v7:25.2.0'
compile 'com.jakewharton:butterknife:8.5.1'
compile 'com.google.dagger:dagger:2.9'
compile 'com.github.wendykierp:JTransforms:3.1'
compile 'com.afollestad.material-dialogs:commons:0.9.3.0'
compile 'org.greenrobot:eventbus:3.0.0'
compile 'com.github.paolorotolo:appintro:4.1.0'
compile 'com.android.support:support-v4:25.2.0'
compile 'com.android.support:design:25.2.0'
compile 'com.borax12.materialdaterangepicker:library:1.9'
compile 'com.evernote:android-job:1.1.7' // Scheduling library
testCompile 'junit:junit:4.12'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
annotationProcessor 'com.google.dagger:dagger-compiler:2.9'

关于如何解决这个问题的任何想法?

最佳答案

更新到Android Studio 2.3时,我遇到了类似您的问题。我通过使用25.1.1在我的项目中搜索所有支持库来解决(我搜索了 25.1.1 )并替换为25.2.0。我认为您的库和项目中使用25.1.1的许多代码。

您可以在项目中打开外部库以显示所有依赖关系。您应该更新到新的库版本(使用支持库的lib):

例如:
https://github.com/mikepenz/MaterialDrawer-使用25.2.0的新版本是5.8.2
enter image description here

关于android - 在Android Studio中,所有com.android.support库都必须使用完全相同的版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42666473/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com