将uniApp 生成本地打包App资源放到assets文件里面,启动App 初始化DCUniMPSDK成功,使用DCUniMPSDK启动uniApp里面的页面白屏,没有任何反应。使用其他的手机例如HTC M8 ,Android 6.0,可以正常运行。
- 发布:2021-04-28 14:37
- 更新:2023-01-10 13:18
- 阅读:1812
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: Windows 7 旗舰版
HBuilderX类型: 正式
HBuilderX版本号: 3.1.11
手机系统: Android
手机系统版本号: Android 7.1.1
手机厂商: 锤子
手机机型: 坚果pro1,坚果r1
页面类型: vue
打包方式: 离线
项目创建方式: HBuilderX
操作步骤:
预期结果:
正常启动uniApp页面
正常启动uniApp页面
实际结果:
启动uniApp页面白屏没有反应
启动uniApp页面白屏没有反应
bug描述:
将uniApp 生成本地打包App资源放到assets文件里面,启动App 初始化DCUniMPSDK成功,使用DCUniMPSDK启动uniApp里面的页面白屏,没有任何反应。使用其他的手机例如HTC M8 ,Android 6.0,可以正常运行。以下分别是初始化SDK和启动uniApp的错误log。附件是错误log的截图。
初始化DCUniMPSDK报错log:
2021-04-29 14:15:41.223 6999-7020/com.skyworth.libapp I/weex: get default settings weexjsb : 1.0
2021-04-29 14:15:41.251 6999-7020/com.skyworth.libapp I/weex: save default settings weexjsb:1.0
2021-04-29 14:15:41.263 6999-6999/com.skyworth.libapp I/platform: ClassNotFoundException io.dcloud.feature.weex_amap.AMapPluginImpl initPlugin
2021-04-29 14:15:41.264 6999-6999/com.skyworth.libapp I/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
2021-04-29 14:15:41.265 6999-6999/com.skyworth.libapp I/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
2021-04-29 14:15:41.265 6999-6999/com.skyworth.libapp I/platform: ClassNotFoundException io.dcloud.feature.weex_livepusher.LivePusherPlugin initPlugin
2021-04-29 14:15:41.265 6999-6999/com.skyworth.libapp I/platform: ClassNotFoundException io.dcloud.feature.weex_media.VideoPlayerPlugin initPlugin
2021-04-29 14:15:41.266 6999-6999/com.skyworth.libapp I/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
2021-04-29 14:15:41.267 6999-6999/com.skyworth.libapp I/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
2021-04-29 14:15:41.267 6999-7020/com.skyworth.libapp E/weex: tryUseRunTimeApi ? false
2021-04-29 14:15:41.268 6999-6999/com.skyworth.libapp I/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
2021-04-29 14:15:41.268 6999-6999/com.skyworth.libapp I/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
2021-04-29 14:15:41.269 6999-6999/com.skyworth.libapp I/platform: ClassNotFoundException io.dcloud.feature.gcanvas.GCanvasRegister initPlugin
2021-04-29 14:15:41.270 6999-6999/com.skyworth.libapp I/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
2021-04-29 14:15:41.270 6999-6999/com.skyworth.libapp I/platform: ClassNotFoundException io.dcloud.feature.weex_ad.DCWXAdPlugin initPlugin
2021-04-29 14:15:41.271 6999-6999/com.skyworth.libapp I/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
2021-04-29 14:15:41.271 6999-6999/com.skyworth.libapp E/DCLoudApplicationImpl: mApplication--=com.skyworth.libapp.App@6bd9d16
2021-04-29 14:15:41.329 6999-6999/com.skyworth.libapp W/System: ClassLoader referenced unknown path: /system/app/webview/lib/arm64
2021-04-29 14:15:41.330 6999-6999/com.skyworth.libapp D/ApplicationLoaders: ignored Vulkan layer search path /system/app/webview/lib/arm64:/system/app/webview/webview.apk!/lib/arm64-v8a:/system/lib64:/vendor/lib64 for namespace 0x7f8d15f240
2021-04-29 14:15:41.332 6999-6999/com.skyworth.libapp I/WebViewFactory: Loading com.android.webview version 4.4 (code 15)
2021-04-29 14:15:41.489 6999-6999/com.skyworth.libapp I/cr_LibraryLoader: Time to load native libraries: 3 ms (timestamps 3743-3746)
2021-04-29 14:15:41.498 6999-6999/com.skyworth.libapp I/chromium: [INFO:library_loader_hooks.cc(46)] Chromium logging enabled: level = 0, default verbosity = 0
2021-04-29 14:15:41.498 6999-6999/com.skyworth.libapp I/cr_LibraryLoader: Expected native library version number "62.0.3202.84", actual native library version number "62.0.3202.84"
2021-04-29 14:15:41.502 6999-6999/com.skyworth.libapp E/X5InitImpl: onViewInitFinished is false
2021-04-29 14:15:41.523 6999-7020/com.skyworth.libapp E/weex: [WXBridgeManager] invoke execJSService: framework.js uninitialized.
2021-04-29 14:15:41.566 6999-7020/com.skyworth.libapp W/weex: app AvailMemory ---->>>1060
2021-04-29 14:15:41.567 6999-7020/com.skyworth.libapp E/DCloud_LOG: PlatformUtil.getResInputStream FileNotFoundException pFilePath=uni-jsframework-dev.js
2021-04-29 14:15:41.567 6999-7020/com.skyworth.libapp I/DCFileUtils: getAssetPath---------uni-jsframework.js
2021-04-29 14:15:41.581 6999-7020/com.skyworth.libapp E/WXParams: setCrashFilePath: /data/user/0/com.skyworth.libapp/app_crash
2021-04-29 14:15:41.581 6999-7020/com.skyworth.libapp E/weex: weexjss's Path is /data/app/com.skyworth.libapp-2/base.apk!/lib/arm64-v8a/libweexjss.so but file does not exist
2021-04-29 14:15:41.605 6999-7020/com.skyworth.libapp E/weex: getUseSingleProcess is running false
2021-04-29 14:15:41.605 6999-7020/com.skyworth.libapp E/WeexCore: params_utils.cpp:214,g_use_single_process is false
2021-04-29 14:15:41.605 6999-7020/com.skyworth.libapp E/weex: getReleaseMap:true
2021-04-29 14:15:41.605 6999-7020/com.skyworth.libapp E/weex: getLibJscPath is running
2021-04-29 14:15:41.605 6999-7020/com.skyworth.libapp E/WeexCore: params_utils.cpp:258,g_jscSoPath is
2021-04-29 14:15:41.605 6999-7020/com.skyworth.libapp E/weex: getLibJssPath is running /data/user/0/com.skyworth.libapp/cache/libweexjss.so
2021-04-29 14:15:41.605 6999-7020/com.skyworth.libapp E/WeexCore: params_utils.cpp:271,g_jssSoPath is /data/user/0/com.skyworth.libapp/cache/libweexjss.so
2021-04-29 14:15:41.605 6999-7020/com.skyworth.libapp E/WXParams: getCrashFilePath:/data/user/0/com.skyworth.libapp/app_crash
2021-04-29 14:15:41.605 6999-7020/com.skyworth.libapp E/WeexCore: params_utils.cpp:283,g_crashFilePath is /data/user/0/com.skyworth.libapp/app_crash
2021-04-29 14:15:41.605 6999-7020/com.skyworth.libapp E/weex: getLibIcuPath is running /system/usr/icu/icudt56l.dat
2021-04-29 14:15:41.605 6999-7020/com.skyworth.libapp E/WeexCore: params_utils.cpp:296,g_jssIcuPath is /system/usr/icu/icudt56l.dat
2021-04-29 14:15:41.606 6999-7020/com.skyworth.libapp E/weex: getLibJsbPath is running /data/user/0/com.skyworth.libapp/cache/cache/weex/libs/weexjsb/arm64-v8a/libweexjsb.so
2021-04-29 14:15:41.606 6999-7020/com.skyworth.libapp E/weex: getLibLdPath is running /data/app/com.skyworth.libapp-2/lib/arm64:/data/app/com.skyworth.libapp-2/base.apk!/lib/arm64-v8a
2021-04-29 14:15:41.608 6999-7020/com.skyworth.libapp E/WeexCore: setDebugMode 2
2021-04-29 14:15:41.609 6999-7020/com.skyworth.libapp E/WeexCore: multi_process_and_so_initializer.cpp:38,MultiProcessAndSoInitializer IS IN init
2021-04-29 14:15:41.609 6999-7020/com.skyworth.libapp E/WeexCore: weex_js_connection.cpp:142,WeexJSConnection g_crashFileName: /data/user/0/com.skyworth.libapp/app_crash/crash_dump.log
2021-04-29 14:15:41.611 6999-7020/com.skyworth.libapp E/WeexCore: weex_js_connection.cpp:262,startupPie :1
2021-04-29 14:15:43.869 6999-7133/com.skyworth.libapp E/WeexCore: weex_js_connection.cpp:185,IPCException server died spinWaitPeer timeout
2021-04-29 14:15:43.869 6999-7020/com.skyworth.libapp E/WeexCore: weex_js_connection.cpp:298,WeexJSConnection catch: spinWaitPeer timeout
2021-04-29 14:15:43.869 6999-7020/com.skyworth.libapp E/WeexCore: multi_process_and_so_initializer.cpp:47,JSFramwork init start sender is null
2021-04-29 14:15:43.869 6999-7020/com.skyworth.libapp E/WeexCore: IPCFutexPageQueue.cpp:66,do munmap
2021-04-29 14:15:43.870 6999-7133/com.skyworth.libapp E/WeexCore: IPCFutexPageQueue.cpp:66,do munmap
2021-04-29 14:15:43.870 6999-7020/com.skyworth.libapp E/WeexCore: weex_js_connection.cpp:142,WeexJSConnection g_crashFileName: /data/user/0/com.skyworth.libapp/app_crash/crash_dump.log
2021-04-29 14:15:43.876 6999-7020/com.skyworth.libapp E/WeexCore: weex_js_connection.cpp:262,startupPie :1
2021-04-29 14:15:46.743 6999-7020/com.skyworth.libapp E/WeexCore: weex_js_connection.cpp:298,WeexJSConnection catch: spinWaitPeer timeout
2021-04-29 14:15:46.743 6999-7020/com.skyworth.libapp E/WeexCore: multi_process_and_so_initializer.cpp:47,JSFramwork init start sender is null
2021-04-29 14:15:46.743 6999-7020/com.skyworth.libapp E/WeexCore: IPCFutexPageQueue.cpp:66,do munmap
2021-04-29 14:15:46.743 6999-7312/com.skyworth.libapp E/WeexCore: weex_js_connection.cpp:185,IPCException server died spinWaitPeer timeout
2021-04-29 14:15:46.744 6999-7312/com.skyworth.libapp E/WeexCore: IPCFutexPageQueue.cpp:66,do munmap
2021-04-29 14:15:46.748 6999-7020/com.skyworth.libapp E/WeexCore: script_side_in_multi_process.cpp:43,InitFramework sender is null
2021-04-29 14:15:46.749 6999-7020/com.skyworth.libapp E/weex: [WXBridgeManager] invokeInitFramework ExecuteJavaScript fail
启动uniApp错误log:
2021-04-29 14:17:29.622 6999-6999/com.skyworth.libapp E/WeexInstanceMgr: resAppVersionName--=1.0.0 +fcAppVersionName=1.0.0 false
2021-04-29 14:17:29.626 6999-6999/com.skyworth.libapp I/platform: ClassNotFoundException io.dcloud.feature.cf.cFeatureImpl handleEncryption
2021-04-29 14:17:29.627 6999-7020/com.skyworth.libapp E/weex: [WXBridgeManager] invoke execJSService: framework.js uninitialized.
2021-04-29 14:17:29.628 6999-6999/com.skyworth.libapp E/WeexCore: wx_bridge.cpp:1307,class Name is com/taobao/weex/bridge/WXBridge
2021-04-29 14:17:29.628 6999-6999/com.skyworth.libapp E/WeexCore: WXBridge_jni.h:1445,Java_WXBridge_reset_clazz class Name is com/taobao/weex/bridge/WXBridge
2021-04-29 14:17:29.629 6999-7020/com.skyworth.libapp W/weex: app AvailMemory ---->>>1037
2021-04-29 14:17:29.629 6999-7020/com.skyworth.libapp E/DCloud_LOG: PlatformUtil.getResInputStream FileNotFoundException pFilePath=uni-jsframework-dev.js
2021-04-29 14:17:29.629 6999-7020/com.skyworth.libapp I/DCFileUtils: getAssetPath---------uni-jsframework.js
2021-04-29 14:17:29.632 6999-6999/com.skyworth.libapp E/Html5Plus-onCreate: 1619677049632
2021-04-29 14:17:29.639 6999-6999/com.skyworth.libapp D/WebAppActivity: onCreate
2021-04-29 14:17:29.649 6999-7020/com.skyworth.libapp E/WXParams: setCrashFilePath: /data/user/0/com.skyworth.libapp/app_crash
2021-04-29 14:17:29.650 6999-7020/com.skyworth.libapp E/weex: getUseSingleProcess is running false
2021-04-29 14:17:29.650 6999-7020/com.skyworth.libapp E/WeexCore: params_utils.cpp:214,g_use_single_process is false
2021-04-29 14:17:29.650 6999-7020/com.skyworth.libapp E/weex: getReleaseMap:true
2021-04-29 14:17:29.650 6999-7020/com.skyworth.libapp E/weex: getLibJscPath is running
2021-04-29 14:17:29.650 6999-7020/com.skyworth.libapp E/WeexCore: params_utils.cpp:258,g_jscSoPath is
2021-04-29 14:17:29.650 6999-7020/com.skyworth.libapp E/weex: getLibJssPath is running /data/user/0/com.skyworth.libapp/cache/libweexjss.so
2021-04-29 14:17:29.650 6999-7020/com.skyworth.libapp E/WeexCore: params_utils.cpp:271,g_jssSoPath is /data/user/0/com.skyworth.libapp/cache/libweexjss.so
2021-04-29 14:17:29.650 6999-7020/com.skyworth.libapp E/WXParams: getCrashFilePath:/data/user/0/com.skyworth.libapp/app_crash
2021-04-29 14:17:29.650 6999-7020/com.skyworth.libapp E/WeexCore: params_utils.cpp:283,g_crashFilePath is /data/user/0/com.skyworth.libapp/app_crash
2021-04-29 14:17:29.651 6999-7020/com.skyworth.libapp E/weex: getLibIcuPath is running /system/usr/icu/icudt56l.dat
2021-04-29 14:17:29.651 6999-7020/com.skyworth.libapp E/WeexCore: params_utils.cpp:296,g_jssIcuPath is /system/usr/icu/icudt56l.dat
2021-04-29 14:17:29.651 6999-7020/com.skyworth.libapp E/weex: getLibJsbPath is running /data/user/0/com.skyworth.libapp/cache/cache/weex/libs/weexjsb/arm64-v8a/libweexjsb.so
2021-04-29 14:17:29.651 6999-7020/com.skyworth.libapp E/weex: getLibLdPath is running /data/app/com.skyworth.libapp-2/lib/arm64:/data/app/com.skyworth.libapp-2/base.apk!/lib/arm64-v8a
2021-04-29 14:17:29.653 6999-7020/com.skyworth.libapp E/WeexCore: setDebugMode 2
2021-04-29 14:17:29.653 6999-7020/com.skyworth.libapp E/WeexCore: multi_process_and_so_initializer.cpp:38,MultiProcessAndSoInitializer IS IN init
2021-04-29 14:17:29.654 6999-7020/com.skyworth.libapp E/WeexCore: weex_js_connection.cpp:142,WeexJSConnection g_crashFileName: /data/user/0/com.skyworth.libapp/app_crash/crash_dump.log
2021-04-29 14:17:29.656 6999-7020/com.skyworth.libapp E/WeexCore: weex_js_connection.cpp:262,startupPie :1
2021-04-29 14:17:29.676 6999-6999/com.skyworth.libapp E/DCloud_LOG: channel:;ver:1.9.9.80788;max:3;trim:0;dg:true
2021-04-29 14:17:29.752 6999-6999/com.skyworth.libapp E/Html5Plus-onResume: 1619677049752
2021-04-29 14:17:29.973 6999-6999/com.skyworth.libapp E/DCloud_LOG: fmgr no dp
2021-04-29 14:17:29.986 6999-6999/com.skyworth.libapp E/Main_Path: FeatureMgr.loadBootOptions io.dcloud.feature.statistics.StatisticsBootImpl
2021-04-29 14:17:29.986 6999-6999/com.skyworth.libapp E/Main_Path: FeatureMgr.loadBootOptions io.dcloud.feature.aps.APSFeatureImpl
2021-04-29 14:17:29.986 6999-6999/com.skyworth.libapp E/Main_Path: FeatureMgr.loadBootOptions io.dcloud.js.map.MapInitImpl
2021-04-29 14:17:30.008 6999-6999/com.skyworth.libapp E/DCloud_LOG: channel:;ver:1.9.9.80788;max:3;trim:0;dg:true
2021-04-29 14:17:30.016 6999-7398/com.skyworth.libapp E/DCloud_LOG: PlatformUtil.getResInputStream FileNotFoundException pFilePath=uni-jsframework-dev.js
2021-04-29 14:17:30.016 6999-6999/com.skyworth.libapp E/DCloud_LOG: PlatformUtil.getResInputStream FileNotFoundException pFilePath=data/dcloud_url.json
2021-04-29 14:17:30.016 6999-6999/com.skyworth.libapp D/DCloud_LOG: PlatFU copyAssetsFile < data/dcloud_url.json > to < /storage/emulated/0/Android/data/com.skyworth.libapp/cnc3ejE6/eje3cnc >
2021-04-29 14:17:30.017 6999-6999/com.skyworth.libapp E/DCloud_LOG: PlatformUtil.getResInputStream FileNotFoundException pFilePath=data/api.json
2021-04-29 14:17:30.018 6999-7399/com.skyworth.libapp E/DCloud_LOG: PlatformUtil.getResInputStream FileNotFoundException pFilePath=data/dcloud3.dat
2021-04-29 14:17:30.018 6999-6999/com.skyworth.libapp I/platform: java.lang.ClassNotFoundException: io.dcloud.common.util.net.http.LocalServer
2021-04-29 14:17:31.743 6999-7020/com.skyworth.libapp E/WeexCore: weex_js_connection.cpp:298,WeexJSConnection catch: spinWaitPeer timeout
2021-04-29 14:17:31.743 6999-7020/com.skyworth.libapp E/WeexCore: multi_process_and_so_initializer.cpp:47,JSFramwork init start sender is null
2021-04-29 14:17:31.743 6999-7020/com.skyworth.libapp E/WeexCore: IPCFutexPageQueue.cpp:66,do munmap
2021-04-29 14:17:31.743 6999-7366/com.skyworth.libapp E/WeexCore: weex_js_connection.cpp:185,IPCException server died spinWaitPeer timeout
2021-04-29 14:17:31.744 6999-7020/com.skyworth.libapp E/WeexCore: weex_js_connection.cpp:142,WeexJSConnection g_crashFileName: /data/user/0/com.skyworth.libapp/app_crash/crash_dump.log
2021-04-29 14:17:31.744 6999-7366/com.skyworth.libapp E/WeexCore: IPCFutexPageQueue.cpp:66,do munmap
2021-04-29 14:17:31.745 6999-7020/com.skyworth.libapp E/WeexCore: weex_js_connection.cpp:262,startupPie :1
2021-04-29 14:17:34.743 6999-7020/com.skyworth.libapp E/WeexCore: weex_js_connection.cpp:298,WeexJSConnection catch: spinWaitPeer timeout
2021-04-29 14:17:34.743 6999-7417/com.skyworth.libapp E/WeexCore: weex_js_connection.cpp:185,IPCException server died spinWaitPeer timeout
2021-04-29 14:17:34.743 6999-7020/com.skyworth.libapp E/WeexCore: multi_process_and_so_initializer.cpp:47,JSFramwork init start sender is null
2021-04-29 14:17:34.743 6999-7020/com.skyworth.libapp E/WeexCore: IPCFutexPageQueue.cpp:66,do munmap
2021-04-29 14:17:34.743 6999-7417/com.skyworth.libapp E/WeexCore: IPCFutexPageQueue.cpp:66,do munmap
2021-04-29 14:17:34.744 6999-7020/com.skyworth.libapp E/WeexCore: script_bridge_in_multi_process.cpp:1025,ScriptBridgeInMultiProcess DELETE
2021-04-29 14:17:34.748 6999-7020/com.skyworth.libapp E/WeexCore: script_side_in_multi_process.cpp:43,InitFramework sender is null
2021-04-29 14:17:34.749 6999-7020/com.skyworth.libapp E/weex: [WXBridgeManager] invokeInitFramework ExecuteJavaScript fail
2021-04-29 14:17:34.752 6999-7020/com.skyworth.libapp E/weex: [WXBridgeManager] invoke execJSService: framework.js uninitialized.
2021-04-29 14:17:34.753 6999-7020/com.skyworth.libapp E/weex: [WXBridgeManager] invoke execJSService: framework.js uninitialized.
9***@qq.com
你好,能具体说一下怎么解决的吗?
2021-06-02 11:12
6***@qq.com (作者)
回复 9***@qq.com: 定位不到具体的点,最后只能换数据库,so sad。
2021-06-03 15:35