【发布时间】: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
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"] }
【问题讨论】: