- 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’ }