android - 无法读取脚本 'https://raw.githubusercontent.com/ntpanchal/JCenter/master/installv1.gradle',因为它不存在

标签 android gradle bintray jcenter

我想将库项目上传到 jCenter 并按照 this 中的所有步骤操作博客

./gradlew clean build install bintrayUpload

当我从 android studio 终端执行上面的命令时,它会给出以下错误。

Could not read script 'https://raw.githubusercontent.com/ntpanchal/JCenter/master/installv1.gradle' as it does not exist.

最佳答案

您使用了错误的脚本。改用这个:

https://raw.githubusercontent.com/numetriclabz/jcenter/master/installv.gradle

您尝试使用的那个不存在(在浏览器中打开它;404)。 repo 协议(protocol)也不存在。

关于android - 无法读取脚本 'https://raw.githubusercontent.com/ntpanchal/JCenter/master/installv1.gradle',因为它不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48317518/

相关文章:

java - bundle 并放置额外

android - 使用 xamarin 提升 Android 应用程序的启动性能

java - android:使用xml页面创建一个新的 Activity

android - 如何将 JSON 数据作为参数从 Android 发送到 Jersey RESTful 服务

Android:如何从已知枚举中设置 gradle 值

Android studio 2.2.2 使用 bintray 存储库将我的应用程序模块作为库发布到 jcenter

maven - Bintray 依赖项不会在 IntelliJ 中下载

eclipse - "Could not run phased build action using connection to Gradle distribution"

java - Android Studio - Gradle 同步错误

java - 如何使用 mvn deploy :deploy-file command 将 Artifact 部署到 Bintray