我已经在Android本机库中进行了更改并安装了新的system.img文件,但现在我在启动时遇到了无关的错误.我可以通过吞下错误来解决它,但我想知道是否有人可以解释问题是什么.
Logger.java的Android实现声称它是强制LogManager初始化,因为它的类init代码执行必要的一次性设置.但这种强制初始化会导致NoClassDefFoundError.我认为它与尚未被Zygote预装的类有关,但对整个类加载器和VM业务并不熟悉.
如果有人有一些见解,将不胜感激.谢谢.
I/Zygote ( 1253): Preloading classes...
D/skia ( 1253): ------ build_power_table 1.4
D/skia ( 1253): ------ build_power_table 0.714286
W/dalvikvm( 1253): Exception Ljava/lang/StackOverflowError; thrown during Ljava/util/logging/LogManager;.<clinit>
W/dalvikvm( 1253): Exception Ljava/lang/NoClassDefFoundError; thrown during Ljava/security/Security;.<clinit>
W/dalvikvm( 1253): Exception Ljava/lang/ExceptionInInitializerError; thrown during Landroid/net/http/HttpsConnection;.<clinit>
E/Zygote ( 1253): Error preloading android.net.http.HttpsConnection.
E/Zygote ( 1253): java.lang.ExceptionInInitializerError
E/Zygote ( 1253): at java.lang.Class.classForName(Native Method)
E/Zygote ( 1253): at java.lang.Class.forName(Class.java:237)
E/Zygote ( 1253): at java.lang.Class.forName(Class.java:183)
E/Zygote ( 1253): at com.android.internal.os.ZygoteInit.preloadClasses(ZygoteInit.java:295)
E/Zygote ( 1253): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:590)
E/Zygote ( …Run Code Online (Sandbox Code Playgroud)