- Android Studio中使用Git ignore的檔案
- .idea 檔案夾
- .gradle 檔案夾
- 所有的 build 檔案夾
- 所有的 .iml 檔案
-
local.properties 檔案
操作步驟: File -> Settings -> Version Control -> Ignored Filed
看右測欄目中的右上角綠色加号”+”按鈕進行操作
- Unable to create Debug Bridge: Unable to start adb server: error: could not install smartsocket
解決方案 :android adb端口被占用解決方案
3.解決XML檔案不自動提示的問題
操作步驟 : File -> Power Save Mode(倒數第二項)置為未勾選的狀态
4.duplicate entry:android/support/annotation/AnimatorRes.class
解決方案: 在app的build.gradle中添加配置
configurations { all*.exclude group: ‘com.android.support’, module: ‘support-v4’ }