【问题标题】:Can not upload android library to JCenter repository in bintray.com无法将 android 库上传到 bintray.com 中的 JCenter 存储库
【发布时间】:2017-12-19 10:39:33
【问题描述】:

错误是could not create package 'maven' is not found

但我在 bintray.com 中创建了 maven 存储库。检查下面的链接和屏幕截图

https://bintray.com/powerupcloudtech/maven/webviewoverlay

我按照以下教程进行操作。但是超过 2 天得到同样的错误。

1.https://inthecheesefactory.com/blog/how-to-upload-library-to-jcenter-maven-central-as-dependency/en

2.https://www.numetriclabz.com/distribute-android-library-through-jcenter-from-android-studio/#Upload_library_to_jcenter

3.https://medium.com/@eliaslecomte/publish-an-android-library-on-jcenter-a37770dc9570

我厌倦了尝试网络上的所有解决方案。

以下是我在库 build.gradle 中使用的代码

ext {
bintrayRepo = 'maven'
bintrayName = 'webviewoverlay'

publishedGroupId = 'org.pcc.webviewOverlay'
libraryName = 'WebViewOverlay'
artifact = 'webviewoverlay'

libraryDescription = 'A widget to load WebView as an Overlay.'

siteUrl = 'https://github.com/itvignes09/WebViewOverlay'
gitUrl = 'https://github.com/itvignes09/WebViewOverlay.git'

libraryVersion = '1.0.0'

developerId = 'powerupcloudtech'
developerName = 'vigneswaran a'
developerEmail = 'vignesh.m@powerupcloud.com'

licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"] }

【问题讨论】:

    标签: android jcenter


    【解决方案1】:

    关于您附加的 build.gradle,似乎存在一些错误配置。

    我们建议您查看 Bintray 的 GitHub 中的 'Bintray Examples''Gradle Bintray Plugin'

    如果您对此仍有任何后续问题,请随时通过 support@jfrog.com 与我们联系。

    我们希望这会有所帮助。

    【讨论】:

    • 感谢您的回复。我会试着在这里告诉你
    • 看看这个配置bintray.gradle for upload to jcenter。如果它对你有用,我可以添加更多详细信息的完整答案:)
    【解决方案2】:

    我知道现在为时已晚,但它可能对其他人有所帮助。 libraryName 和 artifact 应该并且必须与项目中库模块的名称相同。阅读以下文章了解更多详细信息,它详细说明了所有内容。

    https://medium.com/@abhishekint16/upload-your-first-android-library-1892c23aea0f

    【讨论】:

      猜你喜欢
      • 2019-05-17
      • 1970-01-01
      • 2020-06-26
      • 2021-05-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-14
      • 1970-01-01
      相关资源
      最近更新 更多