android - 在 android studio 中创建项目时出现这个错误是什么我无法理解

标签 android

错误:任务 ':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.c[enter image description here][1]om/r/tools/test-apk-dependency-conflicts.html for details.

最佳答案

我猜你使用的是不同的版本会导致这个问题 gradle中提到了这一点。 所以只需使用相同的版本,您的问题就会解决。 如果问题没有解决,请上传你的 gradle 依赖项以查看并检查

关于android - 在 android studio 中创建项目时出现这个错误是什么我无法理解,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54779790/

相关文章:

android - 如何更改微调器的对话框样式?

Android Sqlite 不像多条件问题

android - 当复选框使用 setEnable(true) 时更改 .setTextColor 的颜色

Android 模拟器振动测试?

javascript - 如何调试 PhoneGap 应用程序中的内存使用量攀升?

android - 如何在 Android 中读取智能卡 ATR?

android - jetpack compose LazyColumn 滚动不起作用

android - 如何在真实设备上演示期间模拟位置?

Android Jetpack : Observing ArrayList not working

android - 带有 ArrayList 的 JNI 上的 NoSuchMethodError