android-gradle-plugin - 对于 AAR,上传到 bintray 静默失败

标签 android-gradle-plugin bintray

我正在使用 this android 的示例,但用我自己的详细信息替换了示例中的示例

当我执行任务 bintrayUpload 时

我得到以下日志,即使它说成功,但 bintray 上没有新文件。

我如何调试它并找出它失败的原因?

    17:34:07: Executing task 'bintrayUpload'...

Executing tasks: [bintrayUpload]

Configuration on demand is an incubating feature.
Configuration(s) specified but the install task does not exist in project :components.
:components:bintrayUpload: file /Users/x/Dropbox/codes/androids/x/android/android/x-components/components/build/outputs/aar/components-release.aar.asc could not be found.
:components:bintrayUpload: file /Users/x/Dropbox/codes/androids/x/android/android/x/components/build/libs/components-0.2.6-javadoc.jar.asc could not be found.
:components:bintrayUpload: file /Users/x/Dropbox/codes/androids/x/android/android/x-components/components/build/libs/components-0.2.6-sources.jar.asc could not be found.
:components:bintrayUpload: file /Users/x/Dropbox/codes/androids/x/android/android/nx-components/components/build/outputs/aar/components-release.aar.asc could not be found.
:components:bintrayUpload: file /Users/x/Dropbox/codes/androids/x/android/android/x-components/components/build/libs/components-0.2.6-javadoc.jar.asc could not be found.
:components:bintrayUpload: file /Users/x/Dropbox/codes/androids/x/x/x/x-components/components/build/libs/components-0.2.6-sources.jar.asc could not be found.
:components:bintrayUpload
Uploading to https://api.bintray.com/content/true/x/components/0.2.6/x/x/x/components/components/0.2.6/components-0.2.6.aar...
Uploading to https://api.bintray.com/content/true/x/x/0.2.6/x/x/x/components/components/0.2.6/components-0.2.6-javadoc.jar...
Uploading to https://api.bintray.com/content/true/x/components/0.2.6/x/x/x/components/components/0.2.6/components-0.2.6-sources.jar...
Uploading to https://api.bintray.com/content/true/x/x/0.2.6/uk/x/x/x/components/0.2.6/components-0.2.6.aar...
Uploading to https://api.bintray.com/content/true/x/components/0.2.6/x/x/x/components/components/0.2.6/components-0.2.6.pom...
:bintrayPublish

BUILD SUCCESSFUL in 1s
2 actionable tasks: 2 executed
17:34:09: Task execution finished 'bintrayUpload'.

最佳答案

在守护线程上运行的 Gradle 任务在 gradle.properties 文件中禁用守护线程,然后尝试使用 --debug。

org.gradle.daemon=true

关于android-gradle-plugin - 对于 AAR,上传到 bintray 静默失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52008653/

相关文章:

android - 克隆现有的 Android Studio 项目

android - Gradle构建永远不会在Android Studio中停止

android - 使用自定义任务构建 android 模块

gradle - Gradle 6.2.2破坏了我的Bintray发布( Artifactory 名称而不是版本号)

android - 错误:Android Studio中的任务 ':app:dexDebug'执行完成,退出值非零,执行失败

android - 在 Android 模块中使用 CrashAnalytics

java - 使用.class文件而不是android gradle中的.java文件构建sources.jar

java - 部署到 Bintray 三天后,我笔记本电脑上的 Gradle 无法解析应该可用的 Artifact

当使用来自 bintray 的原型(prototype)时,Maven 报告 'The desired archetype does not exist'