NativeActivity和Classloader

时间:2017-05-24 12:42:17

标签: java android

我有一个自定义类扩展Classloader。当android build sdk小于24时它运行良好,但是当android build sdk等于24时崩溃,为什么?

日志是:

 Caused by: java.lang.ClassCastException: com.mumayi.plugin.manager.FrameworkClassLoader cannot be cast to dalvik.system.BaseDexClassLoader
    at android.app.NativeActivity.onCreate(NativeActivity.java:164)
    at com.netease.neox.NeoXClient.onCreate(NeoXClient.java:18)
    at com.netease.zmq.Client.onCreate(Client.java:180)
    at android.app.Activity.performCreate(Activity.java:6664)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2599)

0 个答案:

没有答案