Android studio坑
安装了新的Android studio3.2出现的问题
安装了新的Android studio3.2 后出现了gradle无法下载的问题
1.Unknown host 'd29vzk4ow07wi7.cloudfront.net'. You may need to adjust the proxy settings in Gradle Learn about configuring HTTP proxies in Gradle
2.解决了1之后出现了新的问题,就是不能点击run按钮,为灰色
3.无法建立虚拟
4.intelHaxm的问题
1的解决,给build.gradle添加一个国内镜像
| | |
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
maven{ url’http://maven.aliyun.com/nexus/content/groups/public/’}
jcenter()
}
dependencies {
classpath ‘com.android.tools.build:gradle:3.2.1’
}
}
allprojects {
repositories {
google()
maven{ url’http://maven.aliyun.com/nexus/content/groups/public/’}
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
| | |
2的解决
点击
3的解决
点击Intelhaxm-android安装之后就可以使用虚拟机了