37°_32oMky 器粉跑堂
2017-04-12 17:22:42 

调用initX5Environment时出现exceptions:java.lang.NoSuchMethodException: canLoadX5CoreForThirdApp []

调用initX5Environment时出现exceptions:java.lang.NoSuchMethodException: canLoadX5CoreForThirdApp []
应用名称以及版本 测试程序
复现问题的机型和ROM版本 华为P6 系统4.4.2
问题简述 调用initX5Environment时出现exceptions:java.lang.NoSuchMethodException: canLoadX5CoreForThirdApp []
复现问题的操作步骤
使用的是官方的demo进行测试,在Application里调用initX5Environment时出现exceptions:java.lang.NoSuchMethodException: canLoadX5CoreForThirdApp []
错误日志
04-12 17:05:54.541 4054-4054/com.charming.webdemo I/dalvikvm: Could not find method android.content.Context.checkSelfPermission, referenced from method com.tencent.smtt.utils.k.a
04-12 17:05:54.541 4054-4054/com.charming.webdemo W/dalvikvm: VFY: unable to resolve virtual method 283: Landroid/content/Context;.checkSelfPermission (Ljava/lang/String;)I
04-12 17:05:54.541 4054-4054/com.charming.webdemo D/dalvikvm: VFY: replacing opcode 0x6e at 0x0011
04-12 17:05:54.601 4054-4109/com.charming.webdemo W/ContextImpl: Failed to ensure directory: /storage/sdcard1/Android/data/com.charming.webdemo/files/tbslog
04-12 17:05:54.611 4054-4073/com.charming.webdemo W/ContextImpl: Failed to ensure directory: /storage/sdcard1/Android/data/com.charming.webdemo/files/tbslog
04-12 17:05:54.631 4054-4054/com.charming.webdemo E/ReflectionUtils: invokeInstance -- exceptions:java.lang.NoSuchMethodException: canLoadX5CoreForThirdApp []
                                                                         at java.lang.Class.getConstructorOrMethod(Class.java:472)
                                                                         at java.lang.Class.getMethod(Class.java:857)
                                                                         at com.tencent.smtt.utils.v.a(Unknown Source)
                                                                         at com.tencent.smtt.sdk.QbSdk.canLoadX5FirstTimeThirdApp(Unknown Source)
                                                                         at com.tencent.smtt.sdk.TbsShareManager.forceToLoadX5ForThirdApp(Unknown Source)
                                                                         at com.tencent.smtt.sdk.i.onNeedDownloadFinish(Unknown Source)
                                                                         at com.tencent.smtt.sdk.TbsDownloader.needDownload(Unknown Source)
                                                                         at com.tencent.smtt.sdk.QbSdk.initX5Environment(Unknown Source)
                                                                         at com.charming.webdemo.APPAplication.onCreate(APPAplication.java:32)
                                                                         at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1009)
                                                                         at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4558)
                                                                         at android.app.ActivityThread.access$1800(ActivityThread.java:135)
                                                                         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1292)
                                                                         at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                         at android.os.Looper.loop(Looper.java:136)
                                                                         at android.app.ActivityThread.main(ActivityThread.java:5234)
                                                                         at java.lang.reflect.Method.invokeNative(Native Method)
                                                                         at java.lang.reflect.Method.invoke(Method.java:515)
                                                                         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:834)
                                                                         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:650)
                                                                         at dalvik.system.NativeStart.main(Native Method)
04-12 17:05:54.631 4054-4054/com.charming.webdemo E/ReflectionUtils: invokeInstance -- exceptions:java.lang.NoSuchMethodException: canLoadX5CoreForThirdApp []
                                                                         at java.lang.Class.getConstructorOrMethod(Class.java:472)
                                                                         at java.lang.Class.getMethod(Class.java:857)
                                                                         at com.tencent.smtt.utils.v.a(Unknown Source)
                                                                         at com.tencent.smtt.sdk.QbSdk.canLoadX5FirstTimeThirdApp(Unknown Source)
                                                                         at com.tencent.smtt.sdk.TbsShareManager.forceToLoadX5ForThirdApp(Unknown Source)
                                                                         at com.tencent.smtt.sdk.i.onNeedDownloadFinish(Unknown Source)
                                                                         at com.tencent.smtt.sdk.TbsDownloader.needDownload(Unknown Source)
                                                                         at com.tencent.smtt.sdk.QbSdk.initX5Environment(Unknown Source)
                                                                         at com.charming.webdemo.APPAplication.onCreate(APPAplication.java:32)
                                                                         at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1009)
                                                                         at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4558)
                                                                         at android.app.ActivityThread.access$1800(ActivityThread.java:135)
                                                                         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1292)
                                                                         at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                         at android.os.Looper.loop(Looper.java:136)
                                                                         at android.app.ActivityThread.main(ActivityThread.java:5234)
                                                                         at java.lang.reflect.Method.invokeNative(Native Method)
                                                                         at java.lang.reflect.Method.invoke(Method.java:515)
                                                                         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:834)
                                                                         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:650)
                                                                         at dalvik.system.NativeStart.main(Native Method)
04-12 17:05:54.651 4054-4054/com.charming.webdemo V/HwWidgetFactory: : successes to get AllImpl object and return....
问题页面url  
联系方式 QQ: 1021821279
问题是否必现
系统内核现象 不存在
微信是否存在  
BUG截图
LOG日志
2 条回复
 苦行者 ^_^ 器粉新人
超级管理员
2017-04-18 20:11:48 沙发
调试信息,不影响x5加载逻辑。可以不用理会
37°_32oMky 器粉跑堂
2017-04-19 10:45:19 板凳
 苦行者 ^_^ 发表于 2017-04-18 20:11:48 
调试信息,不影响x5加载逻辑。可以不用理会

但是x5确实没有加载成功,程序在这里出了异常,加载的回调onViewInitFinished也没有收到
回复

您需要 登录 后才可以回帖