简体   繁体   English

CrashLytics Android集成问题

[英]CrashLytics Android integration issue

I have an Android app that, when built on my development machine with CrashLytics being used, the application runs fine. 我有一个Android应用程序,当我使用CrashLytics在我的开发机器上构建时,应用程序运行正常。 However, if I have CrashLytics in my application and use Jenkins with Ant to build the app (Jenkins is on a different machine), the app when launched will immediately crash. 但是,如果我在我的应用程序中使用了CrashLytics并使用Jenkins和Ant来构建应用程序(Jenkins在不同的机器上),则启动时应用程序将立即崩溃。 No CrashLytics report is generated. 未生成任何CrashLytics报告。 These are the scenarios I've tried: 这些是我尝试过的场景:

Works (Doesn't crash when launched) Works(启动时不会崩溃)

  • Built via Eclipse on my development machine with CrashLytics being used. 使用CrashLytics在我的开发机器上通过Eclipse构建。
  • Built via Eclipse on my development machine without CrashLytics being used. 在我的开发机器上通过Eclipse构建,不使用CrashLytics。
  • Built via Ant on my development machine with CrashLytics being used. 使用CrashLytics在我的开发机器上通过Ant构建。
  • Built via Ant on my development machine without CrashLytics being used. 在我的开发机器上通过Ant构建,没有使用CrashLytics。
  • Built via Jenkins (Ant) on my CI machine without CrashLytics being used. 在我的CI机器上通过Jenkins(Ant)构建,没有使用CrashLytics。

Doesn't Work (Crashes when launched) 不起作用(启动时崩溃)

  • Built via Jenkins (Ant) on my CI machine with CrashLytics being used. 使用CrashLytics在我的CI机器上通过Jenkins(Ant)构建。

So, I'm doubting it has to do with my Ant configuration as it works on the development machine with the same Ant build.xml. 所以,我怀疑它与我的Ant配置有关,因为它在具有相同Ant build.xml的开发机器上工作。

Any ideas why putting CrashLytics into the software would cause it to crash, but only on a non-development machine? 将CrashLytics放入软件的任何想法会导致崩溃,但只能在非开发机器上崩溃?

When you installed Crashlytics on your development machine it was probably installed to do its custom build steps only when you build through Eclipse. 当您在开发计算机上安装Crashlytics时,可能只在您通过Eclipse构建时安装了自定义构建步骤。 The reason it works when you build using Ant on your development machine is that some of those steps have already been performed on this machine. 在开发计算机上使用Ant构建时,它工作的原因是这些步骤中的某些步骤已在此计算机上执行。

You need to add the Crashlytics Ant build steps as described at http://support.crashlytics.com/knowledgebase/articles/203395-ant 您需要按照http://support.crashlytics.com/knowledgebase/articles/203395-ant中所述添加Crashlytics Ant构建步骤

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM