我想将自己的库项目上载到jCenter / Bintray,因此我已经按照以下网站的步骤以及所有步骤进行了操作
引用网站链接:
我的bintrayUpload命令成功执行如下
现在,当我要导入Github Repo时,它将始终使此页面带有禁用按钮,如下所示。
我已经在github中的此仓库上允许授予访问权限的权限
这是我的项目级别 build.gradle
文件
buildscript {
repositories {
mavenCentral()
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0-alpha06'
classpath 'com.novoda:bintray-release:0.8.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenCentral()
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
build.gradle
文件位于应用目录下
apply plugin: 'com.novoda.bintray-release'
apply plugin: 'com.android.library'
publish {
def groupProjectID = 'com.nip.test'
def artifactProjectID = 'nip-test'
def publishVersionID = '1.0'
userOrg = 'testing-007'
repoName = 'MyTestRepo'
groupId = groupProjectID
artifactId = artifactProjectID
publishVersion = publishVersionID
desc = 'Android library for displaying data on basic calculation.'
website = 'https://github.com/testing-tech/MyTestRepo'
}
android {
compileSdkVersion 28
defaultConfig {
// applicationId "com.nip.test"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation "android.arch.work:work-runtime:1.0.0-rc02"
}
但是,仍然发生了问题。有什么解决方案?