2014-10-22 46 views
4

我使用Crashlytics在使用構建服務器(Jenkins)進行構建時分發Android應用程序。Crashlytics:使用構建服務器進行發佈並上傳Android應用程序的發佈

我在這裏跟着指示:http://support.crashlytics.com/knowledgebase/articles/388924-beta-distributions-with-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 

有人能指出我可能是什麼錯誤?

謝謝

回答

0

沒關係。我有幾個build.xml

上的根文件夾中的一個是不是進口的Android默認也不custom_rules.xml

我需要從自定義調用

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

build.xmlbuild.xml

相關問題