简体   繁体   English

Jcenter(Bintray)不批准android库

[英]Jcenter (Bintray) not approving android library

I made an android library (my first one).. followed the steps and was able to successfully upload to bintray..but when i requested to link to jCenter ,I got this mail from Bintray: 我制作了一个android库(我的第一个库)..按照步骤操作,能够成功上传到Bintray ..但是当我请求链接到jCenter时,我从Bintray收到了这封邮件:

Please consolidate all necessary files eg pom, aar and sources into one common path and we will gladly approve your inclusion request. 请将所有必要的文件(例如pom,aar和source)合并到一个通用路径中,我们很乐意批准您的收录要求。

I'm not sure what I'm doing wrong. 我不确定自己在做什么错。

Here's my bintray libary https://bintray.com/hitanshu-dhawan/maven/SharedPref 这是我的Bintray库https://bintray.com/hitanshu-dhawan/maven/SharedPref

my libary build.gradle file 我的lib build.gradle文件

apply plugin: 'com.android.library'

android {
    compileSdkVersion 26
    defaultConfig {
        minSdkVersion 1
        targetSdkVersion 26
        versionCode 1
        versionName "1.0.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

ext {
    bintrayRepo = 'maven'
    bintrayName = 'SharedPref'
    publishedGroupId = 'com.hitanshudhawan.sharedpref'
    libraryName = 'sharedpref'
    artifact = 'sharedpref'
    libraryDescription = 'An android library for making SharedPreferences easy'
    siteUrl = 'https://github.com/hitanshu-dhawan/SharedPref'
    gitUrl = 'https://github.com/hitanshu-dhawan/SharedPref.git'
    libraryVersion = '1.0.0'
    developerId = 'hitanshu-dhawan'
    developerName = 'Hitanshu Dhawan'
    developerEmail = 'hitanshudhawan1996@gmail.com'
    licenseName = 'The Apache Software License, Version 2.0'
    licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
    allLicenses = ["Apache-2.0"]
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:support-annotations:26.1.0'
}

apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'

Looks like you have files outside of the groupId in your pom file. 看起来您的pom文件中的groupId之外的文件。 You have files under library path and not under the sharedpref path. 您的文件位于library 路径下 ,而不位于sharedpref路径下。
There was also no metadata created under the library path. library路径下也没有创建任何元数据。

You can check the user manual for more information. 您可以查看用户手册以获取更多信息。

I have uploaded success 2 libraries to Bintray and JCenter, I wrote a guide how to do it, you can follow my guide to do it. 我已经将成功的2库上载到Bintray和JCenter,我写了一个如何做的指南,您可以按照我的指南去做。

Link library to bintray 将库链接到Bintray

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM