after updating android studio 2.2 to 2.3 appcompat 25.1.1 is showing error com.android.support libraries must use the same version. in studio 2.2 it was working fine, in 2.3 it is only showing error but app is running fine, i have attached below one screen shot of the error.
问问题
4673 次
5 回答
2
在依赖项之前将以下代码添加到您的 build.gradle (app)
configurations.all {
resolutionStrategy.force 'com.android.support:support-annotations:25.2.0'
}
于 2017-03-04T10:16:32.537 回答
1
去 ProjectFiles/My project/.idea/libraries
看看你的图书馆有什么不同。在 gradle 文件中包含这个具有相同版本的不同库。同步您的项目。
于 2017-03-04T09:56:06.920 回答
0
您有两个不同版本的支持库。对所有类型的支持工件使用相同的版本。
于 2017-03-04T09:54:12.967 回答
-1
根据 buildtool 版本进行更改。像这样
apply plugin: 'com.android.library'
android {
compileSdkVersion 25
buildToolsVersion "25.0.1"
defaultConfig {
minSdkVersion 16
targetSdkVersion 25
versionCode 1
}
}
dependencies {
compile "com.android.support:appcompat-v7:25.0.1"
}
于 2017-03-04T09:53:36.773 回答
-1
请添加以下行
compile 'com.android.support:customtabs:25.3.0'
快乐编码:)
于 2017-03-28T06:24:45.770 回答