classloader引用未知路径/data/app/../1/lib/arm64



我担心我的android应用中的系统警告是什么意思。

ch.ethz.inf.vs.a4.minker.einz w/system:classLoader引用未知路径:/data/app/ch.ethz.inf.vs.af.vs.a4.minker.minker.einz-1/lib/arm64

当我运行该应用程序然后不做任何事情时,就会出现此警告 - 仅显示主要活动。该应用不会崩溃,但我想知道为什么这些警告出现。

这是我在Sony Xperia设备上运行应用程序时的完整logcat,但是模拟器创建了相似的日志。

11-25 17:02:48.261 27908-27908/ch.ethz.inf.vs.a4.minker.einz I/art: Late-
enabling -Xcheck:jni
11-25 17:02:48.295 27908-27908/ch.ethz.inf.vs.a4.minker.einz W/System: ClassLoader referenced unknown path: /data/app/ch.ethz.inf.vs.a4.minker.einz-1/lib/arm64
11-25 17:02:48.319 27908-27908/ch.ethz.inf.vs.a4.minker.einz W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
11-25 17:02:48.400 27908-27936/ch.ethz.inf.vs.a4.minker.einz I/Adreno: QUALCOMM build                   : ce5aeb9, I750f7f2fa6
                                                                       Build Date                       : 03/24/17
                                                                       OpenGL ES Shader Compiler Version: XE031.09.00.03
                                                                       Local Branch                     : 
                                                                       Remote Branch                    : quic/LA.BF64.1.2.3_rb1.11
                                                                       Remote Branch                    : NONE
                                                                       Reconstruct Branch               : NOTHING
11-25 17:02:48.405 27908-27936/ch.ethz.inf.vs.a4.minker.einz I/OpenGLRenderer: Initialized EGL, version 1.4
11-25 17:02:48.406 27908-27936/ch.ethz.inf.vs.a4.minker.einz D/OpenGLRenderer: Swap behavior 1
11-25 17:02:48.435 27908-27908/ch.ethz.inf.vs.a4.minker.einz I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@d84f7af time:215890379

登录模拟器(Nexus 5 API 23(Android 6.0,API23))

11-25 16:18:02.052 16216-16216/? I/art: Not late-enabling -Xcheck:jni (already on)
11-25 16:18:02.092 16216-16216/ch.ethz.inf.vs.a4.minker.einz W/System: ClassLoader referenced unknown path: /data/app/ch.ethz.inf.vs.a4.minker.einz-1/lib/x86
11-25 16:18:02.105 16216-16216/ch.ethz.inf.vs.a4.minker.einz W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
11-25 16:18:02.141 16216-16241/ch.ethz.inf.vs.a4.minker.einz D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
                                                                               [ 11-25 16:18:02.153 16216:16216 D/         ]
                                                                               HostConnection::get() New Host Connection established 0xab1a4140, tid 16216
11-25 16:18:02.227 16216-16241/ch.ethz.inf.vs.a4.minker.einz I/OpenGLRenderer: Initialized EGL, version 1.4
11-25 16:18:02.227 16216-16241/ch.ethz.inf.vs.a4.minker.einz W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
11-25 16:18:02.285 16216-16241/ch.ethz.inf.vs.a4.minker.einz D/EGL_emulation: eglCreateContext: 0xaee144e0: maj 3 min 1 rcv 4
11-25 16:18:02.298 16216-16241/ch.ethz.inf.vs.a4.minker.einz D/EGL_emulation: eglMakeCurrent: 0xaee144e0: ver 3 1 (tinfo 0xaee126f0)
11-25 16:18:02.299 16216-16241/ch.ethz.inf.vs.a4.minker.einz E/eglCodecCommon: glUtilsParamSize: unknow param 0x000082da
11-25 16:18:02.299 16216-16241/ch.ethz.inf.vs.a4.minker.einz E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf
11-25 16:18:02.299 16216-16241/ch.ethz.inf.vs.a4.minker.einz E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008824
11-25 16:18:02.370 16216-16241/ch.ethz.inf.vs.a4.minker.einz D/EGL_emulation: eglMakeCurrent: 0xaee144e0: ver 3 1 (tinfo 0xaee126f0)

登录模拟器Nexus 5x API 26 x86(Android 8.0.0,API 26)

11-25 16:19:22.549 6786-6786/? I/zygote: Not late-enabling -Xcheck:jni (already on)
11-25 16:19:22.560 6786-6786/? W/zygote: Unexpected CPU variant for X86 using defaults: x86
11-25 16:19:22.730 6786-6804/ch.ethz.inf.vs.a4.minker.einz D/OpenGLRenderer: HWUI GL Pipeline
11-25 16:19:22.773 6786-6804/ch.ethz.inf.vs.a4.minker.einz I/OpenGLRenderer: Initialized EGL, version 1.4
11-25 16:19:22.773 6786-6804/ch.ethz.inf.vs.a4.minker.einz D/OpenGLRenderer: Swap behavior 1
11-25 16:19:22.773 6786-6804/ch.ethz.inf.vs.a4.minker.einz W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
11-25 16:19:22.773 6786-6804/ch.ethz.inf.vs.a4.minker.einz D/OpenGLRenderer: Swap behavior 0
11-25 16:19:22.783 6786-6804/ch.ethz.inf.vs.a4.minker.einz D/EGL_emulation: eglCreateContext: 0x989fda40: maj 3 min 1 rcv 4
11-25 16:19:22.811 6786-6804/ch.ethz.inf.vs.a4.minker.einz D/EGL_emulation: eglMakeCurrent: 0x989fda40: ver 3 1 (tinfo 0xa4a8b850)
11-25 16:19:22.812 6786-6804/ch.ethz.inf.vs.a4.minker.einz E/eglCodecCommon: glUtilsParamSize: unknow param 0x000082da
11-25 16:19:22.812 6786-6804/ch.ethz.inf.vs.a4.minker.einz E/eglCodecCommon: glUtilsParamSize: unknow param 0x000082da
11-25 16:19:22.812 6786-6804/ch.ethz.inf.vs.a4.minker.einz E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf
11-25 16:19:22.812 6786-6804/ch.ethz.inf.vs.a4.minker.einz E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf
11-25 16:19:22.812 6786-6804/ch.ethz.inf.vs.a4.minker.einz E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008824
11-25 16:19:22.812 6786-6804/ch.ethz.inf.vs.a4.minker.einz E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008824
11-25 16:19:22.884 6786-6804/ch.ethz.inf.vs.a4.minker.einz D/EGL_emulation: eglMakeCurrent: 0x989fda40: ver 3 1 (tinfo 0xa4a8b850)

这个答案提到了禁用instantrun,因为我的Intellij版本不支持Gradle的最新版本(上次我借助支持)。它还提到了wifi,但这似乎没有什么不同。

此答案提到清除应用程序缓存和数据,但这也没有区别。

可能值得一提的是,我第一次运行应用程序时,Intellij在LogCat中显示以下错误。这既发生在模拟器和我的真实设备上。使用"第一次",我的意思是,当我再次单击运行并选择"重新启动应用程序"时,它不会显示错误。这种行为并不是100%一致的。

11-25 16:14:41.358 14185-14185/? I/art: Not late-enabling -Xcheck:jni (already on)
11-25 16:14:41.371 14185-14189/? E/art: Failed sending reply to debugger: Broken pipe
11-25 16:14:41.371 14185-14189/? I/art: Debugger is no longer active
11-25 16:14:41.403 14185-14185/? W/System: ClassLoader referenced unknown path: /data/app/ch.ethz.inf.vs.a4.minker.einz-2/lib/x86

这些警告可能是什么原因?恐怕如果我忽略了它们,我会在某个时候花几天的时间调试,只是发现这些警告会告诉我。

您需要设置意图的标志。

  Intent intent = new Intent(context,Route.class);
                        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                        context.startActivity(intent);

相关内容

最新更新