2

我即将配置 Jenkins 以将构建提升到 Fabric,但它没有找到正确的位置,因此在运行此命令时出现以下错误:

gradle assembleStaging crashlyticsUploadDistributionApplication-Staging

Uploading /Users/jenkins/.jenkins/jobs/testPromoteBuildsOnCrashlytics/workspace/Application/build/outputs/apk/Application-staging.apk to Crashlytics...
 WARN - Crashlytics halted compilation because it can't find the specified file: /Users/jenkins/.jenkins/jobs/testPromoteBuildsOnCrashlytics/workspace/Application/build/outputs/apk/Application-staging.apk

有没有办法告诉 crashlytics 插件构建的实际位置?

4

1 回答 1

3

在您的 build.gradle 中,您可以添加:

ext.betaDistributionApkFilePath = '/path/to/your/apk'

crashlytics {}块或您适当的构建变体的{}块。

于 2016-02-17T19:48:16.830 回答