Android Roboguice ExceptionInInitializerError

时间:2016-06-27 12:29:13

标签: android robolectric

以下崩溃表示什么,除了删除Roboguice或升级版本以防止此崩溃之外还有其他方法吗?

  

致命异常:java.lang.ExceptionInInitializerError          在com.google.inject.internal.MoreTypes.canonicalize(SourceFile:128)          在com.google.inject.TypeLiteral。(SourceFile:89)          在com.google.inject.TypeLiteral.get(SourceFile:157)          在com.google.inject.Key。(SourceFile:132)          在com.google.inject.Key.get(SourceFile:243)          在roboguice.inject.ContextScope.enter(SourceFile:87)          在roboguice.inject.ContextScope。(SourceFile:61)          在roboguice.RoboGuice.newDefaultRoboModule(SourceFile:209)          在roboguice.RoboGuice.extractModulesFromManifest(SourceFile:162)          在roboguice.RoboGuice.getOrCreateBaseApplicationInjector(SourceFile:150)          在roboguice.RoboGuice.getOrCreateBaseApplicationInjector(SourceFile:90)          在roboguice.RoboGuice.getInjector(SourceFile:197)          在roboguice.activity.RoboFragmentActivity.onCreate(SourceFile:60)          在com.myapp.ui.activities.base.BaseActivity.onCreate(SourceFile:61)          在com.myapp.ui.activities.LauncherActivity.onCreate(SourceFile:27)          在android.app.Activity.performCreate(Activity.java:5975)          在android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)          在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2269)          在android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2378)          在android.app.ActivityThread.access $ 800(ActivityThread.java:147)          在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1281)          在android.os.Handler.dispatchMessage(Handler.java:102)          在android.os.Looper.loop(Looper.java:135)          在android.app.ActivityThread.main(ActivityThread.java:5255)          在java.lang.reflect.Method.invoke(Method.java)          在java.lang.reflect.Method.invoke(Method.java:372)          在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:839)          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:652)由java.lang.NullPointerException引起:type          在org.roboguice.shaded.goole.common.base.Preconditions.checkNotNull(SourceFile:229)          在com.google.inject.TypeLiteral。(SourceFile:89)          在com.google.inject.TypeLiteral.get(SourceFile:164)          在com.google.inject.internal.MoreTypes。(SourceFile:56)          在com.google.inject.internal.MoreTypes.canonicalize(SourceFile:128)          在com.google.inject.TypeLiteral。(SourceFile:89)          在com.google.inject.TypeLiteral.get(SourceFile:157)          在com.google.inject.Key。(SourceFile:132)          在com.google.inject.Key.get(SourceFile:243)          在roboguice.inject.ContextScope.enter(SourceFile:87)          在roboguice.inject.ContextScope。(SourceFile:61)          在roboguice.RoboGuice.newDefaultRoboModule(SourceFile:209)          在roboguice.RoboGuice.extractModulesFromManifest(SourceFile:162)          在roboguice.RoboGuice.getOrCreateBaseApplicationInjector(SourceFile:150)          在roboguice.RoboGuice.getOrCreateBaseApplicationInjector(SourceFile:90)          在roboguice.RoboGuice.getInjector(SourceFile:197)          在roboguice.activity.RoboFragmentActivity.onCreate(SourceFile:60)          在com.myapp.ui.activities.base.BaseActivity.onCreate(SourceFile:61)          在com.myapp.ui.activities.LauncherActivity.onCreate(SourceFile:27)          在android.app.Activity.performCreate(Activity.java:5975)          在android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)          在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2269)          在android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2378)          在android.app.ActivityThread.access $ 800(ActivityThread.java:147)          在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1281)          在android.os.Handler.dispatchMessage(Handler.java:102)          在android.os.Looper.loop(Looper.java:135)          在android.app.ActivityThread.main(ActivityThread.java:5255)          在java.lang.reflect.Method.invoke(Method.java)          在java.lang.reflect.Method.invoke(Method.java:372)          在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:839)          在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:652)

0 个答案:

没有答案