美文网首页
使用Android Studio进行安卓开发常见错误集合

使用Android Studio进行安卓开发常见错误集合

作者: 养渔人 | 来源:发表于2018-03-07 15:22 被阅读0次
  1. ​ Execution failed for task ':app:preDebugAndroidTestBuild'.

Conflict with dependency 'com.android.support:support-annotations' in project ':app'. See https://d.android.com/r/tools/test-apk-dependency-conflicts.html for details.

解决方法:
在Module-level层build.gradle的Android{} 闭包中添加:

    // Resolve dependency differences between app and tests
    configurations.all {
        resolutionStrategy.force 'com.android.support:support-annotations:版本号'
    }

相关文章

网友评论

      本文标题:使用Android Studio进行安卓开发常见错误集合

      本文链接:https://www.haomeiwen.com/subject/lmijfftx.html