WizardWu 編程網

一位台灣的工程師,接觸 .NET 逾十年,近年研究 SQL Server、Performance Tuning、手機應用

博客园 首页 新随笔 联系 订阅 管理

Android Studio build 時的錯誤訊息 : Conflict with dependency
詳細錯誤訊息 : 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.
原因 : project compiler 和 AVD 模擬器的 SDK 版本不一致 (前者為 26,後者為 27)
解法 : Add build dependencies
    - Fix dependency resolution errors
   https://developer.android.com/studio/build/dependencies#resolution_errors
------------------------------------------------------------------------------------------------------


圖 1 error message by Android Studio


圖 2 resolution


圖 3 resolution


圖 4 解決後的 AndroidManifest.xml,下方多出兩個 meta-data 中介設定,用來解決版本衝突的問題

 

posted on 2019-04-11 16:21  WizardWu  阅读(868)  评论(0编辑  收藏  举报