uniapp离线打包出现白屏报错

uniapp离线打包出现白屏报错

E/WeexCore: weex_js_connection.cpp:185,IPCException server died spinWaitPeer timeout
E/WeexCore: weex_js_connection.cpp:298,WeexJSConnection catch: spinWaitPeer timeout
multi_process_and_so_initializer.cpp:47,JSFramwork init start sender is null
IPCFutexPageQueue.cpp:66,do munmap
E/WeexCore: IPCFutexPageQueue.cpp:66,do munmap
E/WeexCore: weex_js_connection.cpp:142,WeexJSConnection g_crashFileName: /data/user/0/com.example.test/app_crash/crash_dump.log
E/WeexCore: weex_js_connection.cpp:262,startupPie :1
I/om.example.tes: Compiler allocated 4218KB to compile void android.view.ViewRootImpl.performTraversals()
E/WeexCore: weex_js_connection.cpp:298,WeexJSConnection catch: spinWaitPeer timeout
multi_process_and_so_initializer.cpp:47,JSFramwork init start sender is null
E/WeexCore: weex_js_connection.cpp:185,IPCException server died spinWaitPeer timeout
E/WeexCore: IPCFutexPageQueue.cpp:66,do munmap
E/WeexCore: IPCFutexPageQueue.cpp:66,do munmap
E/WeexCore: script_side_in_multi_process.cpp:43,InitFramework sender is null
E/weex: [WXBridgeManager] invokeInitFramework ExecuteJavaScript fail
E/weex: [WXBridgeManager] invoke execJSService: framework.js uninitialized.
[WXBridgeManager] invoke execJSService: framework.js uninitialized.
E/Html5Plus-SplashClosed: 1623057775857
E/Main_Path: closeSplashScreen0 appid=__UNI__80C7621;true;closeSplashDid=false
I/ViewRootImpl@badc54d[PandoraEntryActivity]: Relayout returned: old=(0,0,1080,2220) new=(0,0,1080,2220) req=(1080,2220)0 dur=14 res=0x1 s={true 480480542720} ch=false
I/ViewRootImpl@badc54d[PandoraEntryActivity]: MSG_RESIZED: frame=(0,0,1080,2220) ci=(0,72,0,144) vi=(0,72,0,144) or=1

我这里用的Android Studio版本是4.2.1

uniapp离线打包出现白屏报错_第1张图片
uniapp离线打包出现白屏报错_第2张图片

我这版本的Android Studio创建默认空白项目的targetSdkVersion 是30,把argetSdkVersion改到 28就可以了

uniapp离线打包出现白屏报错_第3张图片

成功运行!

uniapp离线打包出现白屏报错_第4张图片

构建发布版本apk的时候会报下面这个错

uniapp离线打包出现白屏报错_第5张图片

在android节点下面加个lintOptions节点,然后就能正常打包了

uniapp离线打包出现白屏报错_第6张图片

你可能感兴趣的:(笔记,uniapp,uniapp)