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,說明更新成功。