无法在Android Studio 3.3 Beta 2中下载groovy-all.jar(org.codehaus.groovy:groovy-all:2.4.15) [英] Could not download groovy-all.jar (org.codehaus.groovy:groovy-all:2.4.15) in Android Studio 3.3 Beta 2

查看:516
本文介绍了无法在Android Studio 3.3 Beta 2中下载groovy-all.jar(org.codehaus.groovy:groovy-all:2.4.15)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:

当我尝试在 Android Studio 3.3 Beta 2 中构建我的 Kotlin 项目的发行版本时,它随机卡住了10个在吐出一些错误后的16分钟之内.

when i am trying to build release variant of my Kotlin project in Android Studio 3.3 Beta 2, it is getting stuck randomly for 10 to 16 minutes after spitting some errors.

运行gradle/assemble时显示以下错误:

> Task :app:lintVitalRelease FAILED
:app:lintVitalRelease (Thread[Task worker for ':' Thread 2,5,main]) completed. Took 8 mins 23.222 secs.


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:lintVitalRelease'.
> Could not resolve all files for configuration ':app:lintClassPath'.
   > Could not download groovy-all.jar (org.codehaus.groovy:groovy-all:2.4.15)
      > Could not get resource 'https://jcenter.bintray.com/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar'.
         > Connection reset

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:lintVitalRelease'.

到目前为止我尝试过的事情

  • Answer from this question Could not find org.codehaus.groovy:groovy-all:2.4.12 but it isn't downloading at all and getting stuck.

试图在浏览器中打开链接,它正在下载文件,但在构建过程中未下载

tried to open the link in the browser and it is downloading the file but it is not downloading while in the build process https://jcenter.bintray.com/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar

创建了一个全新的项目,试图在那里释放相同的问题

created a brand new project tried to release it same problem there

项目Gradle设置

android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official


classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.0"
classpath 'com.android.tools.build:gradle:3.4.0-alpha02'
//workaround for Dagger2 > 2.16
classpath 'com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta02'

我不知道是什么原因导致它停止下载或不允许它下载groovy文件,但我被卡在这里并且无法发布我的应用程序:(

i don't know what is causing it to stop downloading or not allowing it to download the groovy file but i am stuck here and can't release my app :(

推荐答案

是的,我通过等待30分钟来解决它,因此它可以下载groovy jar文件,然后再尝试2个小时,这对我的Internet来说没有问题.

Yes i solved it by waiting for 30 minutes so it can download the groovy jar file, before trying it for 2 hours and it was no problem with my internet.

感谢@TheWanderer向我暗示互联网.

thanks @TheWanderer to hint me about the internet .

我想对选民说一件事,你们对这个平台感到羞耻,我是一个经验丰富的开发人员,我从来没有对这个平台上的任何人投反对票,每个人都来这里寻求帮助,你们甚至都在看这个问题吗?我提供的详细信息?我真的不在乎投反对票,但我觉得确实需要帮助的新来者. /RANT END

and i would like to say one thing to down voters you guys are shame to this platform i am an experienced developer i never down voted anyone on this platform every one here comes to get help, do you guys even look at the question details i gave ? i really doesn't care about down voting but i feel for the new comers who really are in need of help. /RANT END

这篇关于无法在Android Studio 3.3 Beta 2中下载groovy-all.jar(org.codehaus.groovy:groovy-all:2.4.15)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆