Android Studio使用过程中那些事儿(持续更新)

来源:互联网 发布:下载51vv软件 编辑:程序博客网 时间:2024/05/22 00:44
  1. Android Studio中使用Git ignore的文件
    • .idea 文件夹
    • .gradle 文件夹
    • 所有的 build 文件夹
    • 所有的 .iml 文件
    • local.properties 文件
      操作步骤: File -> Settings -> Version Control -> Ignored Filed
      看右测栏目中的右上角绿色加号”+”按钮进行操作
  2. 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’ }

0 0
原创粉丝点击