jieme
jieme
  • 发布:2020-05-26 15:40
  • 更新:2020-06-01 17:10
  • 阅读:851

离线打包在自定义基座在雷电模拟器白屏,真机运行正常

分类:uni-app

运行SDK版本:Android-SDK@2.7.5.80183_20200519

离线打包的build.gradle配置文件ndk设置 abiFilters "armeabi-v7a", "arm64-v8a", "x86" ,

apply plugin: 'com.android.application'  

android {  
    compileSdkVersion 26  
    buildToolsVersion '28.0.3'  
    defaultConfig {  
        applicationId "com.hbuilder.abc.oa"  
        minSdkVersion 19  
        targetSdkVersion 23  
        versionCode 6  
        versionName "0.0.0.17"  
        multiDexEnabled true  
        ndk {  
            abiFilters "armeabi-v7a", "arm64-v8a", "x86"  
        }  
    }

在真机运行环境正常,看着官方文档说明雷电是arm架构那直接设置arm的就行,可三个全设置或者只设置arm架构的都白屏。该问题出现在使用V3编译后出现。
在雷电模拟器运行时错误日志如下:


05/26 15:23:04: Launching 'app' on meizu m2 note.  
$ adb shell am start -n "com.hbuilder.abc.oa/io.dcloud.PandoraEntry" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER  
Connected to process 3077 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.  
D/libnativebridge: PreInitializeNativeBridge name=zygote  
I/art: Late-enabling -Xcheck:jni  
V/libnb: enter native_bridge2_initialize /data/data/com.hbuilder.abc.oa/code_cache arm  
D/houdini: [3077] Initialize library(version: 5.0.7b_x.48396 RELEASE)... successfully.  
D/libnativebridge: denglibo call InitializeNativeBridge! ret=true  
W/Zygote: Slow operation: 1004ms so far, now at zygoteConnection.runOnce: postForkAndSpecialize  
E/platform: ClassNotFoundException io.dcloud.feature.weex.WeexDevtoolImpl registerReloadReceiver  
E/DCloud_LOG: PlatformUtil.getResInputStream RuntimeException pFilePath=data/dcloud_control.xml  
E/platform: ClassNotFoundException io.dcloud.feature.weex.WeexDevtoolImpl initDebugEnvironment  
D/SoLoader: init start  
D/SoLoader: adding system library source: /vendor/lib  
    adding system library source: /system/lib  
    adding application source: com.facebook.soloader.DirectorySoSource[root = /data/app/com.hbuilder.abc.oa-2/lib/arm flags = 0]  
D/SoLoader: adding backup source from : com.facebook.soloader.ApkSoSource[root = /data/data/com.hbuilder.abc.oa/lib-main flags = 1]  
    Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /system/lib flags = 2]  
D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /system/vendor/lib flags = 2]  
    Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /data/app/com.hbuilder.abc.oa-2/lib/arm flags = 0]  
    Preparing SO source: com.facebook.soloader.ApkSoSource[root = /data/data/com.hbuilder.abc.oa/lib-main flags = 1]  
V/fb-UnpackingSoSource: locked dso store /data/data/com.hbuilder.abc.oa/lib-main  
V/fb-UnpackingSoSource: deps mismatch on deps store: regenerating  
    so store dirty: regenerating  
D/ApkSoSource: not allowing consideration of lib/armeabi-v7a/libA3AEECD8.so: deferring to libdir  
    not allowing consideration of lib/armeabi-v7a/libJavaScriptCore.so: deferring to libdir  
    not allowing consideration of lib/armeabi-v7a/libWTF.so: deferring to libdir  
    not allowing consideration of lib/armeabi-v7a/libc++_shared.so: deferring to libdir  
    not allowing consideration of lib/armeabi-v7a/libgetuiext3.so: deferring to libdir  
    not allowing consideration of lib/armeabi-v7a/libgifimage.so: deferring to libdir  
    not allowing consideration of lib/armeabi-v7a/libimagepipeline.so: deferring to libdir  
    not allowing consideration of lib/armeabi-v7a/liblamemp3.so: deferring to libdir  
    not allowing consideration of lib/armeabi-v7a/libnative-filters.so: deferring to libdir  
    not allowing consideration of lib/armeabi-v7a/libnative-imagetranscoder.so: deferring to libdir  
    not allowing consideration of lib/armeabi-v7a/libpl_droidsonroids_gif.so: deferring to libdir  
    not allowing consideration of lib/armeabi-v7a/libso.so: deferring to libdir  
    not allowing consideration of lib/armeabi-v7a/libutility.so: deferring to libdir  
    not allowing consideration of lib/armeabi-v7a/libweexcore.so: deferring to libdir  
    not allowing consideration of lib/armeabi-v7a/libweexjsb.so: deferring to libdir  
    not allowing consideration of lib/armeabi-v7a/libweexjss.so: deferring to libdir  
    not allowing consideration of lib/armeabi-v7a/libweexjst.so: deferring to libdir  
    not allowing consideration of lib/armeabi-v7a/libweibosdkcore.so: deferring to libdir  
    not allowing consideration of lib/armeabi-v7a/libwind.so: deferring to libdir  
V/fb-UnpackingSoSource: regenerating DSO store com.facebook.soloader.ApkSoSource  
V/fb-UnpackingSoSource: Finished regenerating DSO store com.facebook.soloader.ApkSoSource  
    starting syncer worker  
V/fb-UnpackingSoSource: releasing dso store lock for /data/data/com.hbuilder.abc.oa/lib-main (from syncer thread)  
    not releasing dso store lock for /data/data/com.hbuilder.abc.oa/lib-main (syncer thread started)  
D/SoLoader: init finish: 4 SO sources prepared  
    init exiting  
I/weex: get default settings weexjsb : 0.0.0.17  
V/libnb: enter native_bridge2_isSupported /data/app/com.hbuilder.abc.oa-2/lib/arm/libc++_shared.so  
    enter native_bridge2_loadLibrary /data/app/com.hbuilder.abc.oa-2/lib/arm/libc++_shared.so  
D/houdini: [3115] Added shared library /data/app/com.hbuilder.abc.oa-2/lib/arm/libc++_shared.so for ClassLoader by Native Bridge.  
V/libnb: enter native_bridge2_getTrampoline JNI_OnLoad, trampoline_addr 0x0  
    enter native_bridge2_isSupported /data/app/com.hbuilder.abc.oa-2/lib/arm/libweexcore.so  
    enter native_bridge2_loadLibrary /data/app/com.hbuilder.abc.oa-2/lib/arm/libweexcore.so  
D/houdini: [3115] Added shared library /data/app/com.hbuilder.abc.oa-2/lib/arm/libweexcore.so for ClassLoader by Native Bridge.  
V/libnb: enter native_bridge2_getTrampoline JNI_OnLoad, trampoline_addr 0xb2c9dfc4  
E/weex: tryUseRunTimeApi ? false  
W/weex: app AvailMemory ---->>>760  
I/DCFileUtils: getAssetPath---------uni-jsframework-dev.js  
E/WXParams: setCrashFilePath: /data/data/com.hbuilder.abc.oa/app_crash  
E/weex: weexjss's Path is/data/app/com.hbuilder.abc.oa-2/lib/arm/libweexjss.so  
E/weex: JavaScriptCore's Path is/data/app/com.hbuilder.abc.oa-2/lib/arm/libJavaScriptCore.so  
    findLibJscRealPath /data/app/com.hbuilder.abc.oa-2/lib/arm/libJavaScriptCore.so  
E/weex: getUseSingleProcess is running false  
E/WeexCore: params_utils.cpp:198,g_use_single_process is false   
E/weex: getLibJscPath is running /data/app/com.hbuilder.abc.oa-2/lib/arm  
E/WeexCore: params_utils.cpp:242,g_jscSoPath is /data/app/com.hbuilder.abc.oa-2/lib/arm   
E/weex: getLibJssPath is running /data/app/com.hbuilder.abc.oa-2/lib/arm/libweexjss.so  
E/WeexCore: params_utils.cpp:255,g_jssSoPath is /data/app/com.hbuilder.abc.oa-2/lib/arm/libweexjss.so   
E/WXParams: getCrashFilePath:/data/data/com.hbuilder.abc.oa/app_crash  
E/WeexCore: params_utils.cpp:267,g_crashFilePath is /data/data/com.hbuilder.abc.oa/app_crash   
E/weex: getLibIcuPath is running /system/usr/icu/icudt53l.dat  
E/WeexCore: params_utils.cpp:280,g_jssIcuPath is /system/usr/icu/icudt53l.dat   
E/weex: getLibJsbPath is running /data/data/com.hbuilder.abc.oa/cache/weex/libs/weexjsb/armeabi-v7a/libweexjsb.so  
    getLibLdPath is running /data/app/com.hbuilder.abc.oa-2/lib/arm:/vendor/lib:/system/lib  
E/WeexCore: setDebugMode  2   
E/WeexCore: multi_process_and_so_initializer.cpp:38,MultiProcessAndSoInitializer IS IN init  
E/WeexCore: weex_js_connection.cpp:140,WeexJSConnection g_crashFileName: /data/data/com.hbuilder.abc.oa/app_crash/crash_dump.log  
E/WeexCore: weex_js_connection.cpp:260,startupPie :1  
I/art: Background sticky concurrent mark sweep GC freed 122014(5MB) AllocSpace objects, 35(2MB) LOS objects, 18% free, 21MB/26MB, paused 3.292ms total 118.709ms  
E/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor  
    java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor  
E/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor  
    ClassNotFoundException io.dcloud.feature.weex_livepusher.LivePusherPlugin initPlugin  
    ClassNotFoundException io.dcloud.feature.weex_media.VideoPlayerPlugin initPlugin  
    java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor  
    java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor  
E/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor  
    java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor  
    ClassNotFoundException io.dcloud.feature.gcanvas.GCanvasRegister initPlugin  
E/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor  
    ClassNotFoundException io.dcloud.feature.weex_ad.DCWXAdPlugin initPlugin  
    java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor  
E/DCLoudApplicationImpl: mApplication--=io.dcloud.application.DCloudApplication@26f98493  
I/WebViewFactory: Loading com.android.webview version 39 (V9.5.2.0.LACCNFA-x86) (code 300007)  
I/LibraryLoader: Time to load native libraries: 453 ms (timestamps 4341-4794)  
    Expected native library version number "",actual native library version number ""  
W/art: Attempt to remove local handle scope entry from IRT, ignoring  
D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true  
I/gralloc_x86: --denglibo-- fallback_init, force return by denglibo  
I/HostConnection: HostConnection::HostConnection: pid=3077, tid=3077, this=0xb3ec8880  
I/: fastpipe: Connect success  
D/HostConnection: HostRPC::connect sucess: app=com.hbuilder.abc.oa, pid=3077, tid=3077, this=0xb3fdf000  
D/HostConnection: queryAndSetGLESMaxVersion select gles-version: 3.0 hostGLVersion:43 process:com.hbuilder.abc.oa  
I/: fastpipe: Connect success  
D/HostConnection: recv ProcessPuidReply name=com.hbuilder.abc.oa puid=9 g_u64CapsFlag=1  
D/Atlas: Validating map...  
E/WeexCore: weex_js_connection.cpp:296,WeexJSConnection catch: spinWaitPeer timeout  
E/WeexCore: weex_js_connection.cpp:183,IPCException server died spinWaitPeer timeout  
E/WeexCore: multi_process_and_so_initializer.cpp:47,JSFramwork init start sender is null  
E/WeexCore: IPCFutexPageQueue.cpp:66,do munmap  
E/WeexCore: weex_js_connection.cpp:140,WeexJSConnection g_crashFileName: /data/data/com.hbuilder.abc.oa/app_crash/crash_dump.log  
E/WeexCore: weex_js_connection.cpp:260,startupPie :1  
E/X5InitImpl:  onViewInitFinished is false  
I/HostConnection: HostConnection::HostConnection: pid=3077, tid=3124, this=0xae4ad380  
I/: fastpipe: Connect success  
D/HostConnection: HostRPC::connect sucess: app=com.hbuilder.abc.oa, pid=3077, tid=3124, this=0xae4ec000  
    queryAndSetGLESMaxVersion select gles-version: 3.0 hostGLVersion:43 process:com.hbuilder.abc.oa  
I/OpenGLRenderer: Initialized EGL, version 1.4  
I/EGL_adreno: eglCreateContext request GLES major-version=2  
D/EGL_adreno: eglCreateContext: 0xae434e80: maj 3 min 0 rcv 3  
D/EGL_adreno: eglMakeCurrent: 0xae434e80: ver 3 0 (tinfo 0xae4394c0)  
D/HostConnection: ExtendedRCEncoderContext GL_VERSION return OpenGL ES 3.0  
D/OpenGLRenderer: Enabling debug mode 0  
E/EGL_adreno: tid 3124: eglSurfaceAttrib(1319): error 0x3009 (EGL_BAD_MATCH)  
W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xae435980, error=EGL_BAD_MATCH  
D/EGL_adreno: eglMakeCurrent: 0xae434e80: ver 3 0 (tinfo 0xae4394c0)  
I/WeexMgr: restartWeex--firstRun--true  
E/Html5Plus-onCreate: 1590477822732  
D/WebAppActivity: onCreate  
D/DCloud_LOG: initPath isStreamSDK=false  
D/DeviceInfo: sPackageName=com.hbuilder.abc.oa;  
    sDeviceRootDir=/storage/emulated/0;  
    sBaseFsRootPath=/storage/emulated/0/Android/data/com.hbuilder.abc.oa/;  
    sBaseFsRootFullPath=file:///storage/emulated/0/Android/data/com.hbuilder.abc.oa/;  
    sBaseResRootFullPath=file:///android_asset/;  
D/DCloud_LOG: createNewFile 0:/storage/emulated/0/Android/data/com.hbuilder.abc.oa/apps/  
    createNewFile 0:/storage/emulated/0/Android/data/com.hbuilder.abc.oa/sitemap/  
D/DeviceInfo: old_app_modify_date=1590477087000  
D/DeviceInfo: new_app_modify_date=1590477792000  
    App Modify Date=20200526 15:23:12.000;_ret=true  
E/DCloud_LOG: channel:;ver:1.9.9.80183;ssdk:false;max:3;trim:0;dg:true  
W/System.err: java.lang.Exception: denglibo Toast callstack! strTip=当前应用运行在自定义调试基座中,发布正式版请打包时不要勾选自定义调试基座。  
W/System.err:     at android.widget.Toast.show(Toast.java:127)  
        at io.dcloud.c.onCreate(DCloudReceiverActivity.java:44)  
        at io.dcloud.b.onCreate(BaseActivity.java:64)  
        at io.dcloud.WebAppActivity.onCreate(WebAppActivity.java:124)  
        at android.app.Activity.performCreate(Activity.java:5990)  
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)  
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)  
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)  
        at android.app.ActivityThread.access$800(ActivityThread.java:151)  
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)  
        at android.os.Handler.dispatchMessage(Handler.java:102)  
        at android.os.Looper.loop(Looper.java:135)  
        at android.app.ActivityThread.main(ActivityThread.java:5254)  
        at java.lang.reflect.Method.invoke(Native Method)  
        at java.lang.reflect.Method.invoke(Method.java:372)  
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)  
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)  
W/ImageLoader: memoryCache() and memoryCacheSize() calls overlap each other  
W/ImageLoader: memoryCache() and memoryCacheSize() calls overlap each other  
    discCache(), discCacheSize() and discCacheFileCount calls overlap each other  
D/hoho: getIMEI ========= sOriginalImeiAndBakInfo null ======= sImei   
E/WeexCore: weex_js_connection.cpp:183,IPCException server died spinWaitPeer timeout  
E/WeexCore: weex_js_connection.cpp:296,WeexJSConnection catch: spinWaitPeer timeout  
E/WeexCore: multi_process_and_so_initializer.cpp:47,JSFramwork init start sender is null  
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/platform: NoSuchMethodException android.telephony.TelephonyManager getImei2  
E/TelephonyUtil: getIMEI exception==length=1; index=1  
D/hoho: getIMEI ========= sOriginalImeiAndBakInfo ||008165581043|05b4cc227bb5a0fc|542877af79c447f3870efb0ca1d46107| ======= sImei 008165581043  
D/download_manager: BaseActivity onCreate  
D/: onRuntimePreCreate appid=Main_App  
D/splash: WebAppActivity.onCreateSplash().appid=null this.appid=Main_App this=io.dcloud.PandoraEntryActivity@29fadaa8  
    WebAppActivity.onCreateSplash().mSplashView is Null =true  
D/WebAppActivity: onCreateSplash;intent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.hbuilder.abc.oa/io.dcloud.PandoraEntryActivity (has extras) }  
    onCreateSplash hasSplash=true  
D/WebAppActivity: onCreateSplash __splash_mode__=auto  
E/platform: ClassNotFoundException io.dcloud.appstream.actionbar.StreamAppActionBarUtil checkNeedTitleView  
D/WebAppActivity: checkAutoHide false  
D/: onResume appid=Main_App  
E/Html5Plus-onResume: 1590477826979  
I/Choreographer: Skipped 255 frames!  The application may be doing too much work on its main thread.  
E/EGL_adreno: tid 3124: eglSurfaceAttrib(1319): error 0x3009 (EGL_BAD_MATCH)  
W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xae4359a0, error=EGL_BAD_MATCH  
D/EGL_adreno: eglMakeCurrent: 0xae434e80: ver 3 0 (tinfo 0xae4394c0)  
D/Main_Path_Main_App: onCreate appid=Main_App  
    onRuntimeCreate appid=Main_App  
V/WebViewChromiumFactoryProvider: Binding Chromium to main looper Looper (main, tid 1) {1a5354bb}  
I/LibraryLoader: Expected native library version number "",actual native library version number ""  
I/chromium: [INFO:library_loader_hooks.cc(104)] Chromium logging enabled: level = 0, default verbosity = 0  
I/BrowserStartupController: Initializing chromium process, singleProcess=true  
W/art: Attempt to remove local handle scope entry from IRT, ignoring  
W/chromium: [WARNING:resource_bundle.cc(304)] locale_file_path.empty()  
I/chromium: [INFO:aw_browser_main_parts.cc(65)] Load from apk succesful, fd=55 off=1319120 len=3050  
I/chromium: [INFO:aw_browser_main_parts.cc(78)] Loading webviewchromium.pak from, fd:56 off:229484 len:1089587  
W/AudioManagerAndroid: Requires BLUETOOTH permission  
I/EGL_adreno: eglCreateContext request GLES major-version=2  
D/EGL_adreno: eglCreateContext: 0xb3f1b2e0: maj 3 min 0 rcv 3  
D/EGL_adreno: eglMakeCurrent: 0xb3f1b2e0: ver 3 0 (tinfo 0xb3ff7610)  
D/HostConnection: ExtendedRCEncoderContext GL_VERSION return OpenGL ES 3.0  
D/HostConnection: ExtendedRCEncoderContext GL_VERSION return OpenGL ES 3.0  
D/HostConnection: ExtendedRCEncoderContext GL_VERSION return OpenGL ES 3.0  
W/chromium: [WARNING:data_reduction_proxy_settings.cc(331)] SPDY proxy OFF at startup  
W/art: Verification of int com.android.org.chromium.content.browser.accessibility.AccessibilityInjector.getAxsUrlParameterValue() took 226.194ms  
W/art: Attempt to remove local handle scope entry from IRT, ignoring  
W/AwContents: onDetachedFromWindow called when already detached. Ignoring  
W/ScreenOrientationListener: Removing an inexistent observer!  
E/DCloud_LOG: fmgr no dp  
E/DCloud_LOG: channel:;ver:1.9.9.80183;ssdk:false;max:3;trim:0;dg:true  
I/DeviceInfo: init() sWifiAddr=172.16.2.15;sDeviceSdkVer=22;sModel=m2 note;sBrand=meizu;sVendor=meizu;sLanguage=zh-CN;dpiX=480.0;dpiY=480.0;package=com.hbuilder.abc.oa  
I/webapp: __UNI__BCC5941 app competent=false  
I/webapp: __UNI__BCC5941 app fullScreen=false  
E/DCloud_LOG: PlatformUtil.getResInputStream FileNotFoundException pFilePath=data/api.json  
D/miniserver: 13131 serversocket running...  
I/DCloud_LOG: Core onInit mode=null  
I/DCloud_LOG: Core onInit mCoreListener=null  
I/DCloud_LOG: onStart appid=__UNI__BCC5941;intentArgs=  
D/EGL_adreno: eglMakeCurrent: 0xae434e80: ver 3 0 (tinfo 0xae4394c0)  
I/Choreographer: Skipped 122 frames!  The application may be doing too much work on its main thread.  
D/SplashView: dispatchDraw.....  
D/EGL_adreno: eglMakeCurrent: 0xae434e80: ver 3 0 (tinfo 0xae4394c0)  
Connected to process 3167 on device 'emulator-5554'.  
2020-05-26 15:40 负责人:DCloud_Android_zl 分享
已邀请:
41832143@qq.com

41832143@qq.com

我也和你一样

DCloud_App_Array

DCloud_App_Array

请先云端打包,注意勾选cpu类型x86(雷电3.x必须要x86,雷电4.x兼容不包含x86)
如果云端打包可正常运行,则说明是打包配置的问题。

要回复问题请先登录注册