Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android jfrog存储库正在上载javadoc,但未下载_Android_Maven_Gradle_Javadoc_Artifactory - Fatal编程技术网

Android jfrog存储库正在上载javadoc,但未下载

Android jfrog存储库正在上载javadoc,但未下载,android,maven,gradle,javadoc,artifactory,Android,Maven,Gradle,Javadoc,Artifactory,我们正在使用jfrog artifactory将我们的库上传到我们的服务器,因此开发人员可以通过maven下载库 因为我们的软件是封闭源码的,所以我们只想上传.aar文件和javadoc 为了进行测试,我们还上传了sources.jar,因为我读到,如果没有源代码,就不可能在下载的文件中获得javadoc。 在服务器上,我们有aar、sources.jar和javadoc.jar 但是,如果我们通过gradle下载aar库,我们根本得不到任何文档。 有人有什么提示吗 谢谢 编辑: Android

我们正在使用jfrog artifactory将我们的库上传到我们的服务器,因此开发人员可以通过maven下载库

因为我们的软件是封闭源码的,所以我们只想上传.aar文件和javadoc

为了进行测试,我们还上传了sources.jar,因为我读到,如果没有源代码,就不可能在下载的文件中获得javadoc。 在服务器上,我们有aar、sources.jar和javadoc.jar

但是,如果我们通过gradle下载aar库,我们根本得不到任何文档。 有人有什么提示吗

谢谢

编辑: Android Studio 2.0 梯度2.0.0

应用程序的渐变文件:

apply plugin: 'com.android.application'
def appArtifactId = 'xxxxx.xxxx.xxx'
android {
    compileSdkVersion 23
    buildToolsVersion "24.0.2"

    signingConfigs {
        release {
            storeFile file('../xxxxxxx.jks')
            storePassword 'xxxxxxx'
            keyAlias 'xxxxx'
            keyPassword 'xxxxxxxxxxxx'
        }
    }

    defaultConfig {
        applicationId "xx.xxxxxx.xxxxxx"
        minSdkVersion 14
        targetSdkVersion 23
        versionCode 22
        versionName "0.9.4"
        signingConfig signingConfigs.release
        multiDexEnabled false
    }

    buildTypes {
        debug {
            debuggable true
            minifyEnabled false
            applicationVariants.all { variant ->
                variant.outputs.each { output ->
                    project.ext { appName = appArtifactId }
                    //def formattedDate = new Date().format('yyyyMMddHHmmss')
                    def newName = output.outputFile.name
                    newName = newName.replace("app-", "$project.ext.appName-" + "v"+versionName) //"MyAppName" -> I set my app variables in the root project
                    newName = newName.replace("debug", "")
                    //newName = newName.replace("-release", "-release" + formattedDate)
                    //noinspection GroovyAssignabilityCheck
                    output.outputFile = new File(output.outputFile.parent, newName)
                }
            }
        }

        release {
            debuggable false
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'),
                          'proguard-rules.pro'
        }
    }
}
configurations.all {
    // Check for updates every build
    resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
dependencies {
    compile ("xx.xxxxx.xxxx.libraryname:libraryname:0.0.1-SNAPSHOT"){ changing = true }

    compile 'com.android.support:appcompat-v7:23.2.0'
    compile "com.androidplot:androidplot-core:1.3.1"
    compile 'com.google.code.findbugs:jsr305:2.0.2' // contains @Nullable etc

    compile 'org.apache.commons:commons-math3:3.6.1'
    compile 'org.parceler:parceler-api:1.0.4'

    compile 'com.bugsnag:bugsnag-android:3.+'
    compile 'com.google.android.gms:play-services-maps:10.0.1'
    compile 'com.android.support:design:23.4.0'
    // for @debuglog
    compile 'org.jetbrains:annotations:13.0'
    compile 'com.afollestad.material-dialogs:core:0.8.5.9'
}
apply plugin: 'com.android.application'
apply plugin: 'com.jakewharton.hugo'
apply plugin: 'com.android.application'


def appArtifactId = 'xxxxx.xxxx.xxx'

android {
    compileSdkVersion 23
    buildToolsVersion "24.0.2"

    signingConfigs {
        release {
            storeFile file('../xxxxxxx.jks')
            storePassword 'xxxxxxx'
            keyAlias 'xxxxx'
            keyPassword 'xxxxxxxxxxxx'
        }
    }

    defaultConfig {
        applicationId "xx.xxxxxx.xxxxxx"
        minSdkVersion 14
        targetSdkVersion 23
        versionCode 22
        versionName "0.9.4"
        signingConfig signingConfigs.release
        multiDexEnabled false
    }

    buildTypes {
        debug {
            debuggable true
            minifyEnabled false
            applicationVariants.all { variant ->
                variant.outputs.each { output ->
                    project.ext { appName = appArtifactId }
                    //def formattedDate = new Date().format('yyyyMMddHHmmss')
                    def newName = output.outputFile.name
                    newName = newName.replace("app-", "$project.ext.appName-" + "v"+versionName) //"MyAppName" -> I set my app variables in the root project
                    newName = newName.replace("debug", "")
                    //newName = newName.replace("-release", "-release" + formattedDate)
                    //noinspection GroovyAssignabilityCheck
                    output.outputFile = new File(output.outputFile.parent, newName)
                }
            }
        }

        release {
            debuggable false
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'),
                          'proguard-rules.pro'
        }
    }
}
configurations.all {
    // Check for updates every build
    resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
dependencies {
    compile ("xx.xxxxx.xxxx.libraryname:libraryname:0.0.1-SNAPSHOT"){ changing = true }

    compile 'com.android.support:appcompat-v7:23.2.0'
    compile "com.androidplot:androidplot-core:1.3.1"
    compile 'com.google.code.findbugs:jsr305:2.0.2' // contains @Nullable etc

    compile 'org.apache.commons:commons-math3:3.6.1'
    compile 'org.parceler:parceler-api:1.0.4'

    compile 'com.bugsnag:bugsnag-android:3.+'
    compile 'com.google.android.gms:play-services-maps:10.0.1'
    compile 'com.android.support:design:23.4.0'
    // for @debuglog
    compile 'org.jetbrains:annotations:13.0'
    compile 'com.afollestad.material-dialogs:core:0.8.5.9'
}
// for @debuglog
apply plugin: 'com.android.application'
apply plugin: 'com.jakewharton.hugo'

你知道gradle是想下载javadocs却找不到它们,还是根本不想下载javadocs?这可能是因为您将javadocs部署到了错误的坐标,或者gradle/Android studio没有尝试下载Javadoc,我认为它没有下载javadocs。我如何检查,如果是下载或不给你更多的细节?谢谢你的回答!您应该查看gradle构建日志以获取javadoc文件的请求(您可能需要提高日志记录级别)。同时检查Artifactory请求日志,看看是否有任何针对javadoc文件的失败请求。从Artifactory日志中,我可以看到,它只是在下载.pom.aar和-sources.jarso,问题似乎在于您的Gradle构建。如果你能分享它(或相关部分),你可能会得到更多的帮助