【问题标题】:Crashlytics: Using build server to make a release and upload the distribution of an Android AppCrashlytics:使用构建服务器发布并上传 Android 应用程序的分发
【发布时间】:2014-12-17 17:11:57
【问题描述】:

在使用构建服务器 (Jenkins) 进行构建时,我正在使用 Crashlytics 分发 Android 应用。

我已按照此处的说明进行操作:http://support.crashlytics.com/knowledgebase/articles/388924-beta-distributions-with-ant

每当我通过 Jenkins 进行构建时,都会描述 ant 命令:

clean
release
crashlytics-upload-distribution -DbetaDistributionGroupAliases="team-android"

但我总是得到错误:

BUILD FAILED
Target "crashlytics-upload-distribution" does not exist in the project "release". 

更多信息,我的文件custom_rules.xml

<?xml version="1.0" encoding="UTF-8"?>
<project name="crashlytics_custom_rules" default="help">
    <!-- See the instructions at the top of crashlytics_build.xml
         for information about nonstandard builds. -->

    <import file="crashlytics/crashlytics_build.xml"/>

</project>

文件:crashlytics_build_base.xml & crashlytics_build.xml 未更改。

我还在构建中使用 proguard,在我添加的 proguard-project.txt 上:

# Crashlytics - To show correctly the stacktraces
-keepattributes SourceFile,LineNumberTable

谁能指出可能是什么错误?

谢谢

【问题讨论】:

    标签: android ant jenkins proguard crashlytics


    【解决方案1】:

    没关系。我有几个build.xml

    根文件夹中的不是导入Android默认的build.xml,也不是custom_rules.xml

    我需要调用

    ant 发布 crashlytics-upload-distribution -DbetaDistributionGroupAliases="team-android"

    来自自定义build.xml

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-09-20
      • 1970-01-01
      • 1970-01-01
      • 2018-09-20
      • 2021-10-21
      • 1970-01-01
      • 2021-11-08
      • 2021-05-21
      相关资源
      最近更新 更多