我发现这个美妙的库https://github.com/ACRA/acra崩溃报告跟踪。 我已经将jar文件导入到我的项目中,并将ACRA.init添加到我当前的应用程序中。org.acra.CrashReportDialog not found
public class AppController extends Application {
.......
@Override
public void onCreate() {
super.onCreate();
mInstance = this;
ACRA.init(this);
}
<application
android:name="com.mobiledev.Synergy.control.AppController"
android:label="@string/app_name">
而且每次运行应用程序时都会出现此错误。
STACK_TRACE=android.content.ActivityNotFoundException: Unable to find explicit activity class {com.mobiledev.Synergy/org.acra.CrashReportDialog}; have you declared this activity in your AndroidManifest.xml?
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1556)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1431)
at android.app.ContextImpl.startActivity(ContextImpl.java:1054)
at android.app.ContextImpl.startActivity(ContextImpl.java:1043)
at android.content.ContextWrapper.startActivity(ContextWrapper.java:283)
at org.acra.ErrorReporter.notifyDialog(ErrorReporter.java:757)
at org.acra.ErrorReporter$4.run(ErrorReporter.java:732)
我想我需要包括acra jar文件中的CrashReportDialog活动。但我该怎么做呢? 谢谢你们,
发表您的整个AndroidManifest。 @山姆的回答是正确的。 – William 2014-09-28 21:31:59
嗨威廉,现在每件事情都在起作用,我确实应用了山姆的答案,但起初它并没有工作,于是我试着编译项目并清理干净。还重新启动我的应用程序。它现在工作正常。谢谢 – chkm8 2014-09-29 02:04:58