1: 安装是提示  机器虚拟化问题,系统如开启了Hyper-V,必须关闭服务

android-studio-ide  安装到运行第一个helloword,坑记录

2:安装完后,建立第一个项目,gradle build 一直转圈,最后报错

解决尝试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,说明更新成功。


 

 

相关文章:

  • 2021-08-09
  • 2022-12-23
  • 2021-10-05
  • 2021-10-25
  • 2022-02-19
  • 2021-09-09
  • 2021-05-18
  • 2021-05-19
猜你喜欢
  • 2021-10-16
  • 2022-12-23
  • 2022-01-01
  • 2021-06-05
  • 2021-07-26
  • 2022-12-23
  • 2021-12-11
相关资源
相似解决方案