Android:应用程序启动时的CrashlyticsMissingDependencyException

时间:2017-06-19 17:06:15

标签: google-fabric

我们正在尝试将Crashlytics集成到我们的android应用程序(armeabi-v7a)中。该应用程序使用Java和C ++编写,因此我们也需要本机崩溃报告。

不幸的是,我们在启动成功构建的应用程序时遇到了 com.crashlytics.android.core.CrashlyticsMissingDependencyException

06-19 18:22:47.245 : ASSERTION (EXCEPTION!!!) JavaUnhandledExceptionHandler, thread: Thread[main,5,main]
06-19 18:22:47.247 : java.lang.RuntimeException: Unable to start activity ComponentInfo{com.organization/com.organization.ActivityName}: io.fabric.sdk.android.services.concurrency.UnmetDependencyException: com.crashlytics.android.core.CrashlyticsMissingDependencyException: 
06-19 18:22:47.247 : This app relies on Crashlytics. Please sign up for access at https://fabric.io/sign_up,
06-19 18:22:47.247 : install an Android build tool and ask a team member to invite you to this app's organization.
06-19 18:22:47.247 : 
06-19 18:22:47.247 :    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665)
06-19 18:22:47.247 :    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
06-19 18:22:47.247 :    at android.app.ActivityThread.-wrap12(ActivityThread.java)
06-19 18:22:47.247 :    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
06-19 18:22:47.247 :    at android.os.Handler.dispatchMessage(Handler.java:102)
06-19 18:22:47.247 :    at android.os.Looper.loop(Looper.java:154)
06-19 18:22:47.247 :    at android.app.ActivityThread.main(ActivityThread.java:6119)
06-19 18:22:47.247 :    at java.lang.reflect.Method.invoke(Native Method)
06-19 18:22:47.247 :    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
06-19 18:22:47.247 :    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
06-19 18:22:47.247 : Caused by: io.fabric.sdk.android.services.concurrency.UnmetDependencyException: com.crashlytics.android.core.CrashlyticsMissingDependencyException: 
06-19 18:22:47.247 : This app relies on Crashlytics. Please sign up for access at https://fabric.io/sign_up,
06-19 18:22:47.247 : install an Android build tool and ask a team member to invite you to this app's organization.

调试和发布都没有运行。能否请您提供更详细的安装指南来解决问题?所有安装步骤均按照文档页面执行:

https://fabric.io/downloads/ant

https://docs.fabric.io/android/crashlytics

  • 构建系统:Android Ant
  • 操作系统:Mac OS X El Capitan
  • Android API:23

假设项目结构如下:

  • 的AndroidManifest.xml
  • ant.properties
  • 资产/
  • 仓/
  • 的build.xml
  • CERT /
  • custom_rules.xml
  • fabric.credentials
  • fabric.properties
  • 试剂盒库/
  • kits.properties
  • 库/
  • local.properties
  • OBJ /
  • project.properties
  • RES /

与Fabric相关的设置:

的AndroidManifest.xml:

<meta-data android:name="com.crashlytics.ApiKey" android:value=organizationApiSecret/>
<meta-data android:name="io.fabric.ApiKey" android:value=organizationApiKey/>

custom_rules.xml:

<import file="path/to/sdk/crashlytics/crashlytics_build.xml"/>

kits.properties(生成):

com.crashlytics.sdk.android:crashlytics:2.5.5
com.crashlytics.sdk.android:crashlytics-ndk:1.1.2

project.properties(生成):

manifestmerger.enabled=true
target=android-23
android.library.reference.2=kit-libs/com-crashlytics-sdk-android_crashlytics

fabric.properties:

apiSecret=organizationApiSecret
apiKey=organizationApiKey
enableNDK=true
androidNdkOut=obj
androidNdkLibsOut=libs

安装步骤:

  1. 编译c ++
  2. ant crashlytics-onboard
  3. 删除不需要的架构:kit-libs / com-crashlytics-sdk-android_crashlytics-ndk / libs /
  4. ant our_target
  5. ant crashlytics-symbols

0 个答案:

没有答案