我担心我的Android应用程序中的系统警告意味着什么。
ch.ethz.inf.vs.a4.minker.einz W / System:ClassLoader引用未知路径:/data/app/ch.ethz.inf.vs.a4.minker.einz-1/lib/arm64 < / p>
当我运行应用程序然后不做任何事情时出现此警告 - 只显示主要活动。该应用程序不会崩溃,但我想知道为什么会出现这些警告。
当我在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)
This answer提到禁用instantRun,我已经完成了因为我的IntelliJ版本不支持最新版本的gradle(上次我检查支持)。它还提到了WiFi,但这似乎没有什么区别。
This answer提到清除应用缓存和数据,但这也没有什么区别。
值得一提的是,第一次运行应用程序时,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
这些警告可能是什么原因?我担心,如果我忽略它们,我会在某个时候花几天时间调试,发现这些警告会告诉我。
答案 0 :(得分:-1)
你需要设置意图标志。
Intent intent = new Intent(context,Route.class);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent);