我在游戏中使用Crashlytics。我创建了签名APK并使用USB帮助将其下载到我的设备中。 当我启动它时,应用程序崩溃了
12-26 09:30:58.263: D/AndroidRuntime(29865): Shutting down VM
12-26 09:30:58.263: W/dalvikvm(29865): threadid=1: thread exiting with uncaught exception (group=0x430ef140)
12-26 09:30:58.263: D/KeyguardViewMediator(830): setHidden false
12-26 09:30:58.263: D/KeyguardUpdateMonitor(830): sendKeyguardVisibilityChanged(true)
12-26 09:30:58.263: E/AndroidRuntime(29865): FATAL EXCEPTION: main
12-26 09:30:58.263: E/AndroidRuntime(29865): Process: com.arsanima.game.chapaev, PID: 29865
12-26 09:30:58.263: E/AndroidRuntime(29865): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.arsanima.game.chapaev/com.arsanima.game.chapaev.AndroidLauncher}: io.fabric.sdk.android.services.concurrency.UnmetDependencyException: com.crashlytics.android.CrashlyticsMissingDependencyException:
12-26 09:30:58.263: E/AndroidRuntime(29865): This app relies on Crashlytics. Please sign up for access at https://fabric.io/sign_up,
12-26 09:30:58.263: E/AndroidRuntime(29865): install an Android build tool and ask a team member to invite you to this app's organization.
Debug build可以正常运行。 请帮忙。我做错了什么?
答案 0 :(得分:3)
Crashlytics在内置发布模式时会做很多工作,试图为您提供未混淆的堆栈跟踪。确保您已在build.gradle中完全配置它:
buildscript {
repositories {
maven { url 'http://download.crashlytics.com/maven' }
}
dependencies {
classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.14.7'
}
}
apply plugin: 'crashlytics'
repositories {
maven { url 'http://download.crashlytics.com/maven' }
}