1. 程式人生 > >Android實戰之R檔案

Android實戰之R檔案

開始遇到R檔案缺失,在網上社群查閱了資料,大概有三種方法:

  1. clean project,然後rebuild
  2. 選擇專案properties,點選Android,選擇相應版本,點選ok
  3. 修改res檔案下的錯誤

我遇到的問題是匯入包版本錯誤,選擇了正確的版本,就生成了r檔案。 ——————————————————

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. 我遇到的另一個問題,

資料