我们正在尝试将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
假设项目结构如下:
与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
安装步骤: