1.先Enable Android SUPPORT,可以在file->setting->plugin设置

2.尝试删除C:\Users\Administrator下面的.AndroidStudio/config.AndroidStudio/system and .AndroidStudio/plugins ,一定要先备份。重启试试。

3. 按如下设置: File >> Invalidate caches/restart >> Invalidate and Restart

重启AS,有警告则点击:Enable Android Support

4. 尝试删除项目目录下的 .idea/workspace.xml ,记得先备份。重启AS再Enable Android Support

5.尝试更新: Android Studio ,从菜单操作:Help>CheckForUpdates>Update.

6. 尝试增加如下参数大小: -Xmx and -XX:MaxPermSize values in the studio.vmoptions file

7.尝试如下步骤:

  1. Close Android Studio
  2. Remove .idea/workspace.xml
  3. Restart android studio (your project with the issue is opened automatically)
  4. A new .idea/workspace.xml is created
  5. Sync project with gradle files
  6. Open File -> Settings - > Plugins -> Enable
    • "Android Support" Plugin.
    • Android NDK support (I had to disable and re-enable it)
  7. Restart Android Studio

8.尝试替换 build.gradle 文件,如下:

 buildscript {    ...    repositories {        mavenLocal()        maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}        maven { url "https://jitpack.io" }        mavenCentral() // jcenter() works as well because it pulls from Maven Central        maven {            url 'https://maven.google.com/'            name 'Google'        }        jcenter()    }    ...    }    allprojects {    repositories {        mavenLocal()        maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}        maven { url "https://jitpack.io" }        mavenCentral() // jcenter() works as well because it pulls from Maven Central        maven {            url 'https://maven.google.com/'            name 'Google'        }        jcenter()    }}


更多相关文章

  1. Linux 环境下实战 Rsync 备份工具及配置 rsync+inotify 实时同步
  2. android 顶部横向滑动菜单效果
  3. react-native-splash-screen--RN 0.5以上报错集合
  4. Android(安卓)菜单(OptionMenu)大全 建立你自己的菜单
  5. Android(安卓)NDK *** could not be resolved
  6. Android(安卓)NDK开发篇(三):NDK开发步骤
  7. Android音乐播放器源码(歌词.均衡器.收藏.qq5.0菜单.通知)
  8. android Data Backup(上)
  9. Android(安卓)UI滑动菜单之SlidingMenu

随机推荐

  1. MySQL实现当前数据表的所有时间都增加或
  2. Mysql5.7忘记root密码怎么办(简单且有效方
  3. MySql允许远程连接如何实现该功能
  4. MySQL5.7.10 安装文档教程详解
  5. MySQL 序列 AUTO_INCREMENT详解及实例代
  6. MAC版修改MySQL初始密码的方法
  7. 64位CentOs7源码安装mysql-5.6.35过程分
  8. linux上mysql安装详细教程
  9. MySql 5.7.17 winx64的安装配置详细教程
  10. mysql免安装版配置教程