1: 安装是提示 机器虚拟化问题,系统如开启了Hyper-V,必须关闭服务
2:安装完后,建立第一个项目,gradle build 一直转圈,最后报错
Gradle project sync failed Error:Connection reset
解决尝试1:参考了 博客 https://blog.csdn.net/hackcoder/article/details/50321863
描述如下所示:
Android studio开发工具:
File -> Invalidate caches / Restart;选择Invalidate and Restart
关闭 Android Studio
删除 “/home/{username}/.gradle” 文件夹
重启android studio
第二步;在Android studio的终端Terminal输入gradlew build执行命令,一直卡在:
android stadio 编译报错:download fastutil-7.2.0.jar
gradlew build FAILURE: path > fastutil-7.2.0.jar > 2.64 MB/16.51 MB dow
解决方案:修改一下buil.gradle 如下,
buildscript {
repositories {
maven{ url = "http://maven.aliyun.com/nexus/content/groups/public/" }
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven{ url = "http://maven.aliyun.com/nexus/content/groups/public/" }
google()
jcenter()
}
}
然后在Android studio的终端Terminal输入gradlew build执行命令,等一会出现BUILD SUCCESSFUL,说明更新成功。