android - 错误 :Server returned HTTP response code: 403 for URL: https://services. gradle.org/distributions/gradle-4.4-rc-3-all.zip

标签 android gradle android-gradle-plugin

我改变了我的 Gradle 版本为

classpath 'com.android.tools.build:gradle:3.1.0-alpha06'


classpath 'com.android.tools.build:gradle:3.1.0-alpha05'

并开始收到此错误。我试图清理和重建项目,但没有奏效。恢复到 alpha05 版本不再起作用。

显然问题出在我的 gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-rc-3-all.zip

最佳答案

这个答案不会解决OP的问题,但我有完全相同的错误,谷歌给出了这个SO URL,我的解决方案略有不同

我替换了 httphttps (注意 's')在 gradle.properties文件。

由于其他人可能会通过 Google 搜索找到这个 SO 问题,因此我在此处发布我的答案。

关于android - 错误 :Server returned HTTP response code: 403 for URL: https://services. gradle.org/distributions/gradle-4.4-rc-3-all.zip,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48073717/

相关文章:

android - 用于局部变量的 Butterknife DI

android - 按两次返回退出

Android NDK future 对 C++ 的扩展支持

android - 错误重复输入:Android Studio中的android/support/v4/view/GestureDetectorCompat $ GestureDetectorCompatImpl.class

gradle - Gradle依赖项描述符中的自定义元数据

Android gradle 再次复制 LICENSE.txt 文件

android - build.gradle中的android.enableSeparateAnnotationProcessing设置标志

android - 我需要从原始文件夹动态添加通知声音 - Android

java - 如何在依赖的 Gradle 项目中使用依赖项中的实现依赖项?

android - Android Google Services无法下载4.2.0