錯誤:26.1.0和27.1.1differ問題

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. Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar]

解決方案:在此行添加gradle模塊的依賴項
compile 'com.android.support:support-annotations:27.1.1'
如果您使用的是Android工作室3+改變compile到implementation

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章