当在jFrog / Bintray中导入github仓库上传库时,导入Github仓库按钮被禁用

Nilesh Panchal

我想将自己的库项目上载到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"
}

但是仍然发生了问题。有什么解决方案?

Brijesh Joshi

请选中下图中存储库名称旁边的复选框,这将使您可以在选择后导入该选项。

在此处输入图片说明

瞧!快乐的编码。:)

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章