升级到API 22并支持lib版本22后,我收到以下警告:
警告:与依赖项"com.android.support:support-annotations"冲突.app(22.0.0)和测试app(21.0.3)的已解决版本有所不同.
Gradle本身更宽容,但Android Studio并没有那么多.
我没有使用21.0.3声明的依赖项...是使用21.0.3的依赖库之一而谷歌忘了用批处理的其余部分更新它?
我build.gradle的附加功能被删除了
android {
compileSdkVersion 22
buildToolsVersion '22'
defaultConfig {
applicationId "com.REDACTED.android"
minSdkVersion 14
targetSdkVersion 22
renderscriptSupportModeEnabled true
versionName '1.0.0'
versionCode 100
}
buildTypes {
release {
minifyEnabled true
zipAlignEnabled true
signingConfig signingConfigs.release
}
debug {
minifyEnabled false
zipAlignEnabled true
signingConfig signingConfigs.debug
}
}
dependencies {
provided 'org.projectlombok:lombok:1.16.2'
googleCompile 'com.google.android.gms:play-services-base:6.5.87'
compile 'com.android.support:support-v4:22.0.0'
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.android.support:support-v13:22.0.0'
compile 'com.android.support:cardview-v7:22.0.0'
compile 'com.android.support:palette-v7:22.0.0'
compile 'com.android.support:support-annotations:22.0.0'
compile 'com.github.chrisbanes.photoview:library:1.2.3'
compile 'org.apache.commons:commons-lang3:3.3.2'
compile 'commons-io:commons-io:2.4'
compile 'commons-codec:commons-codec:1.10'
compile 'com.jakewharton:butterknife:6.1.0'
compile …Run Code Online (Sandbox Code Playgroud) 我正在使用AndroidStudio和Gradle在'androidTest'源目录中使用测试构建我的Android应用程序.我添加了一个新的依赖项,现在在AndroidStudio中运行Android测试或通过'./gradlew connectedCheck'时出现以下问题.解决这个问题的首选方法是什么?
'警告:与依赖冲突'org.somelibrary:library-core'.应用和测试应用的已解决版本不同.
从Android Gradle Plugin 1.1.1开始,错误显示如下:"警告:与依赖项冲突'com.google.code.findbugs:jsr305'.应用程序(1.3.9)和测试应用程序(2.0.1)的已解决版本不同".