java.lang.IllegalAccessError:预验证类中的类ref解析为Samsung Devices上的意外实现

时间:2013-02-19 06:28:35

标签: android galaxy

我在我的应用程序的随机位置得到此异常,我只看到各种三星设备崩溃(Galaxy Note 2,Galaxy S2)。我的应用程序依赖于几个不同的图书馆项目,我已经确认我没有两次包括罐子等等。我完全失去了为什么会发生这种情况,因为我没有收到任何我的5个+测试设备,并收到了很少的崩溃报告,但是一些幸运的人在没有崩溃的情况下无法使用该应用程序。

以下是一些堆栈跟踪:

java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected      implementation
    at com.tvshowfavs.services.api.ServerDataStoreService.onHandleIntent(ServerDataStoreService.java:93)
    at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:137)
    at android.os.HandlerThread.run(HandlerThread.java:60)

并且:

java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
at com.tvshowfavs.widget.AppWidgetPreferences.getTabs(AppWidgetPreferences.java:105)
at com.tvshowfavs.widget.AppWidgetConfigurationActivity.onTabsChanged(AppWidgetConfigurationActivity.java:337)
    at com.tvshowfavs.widget.AppWidgetConfigurationActivity.onCreate(AppWidgetConfigurationActivity.java:133)
    at android.app.Activity.performCreate(Activity.java:4470)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1052)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1931)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1992)
    at android.app.ActivityThread.access$600(ActivityThread.java:127)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1158)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:4511)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:980)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747)
    at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:93)
    at dalvik.system.NativeStart.main(Native Method)

任何人都对这些随机崩溃有任何了解吗?

1 个答案:

答案 0 :(得分:2)

好吧,所以我想出了这个问题。我在应用程序中使用Apache Commons Lang jar,它崩溃的每个地方都在调用StringUtils。虽然jar只被添加了一次,所以我不确定它为什么会引起问题。但是,删除jar是唯一可以防止它崩溃的用户注意事项2.我希望我知道为什么它因为这个错误而崩溃在他的设备上,因为StringUtils非常方便:(