hgl
hgl
  • 发布:2018-12-20 10:18
  • 更新:2018-12-20 11:32
  • 阅读:4026

20181212安卓离线SDK+HBuilderX 20181214 uniapp本地打包显示为白屏

分类:uni-app

我下载了20181212安卓离线SDK,把里面的www内容换为HBuilderX 20181214 uniapp 模版生成的本地打包文件,修改其中的manifest.json id为HelloH5,但是在android stduio虚拟机中(API 24)运行显示为白屏。

请问可能是什么原因?

运行日志

12/20 10:11:04: Launching app  
$ adb install-multiple -r -t /Users/user/Downloads/Android-SDK@1.9.9.55933_20181212/HBuilder-Hello/app/build/intermediates/instant-run-apk/debug/app-debug.apk /Users/user/Downloads/Android-SDK@1.9.9.55933_20181212/HBuilder-Hello/app/build/intermediates/split-apk/debug/slices/slice_4.apk /Users/user/Downloads/Android-SDK@1.9.9.55933_20181212/HBuilder-Hello/app/build/intermediates/split-apk/debug/slices/slice_9.apk /Users/user/Downloads/Android-SDK@1.9.9.55933_20181212/HBuilder-Hello/app/build/intermediates/split-apk/debug/slices/slice_3.apk /Users/user/Downloads/Android-SDK@1.9.9.55933_20181212/HBuilder-Hello/app/build/intermediates/split-apk/debug/slices/slice_0.apk /Users/user/Downloads/Android-SDK@1.9.9.55933_20181212/HBuilder-Hello/app/build/intermediates/split-apk/debug/slices/slice_1.apk /Users/user/Downloads/Android-SDK@1.9.9.55933_20181212/HBuilder-Hello/app/build/intermediates/split-apk/debug/slices/slice_2.apk /Users/user/Downloads/Android-SDK@1.9.9.55933_20181212/HBuilder-Hello/app/build/intermediates/split-apk/debug/dep/dependencies.apk /Users/user/Downloads/Android-SDK@1.9.9.55933_20181212/HBuilder-Hello/app/build/intermediates/split-apk/debug/slices/slice_8.apk /Users/user/Downloads/Android-SDK@1.9.9.55933_20181212/HBuilder-Hello/app/build/intermediates/split-apk/debug/slices/slice_5.apk /Users/user/Downloads/Android-SDK@1.9.9.55933_20181212/HBuilder-Hello/app/build/intermediates/split-apk/debug/slices/slice_6.apk /Users/user/Downloads/Android-SDK@1.9.9.55933_20181212/HBuilder-Hello/app/build/intermediates/split-apk/debug/slices/slice_7.apk   
Split APKs installed in 13 s 879 ms  
$ adb shell am start -n "io.dcloud.HBuilder/io.dcloud.PandoraEntry" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER  
Client not ready yet..Waiting for process to come online  
Waiting for process to come online  
Connected to process 22264 on device emulator-5554  
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.  
E/platform: ClassNotFoundException io.dcloud.appstream.actionbar.StreamAppActionBarUtil checkNeedTitleView  
D/WebAppActivity: checkAutoHide false  
I/: onResume appid=Main_App  
E/Html5Plus-onResume: 1545271878039  
I/Choreographer: Skipped 30 frames!  The application may be doing too much work on its main thread.  
D/EGL_emulation: eglMakeCurrent: 0xabd05480: ver 2 0 (tinfo 0xabd033f0)  
D/EGL_emulation: eglMakeCurrent: 0xabd05480: ver 2 0 (tinfo 0xabd033f0)  
I/SplashView: paint() before DeviceInfo.updateScreenInfo()  
I/SplashView: dispatchDraw.....  
D/EGL_emulation: eglMakeCurrent: 0xabd05480: ver 2 0 (tinfo 0xabd033f0)  
I/Main_Path_Main_App: onCreate appid=Main_App  
    onRuntimeCreate appid=Main_App  
E/DCloud_LOG: fmgr no dp  
E/DCloud_LOG: channel:io.dcloud.HBuilder;ver:1.9.9.55933;ssdk:false;max:3;trim:0;dg:false  
I/DeviceInfo: init() sWifiAddr=0.0.0.0;sDeviceSdkVer=24;sModel=Android SDK built for x86;sBrand=google;sVendor=Google;sLanguage=en_US;dpiX=480.0;dpiY=480.0;package=io.dcloud.HBuilder  
I/webapp: HelloH5 app competent=true  
    HelloH5 app fullScreen=false  
E/DCloud_LOG: PlatformUtil.getResInputStream FileNotFoundException pFilePath=data/dcloud_url.json  
I/DCloud_LOG: PlatFU copyAssetsFile < data/dcloud_url.json > to < /storage/emulated/0/Android/data/io.dcloud.HBuilder/cnc3ejE6/eje3cnc >  
E/DCloud_LOG: PlatformUtil.getResInputStream FileNotFoundException pFilePath=/data/api.json  
I/DCloud_LOG: Core onInit mode=null  
Connected to process 22330 on device emulator-5554
2018-12-20 10:18 负责人:无 分享
已邀请:
DCloud_Android_zl

DCloud_Android_zl

uniapp应用的不能使用HelloH5为id,必须为uniapp的id。
uniapp不能直接使用源码运行,需使用HBuilderX导出项目,复制到对应目录才能正常使用。
参考链接;http://ask.dcloud.net.cn/question/60254

hgl

hgl (作者)

改id已解决,谢谢

该问题目前已经被锁定, 无法添加新回复