android-studio - 使用 Bintray 在 jCenter 上发布 Android Studio 库时遇到问题

标签 android-studio bintray jcenter

我按照本教程在 Jcenter 上发布示例 Android Studio 库:

http://crushingcode.co/publish-your-android-library-via-jcenter/

看起来很清楚。 我已通过此链接使用此库创建了我的 GitHub 存储库:

https://github.com/alessandroargentieri/mylibview

我还登录了 Bintray.com,并创建了一个新存储库,其中必须包含我的库(如上面教程中所述)。

要在 Bintray 上发布存储库,我必须创建一个组织,然后您创建存储库。这些是我的数据:

Bintray 用户名:alessandroargentieri
组织:alexmawashi
存储库: https://bintray.com/alexmawashi/my_android_repository

然后,在 Android Studio 中,在我的库模块的 gradle 文件中,我有以下数据:

apply plugin: 'com.android.library'

ext {
    bintrayRepo = 'my_android_repository'       //maven
    bintrayName = 'mylibview'   // Has to be same as your library module name

    publishedGroupId = 'mawashi.alex.mylittlelibrary'
    libraryName = 'MyLibView'
    artifact = 'mylibview'     // Has to be same as your library module name

    libraryDescription = 'Android Library to use a custom view'

    // Your github repo link
    siteUrl = 'https://github.com/alessandroargentieri/mylibview'
    gitUrl = 'https://github.com/alessandroargentieri/mylibview.git'
    githubRepository= 'alessandroargentieri/mylibview'

    libraryVersion = '1.0'

    developerId = 'alexmawashi'
    developerName = 'Alessandro Argentieri'
    developerEmail = 'alexmawashi87@gmail.com'

    licenseName = 'The Apache Software License, Version 2.0'
    licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
    allLicenses = ["Apache-2.0"]
}
...
...
apply from: 'https://raw.githubusercontent.com/nisrulz/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/nisrulz/JCenter/master/bintrayv1.gradle'

当我使用终端并写入时: gradlew clean build install bintrayUpload --stacktrace

几分钟后,我收到此错误:

 What went wrong:
Execution failed for task ':mylittlelibrary:bintrayUpload'.
> Could not create package 'alessandroargentieri/my_android_repository/mylibview': HTTP/1.1 404 Not Found [message:Repo 'my_android_repository' was not found]

我做错了什么? 谢谢。

最佳答案

关于android-studio - 使用 Bintray 在 jCenter 上发布 Android Studio 库时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39975279/

相关文章:

android - Android应用程序可从IBM Bluemix IoT Watson Cloud Platform访问JSON数据

bintray - 在 bintray 上自己的存储库之间移动包

Android 模拟器渲染问题 - macOS Big Sur 更新后

android - 无法获取 'https://jcenter.bintray.com/com/google/' 从服务器 : Bad Gateway 收到状态代码 502

gradle - Bintray VCS标记

php - 从Gradle文件获取依赖库?

android - 错误 :Unknown host 'maven.fabric.io' . 您可能需要调整 Gradle 中的代理设置

android - Gradle : Could not publish configuration archives

android-studio - Android Studio,已签名的 APK,无法计算哈希(proguard)

android - 导入项目时无法点击完成按钮