在jFrog / Bintray中导入github repo以上载库时,禁用导入Github存储库按钮

问题描述 投票:1回答:1

我想将我自己的库项目上传到jCenter / Bintray,因此我已经跟踪了以下网站的所有步骤

参考网站链接:

我的bintrayUpload命令成功执行如下

enter image description here

现在,当我要去导入Github Repo时,它将始终如此页面带有一个禁用按钮,如下所示。

enter image description here

我已经允许在github上对此repo授予访问权限

enter image description here

这是我的项目级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
}

app目录下的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"
}

但问题仍然存在。这是什么解决方案?

android bintray jfrog-cli
1个回答
1
投票

请从下图中选择存储库名称旁边的复选框,它将启用您选择后导入的选项。

enter image description here

瞧!快乐的编码。 :)

© www.soinside.com 2019 - 2024. All rights reserved.