解决Android Studio Conflict with dependency 'com.android.support:support-annotations'报错
1, 在使用AS引入ButterKnife过程中提示
Error:Execution failed for task ':app:preDebugAndroidTestBuild'.
Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (26.1.0) and test app (27.1.1) differ. See https://d.android.com/r/tools/test-apk-dependency-conflicts.html for details.
是AS更新所导致的app与测试用例依赖库版本差异。加这段代码是为了强制使用新版本的测试用例依赖库
android {
... }
configurations.all {
resolutionStrategy.force 'com.android.support:support-annotations:27.1.1'
}
dependencies {
...
}
2,android3.0以上有免安装版,当与android2.X同时打开是,3.X版本出现不能访问https的问题