Android Studio 版本升级4.2 异常处理
1.找不到插件:Plugin Error: Plugin xxx is incompatible (supported only in IntelliJ IDEA).
Android studio升级到4.1之后,有一些老的插件不再支持,启动后会提示错误信息:Plugin Error: Plugin is incompatible (supported only in IntelliJ IDEA).
在这个文件中找到不支持的插件删除, 删除文件后重启AS问题解决。
2. Could not HEAD ‘XXXXX’. Received status code 403 from server: Forbidden
类似此类问题解决方式
1.在项目的build.gradle里找到http://jcenter.bintray.com/
然后将http换成https
如果找不到在哪,可以全局搜索http
403是被限制了。只要把前面http换成https
2. 添加 mavenCentral()或 maven {url 'https://maven.aliyun.com/nexus/content/groups/public/'}
repositories {
jcenter()
mavenCentral()
google()
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}
3.找到 gradle.properties 文件,把里面设置代理的代码注释
C盘目录下的也需要处理(C:\Users\XXXX.gradle)gradle.properties文件
4.如果以上还没解决 就找到 Could not HEAD ‘XXXXX’ 报错的链接替换成别的