尽管运行在IONIC框架上的IONIC框架构建的Android应用程序在Genymotion模拟器上运行时遇到问题,尽管它在真实的硬件(真正的androID手机)上运行良好.
我可以看到由于异常而引发的没有DRP密钥的错误:java.lang.classNotFoundException:com.androID.webvIEw.chromium.Drp
以下是logcat文件中完整日志的片段:
09-27 21:53:24.258 I/ActivityManager( 5528): START u0 {act=androID.intent.action.MAIN cat=[androID.intent.category.LAUNCHER] flg=0x10200000 cmp=com.ionicframework.myappandroID393856/.MainActivity (has extras)} from uID 10008 on display 009-27 21:53:24.317 I/art ( 6438): Late-enabling -Xcheck:jni09-27 21:53:24.318 I/ActivityManager( 5528): Start proc 6438:com.ionicframework.myappandroID393856/u0a60 for activity com.ionicframework.myappandroID393856/.MainActivity09-27 21:53:24.375 W/System ( 6438): ClassLoader referenced unkNown path: /data/app/com.ionicframework.myappandroID393856-1/lib/x8609-27 21:53:24.480 V/WebVIEwFactory( 6438): webVIEwPackagename: com.androID.webvIEw09-27 21:53:24.482 I/WebVIEwFactory( 6438): Loading com.androID.webvIEw version 44.0.2403.119 (code 246011910)09-27 21:53:24.514 W/System ( 6438): ClassLoader referenced unkNown path: /system/app/webvIEw/lib/x8609-27 21:53:24.526 I/libraryLoader( 6438): Time to load native librarIEs: 1 ms (timestamps 8014-8015)09-27 21:53:24.532 I/libraryLoader( 6438): Expected native library version number "",actual native library version number ""09-27 21:53:24.577 V/WebVIEwChromiumFactoryProvIDer( 6438): Binding Chromium to main looper Looper (main, tID 1) {10f7532}09-27 21:53:24.578 I/libraryLoader( 6438): Expected native library version number "",actual native library version number ""09-27 21:53:24.578 I/chromium( 6438): [INFO:library_loader_hooks.cc(120)] Chromium logging enabled: level = 0, default verbosity = 009-27 21:53:24.589 I/browserStartupController( 6438): Initializing chromium process, singleProcess=true09-27 21:53:24.589 W/art ( 6438): Attempt to remove non-JNI local reference, dumPing thread09-27 21:53:24.590 E/SysUtils( 6438): ApplicationContext is null in ApplicationStatus09-27 21:53:24.659 W/chromium( 6438): [WARNING:resource_bundle.cc(285)] locale_file_path.empty()09-27 21:53:24.676 D/libEGL ( 6438): loaded /system/lib/egl/libEGL_emulation.so09-27 21:53:24.677 D/libEGL ( 6438): loaded /system/lib/egl/libGLESv1_CM_emulation.so09-27 21:53:24.697 D/libEGL ( 6438): loaded /system/lib/egl/libGLESv2_emulation.so09-27 21:53:24.704 E/libEGL ( 6438): valIDate_display:255 error 3008 (EGL_BAD_disPLAY)09-27 21:53:24.704 E/libEGL ( 6438): valIDate_display:255 error 3008 (EGL_BAD_disPLAY)09-27 21:53:24.705 D/ ( 6438): HostConnection::get() New Host Connection established 0xe8a614f0, tID 643809-27 21:53:24.881 E/eglCodecCommon( 6438): glutilsParamSize: unkNow param 0x00008d5709-27 21:53:25.010 W/AudioManagerAndroID( 6438): Requires BLUetoOTH permission09-27 21:53:25.070 E/DataReductionProxySettingListener( 6438): No DRP key due to exception:java.lang.classNotFoundException: com.androID.webvIEw.chromium.Drp09-27 21:53:25.108 W/art ( 6438): Attempt to remove non-JNI local reference, dumPing thread09-27 21:53:25.140 W/AwContents( 6438): onDetachedFromWindow called when already detached. Ignoring09-27 21:53:25.154 D/SystemWebVIEwEngine( 6438): CordovaWebVIEw is running on device made by: Genymotion09-27 21:53:25.163 W/art ( 6438): Attempt to remove non-JNI local reference, dumPing thread09-27 21:53:25.163 W/art ( 6438): Attempt to remove non-JNI local reference, dumPing thread09-27 21:53:25.174 E/Surface ( 5893): getSlotFromBufferLocked: unkNown buffer: 0xe8a0318009-27 21:53:25.267 D/Openglrenderer( 6438): Use EGL_SWAP_BEHAVIOR_PRESERVED: true09-27 21:53:25.332 V/Statusbar( 6438): Statusbar: initialization
解决方法:
我遇到了这个问题,原来是包含一些ES6粗箭头的JavaScript
()=> {…}
删除它们并返回匿名函数后
function () {…}
Genymotion模拟器不再抛出此错误.
它仍在AndroID Studio仿真器上,但不影响JavaScript执行.
以上是内存溢出为你收集整理的由于异常,没有DRP密钥:java.lang.ClassNotFoundException:com.android.webview.chromium.Drp全部内容,希望文章能够帮你解决由于异常,没有DRP密钥:java.lang.ClassNotFoundException:com.android.webview.chromium.Drp所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)