再同一个离线的Android 工程中,HBX打包放入离线工程,程序运行显示正常,而使用npm run build:app-plus
导出的文件卡在启动页。
HBX版本(2.7.0 alpha)
npm:@dcloudio/uni-app-plus": "^2.0.0-alpha-27020200430003
备注:项目使用HBX创建,按照 https://ask.dcloud.net.cn/article/35750 转换为支持npm的项目。
Android studio 手机调试信息如下:
05/03 17:31:34: Launching 'app' on Xiaomi MI NOTE Pro.
$ adb shell am start -n "io.dcloud.HelloH5/io.dcloud.PandoraEntry" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Waiting for process to come online...
Connected to process 14989 on device 'xiaomi-mi_note_pro-2c63ea55'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@99c56a7
E/doForFeature: AdFeatureImpl onAppAttachBaseContext
W/System: ClassLoader referenced unknown path:
D/DexLoader: initTbsSettings - null
D/dexloader: Set base classLoader for DexClassLoader: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/io.dcloud.HelloH5-1/base.apk"],nativeLibraryDirectories=[/data/app/io.dcloud.HelloH5-1/lib/arm, /system/fake-libs, /data/app/io.dcloud.HelloH5-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]]
createDexClassLoader: /data/user/0/io.dcloud.HelloH5/app_tbs/core_share/tbs_sdk_extension_dex.jar
sync odex...new DexClassLoader
D/dexloader: createDexClassLoader result: dalvik.system.DexClassLoader[DexPathList[[zip file "/data/user/0/io.dcloud.HelloH5/app_tbs/core_share/tbs_sdk_extension_dex.jar"],nativeLibraryDirectories=[/data/user/0/io.dcloud.HelloH5/app_tbs/core_share, /system/lib, /vendor/lib]]]
I/crash_recorder: JNI_OnLoad at vm:0xf0f23230
starting registerNativeSignalAction...
E/platform: ClassNotFoundException io.dcloud.feature.weex.WeexDevtoolImpl registerReloadReceiver
E/DCloud_LOG: PlatformUtil.getResInputStream RuntimeException pFilePath=data/dcloud_control.xml
D/DexLoader: initTbsSettings - null
D/dexloader: Set base classLoader for DexClassLoader: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/io.dcloud.HelloH5-1/base.apk"],nativeLibraryDirectories=[/data/app/io.dcloud.HelloH5-1/lib/arm, /system/fake-libs, /data/app/io.dcloud.HelloH5-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]]
createDexClassLoader: /data/user/0/io.dcloud.HelloH5/app_tbs/core_share/tbs_jars_fusion_dex.jar
D/dexloader: sync odex...new DexClassLoader
W/System: ClassLoader referenced unknown path: /data/user/0/io.dcloud.HelloH5/app_tbs/share/plugins/com.tencent.qb.plugin.videodecode
D/dexloader: createDexClassLoader result: dalvik.system.DexClassLoader[DexPathList[[zip file "/data/user/0/io.dcloud.HelloH5/app_tbs/core_share/tbs_jars_fusion_dex.jar"],nativeLibraryDirectories=[/data/user/0/io.dcloud.HelloH5/app_tbs/core_share, /data/user/0/io.dcloud.HelloH5/app_tbs/share/plugins/com.tencent.qb.plugin.videodecode, /system/lib, /vendor/lib]]]
E/platform: ClassNotFoundException io.dcloud.feature.weex.WeexDevtoolImpl initDebugEnvironment
D/SoLoader: init start
adding system library source: /vendor/lib
adding system library source: /system/lib
adding application source: com.facebook.soloader.DirectorySoSource[root = /data/app/io.dcloud.HelloH5-1/lib/arm flags = 0]
D/SoLoader: adding backup source from : com.facebook.soloader.ApkSoSource[root = /data/data/io.dcloud.HelloH5/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/io.dcloud.HelloH5-1/lib/arm flags = 0]
Preparing SO source: com.facebook.soloader.ApkSoSource[root = /data/data/io.dcloud.HelloH5/lib-main flags = 1]
V/fb-UnpackingSoSource: locked dso store /data/user/0/io.dcloud.HelloH5/lib-main
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
V/fb-UnpackingSoSource: deps mismatch on deps store: regenerating
so store dirty: regenerating
I/PackageParser: com.tencent.x5sdk.res: compat added android.permission.WRITE_EXTERNAL_STORAGE android.permission.READ_PHONE_STATE
I/PackageParser: com.tencent.x5sdk.res: compat added android.permission.WRITE_EXTERNAL_STORAGE android.permission.READ_PHONE_STATE
D/ApkSoSource: not allowing consideration of lib/armeabi-v7a/libA3AEECD8.so: deferring to libdir
not allowing consideration of lib/armeabi-v7a/libAMapSDK_MAP_v7_1_0.so: deferring to libdir
not allowing consideration of lib/armeabi-v7a/libBaiduMapSDK_base_v5_4_1.so: deferring to libdir
D/ApkSoSource: not allowing consideration of lib/armeabi-v7a/libBaiduMapSDK_map_v5_4_1.so: deferring to libdir
not allowing consideration of lib/armeabi-v7a/libBaiduSpeechSDK.so: deferring to libdir
not allowing consideration of lib/armeabi-v7a/libJavaScriptCore.so: deferring to libdir
not allowing consideration of lib/armeabi-v7a/libTRAECodec.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
D/ApkSoSource: not allowing consideration of lib/armeabi-v7a/libgifimage.so: deferring to libdir
not allowing consideration of lib/armeabi-v7a/libijkffmpeg.so: deferring to libdir
not allowing consideration of lib/armeabi-v7a/libijkplayer.so: deferring to libdir
not allowing consideration of lib/armeabi-v7a/libijksdl.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/libliteavsdk.so: deferring to libdir
D/ApkSoSource: not allowing consideration of lib/armeabi-v7a/liblocSDK7b.so: deferring to libdir
not allowing consideration of lib/armeabi-v7a/libmsc.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/libnms.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/libsaturn.so: deferring to libdir
not allowing consideration of lib/armeabi-v7a/libso.so: deferring to libdir
D/ApkSoSource: not allowing consideration of lib/armeabi-v7a/libstlport_shared.so: deferring to libdir
not allowing consideration of lib/armeabi-v7a/libtobEmbedEncrypt.so: deferring to libdir
not allowing consideration of lib/armeabi-v7a/libtraeimp-rtmp.so: deferring to libdir
not allowing consideration of lib/armeabi-v7a/libtxffmpeg.so: deferring to libdir
not allowing consideration of lib/armeabi-v7a/libutility.so: deferring to libdir
not allowing consideration of lib/armeabi-v7a/libvad.dnn.so: deferring to libdir
not allowing consideration of lib/armeabi-v7a/libweexcore.so: deferring to libdir
D/ApkSoSource: 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
D/ApkSoSource: 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
V/fb-UnpackingSoSource: starting syncer worker
V/fb-UnpackingSoSource: releasing dso store lock for /data/user/0/io.dcloud.HelloH5/lib-main (from syncer thread)
not releasing dso store lock for /data/user/0/io.dcloud.HelloH5/lib-main (syncer thread started)
D/SoLoader: init finish: 4 SO sources prepared
init exiting
I/Adreno: QUALCOMM build : b6da14b, I47548ba842
Build Date : 11/14/16
OpenGL ES Shader Compiler Version: XE031.09.00.03
Local Branch :
Remote Branch : quic/LA.BF64.1.2.3_rb1.6
Remote Branch : NONE
Reconstruct Branch : NOTHING
I/art: Background sticky concurrent mark sweep GC freed 89548(10MB) AllocSpace objects, 33(680KB) LOS objects, 27% free, 19MB/26MB, paused 5.200ms total 216.698ms
E/weex: tryUseRunTimeApi ? false
I/art: Do partial code cache collection, code=26KB, data=29KB
I/art: After code cache collection, code=26KB, data=29KB
Increasing code cache capacity to 128KB
W/FileUtils: Failed to chmod(/data/user/0/com.tencent.mm/app_tbs): android.system.ErrnoException: chmod failed: EACCES (Permission denied)
W/FileUtils: Failed to chmod(/data/user/0/com.tencent.mm/app_tbs_common_share): android.system.ErrnoException: chmod failed: EACCES (Permission denied)
E/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
E/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
E/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
E/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
E/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
E/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
E/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
E/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
E/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
E/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
E/platform: ClassNotFoundException io.dcloud.feature.gcanvas.GCanvasRegister initPlugin
E/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
E/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
E/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
E/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
E/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
E/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
E/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
E/platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
E/doForFeature: AdFeatureImpl onAppCreate
E/DCLoudApplicationImpl: mApplication--=io.dcloud.application.DCloudApplication@a48dbd8
W/System.err: java.io.EOFException
W/System.err: at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:340)
at java.io.DataInputStream.readUTF(DataInputStream.java:589)
at java.io.DataInputStream.readUTF(DataInputStream.java:564)
at com.tencent.common.serverconfig.IPListDataManager.a(TbsJavaCore:141)
at com.tencent.common.serverconfig.IPListDataManager.getServerList(TbsJavaCore:468)
at com.tencent.common.serverconfig.IPListDataManager.getServerList(TbsJavaCore:510)
at com.tencent.common.serverconfig.a.a(TbsJavaCore:335)
at com.tencent.common.serverconfig.WupServerConfigsWrapper.needPullWupServer(TbsJavaCore:133)
at com.tencent.tbs.common.baseinfo.TbsWupManager.doMultiWupRequestForThirdParty(TbsJavaCore:395)
at com.tencent.tbs.common.baseinfo.TbsWupManager$1.run(TbsJavaCore:144)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:760)
at com.tencent.common.threadpool.QBThreadFactory$1.run(TbsJavaCore:47)
W/System: ClassLoader referenced unknown path: /system/app/WebViewGoogle/lib/arm
I/WebViewFactory: Loading com.google.android.webview version 61.0.3163.98 (code 316309850)
I/cr_LibraryLoader: Time to load native libraries: 3 ms (timestamps 2909-2912)
I/chromium: [INFO:library_loader_hooks.cc(136)] Chromium logging enabled: level = 0, default verbosity = 0
I/cr_LibraryLoader: Expected native library version number "61.0.3163.98", actual native library version number "61.0.3163.98"
I/Timeline: Timeline: Activity_launch_request time:1822931
W/System: ClassLoader referenced unknown path: /system/app/MiuiContentCatcher/lib/arm64
D/AccessibilityManager: current package=io.dcloud.HelloH5, accessibility manager mIsFinalEnabled=false, mOptimizeEnabled=true, mIsUiAutomationEnabled=false, mIsInterestedPackage=false
W/weex: app AvailMemory ---->>>1820
I/DCFileUtils: getAssetPath---------uni-jsframework.js
E/WXParams: setCrashFilePath: /data/user/0/io.dcloud.HelloH5/app_crash
E/weex: weexjss's Path is/data/app/io.dcloud.HelloH5-1/lib/arm/libweexjss.so
E/weex: JavaScriptCore's Path is/data/app/io.dcloud.HelloH5-1/lib/arm/libJavaScriptCore.so
findLibJscRealPath /data/app/io.dcloud.HelloH5-1/lib/arm/libJavaScriptCore.so
E/weex: getUseSingleProcess is running false
E/WeexCore: F:\weex\incubator-weex-19-9-23\incubator-weex-ec1ec238cf03e538e8d07a383befcb5fa2785518\weex_core\Source\android\utils\params_utils.cpp:198,g_use_single_process is false
E/weex: getLibJscPath is running /data/app/io.dcloud.HelloH5-1/lib/arm
E/WeexCore: F:\weex\incubator-weex-19-9-23\incubator-weex-ec1ec238cf03e538e8d07a383befcb5fa2785518\weex_core\Source\android\utils\params_utils.cpp:242,g_jscSoPath is /data/app/io.dcloud.HelloH5-1/lib/arm
E/weex: getLibJssPath is running /data/app/io.dcloud.HelloH5-1/lib/arm/libweexjss.so
E/WeexCore: F:\weex\incubator-weex-19-9-23\incubator-weex-ec1ec238cf03e538e8d07a383befcb5fa2785518\weex_core\Source\android\utils\params_utils.cpp:255,g_jssSoPath is /data/app/io.dcloud.HelloH5-1/lib/arm/libweexjss.so
E/WXParams: getCrashFilePath:/data/user/0/io.dcloud.HelloH5/app_crash
E/WeexCore: F:\weex\incubator-weex-19-9-23\incubator-weex-ec1ec238cf03e538e8d07a383befcb5fa2785518\weex_core\Source\android\utils\params_utils.cpp:267,g_crashFilePath is /data/user/0/io.dcloud.HelloH5/app_crash
E/weex: getLibIcuPath is running /system/usr/icu/icudt56l.dat
E/WeexCore: F:\weex\incubator-weex-19-9-23\incubator-weex-ec1ec238cf03e538e8d07a383befcb5fa2785518\weex_core\Source\android\utils\params_utils.cpp:280,g_jssIcuPath is /system/usr/icu/icudt56l.dat
E/weex: getLibJsbPath is running /data/data/io.dcloud.HelloH5/cache/weex/libs/weexjsb/armeabi-v7a/libweexjsb.so
getLibLdPath is running /data/app/io.dcloud.HelloH5-1/lib/arm:/system/fake-libs:/data/app/io.dcloud.HelloH5-1/base.apk!/lib/armeabi-v7a
E/WeexCore: F:\weex\incubator-weex-19-9-23\incubator-weex-ec1ec238cf03e538e8d07a383befcb5fa2785518\weex_core\Source\android\bridge\multi_process_and_so_initializer.cpp:38,MultiProcessAndSoInitializer IS IN init
F:\weex\incubator-weex-19-9-23\incubator-weex-ec1ec238cf03e538e8d07a383befcb5fa2785518\weex_core\Source\android\multiprocess\weex_js_connection.cpp:140,WeexJSConnection g_crashFileName: /data/user/0/io.dcloud.HelloH5/app_crash/crash_dump.log
E/WeexCore: F:\weex\incubator-weex-19-9-23\incubator-weex-ec1ec238cf03e538e8d07a383befcb5fa2785518\weex_core\Source\android\multiprocess\weex_js_connection.cpp:260,startupPie :1
E/ICU_PROXY_LOG(Java_ICUProxyUCharacter): getPropertyValueEnum:Invalid name: WSpace
E/X5InitImpl: onViewInitFinished is true
I/Adreno: QUALCOMM build : b6da14b, I47548ba842
Build Date : 11/14/16
OpenGL ES Shader Compiler Version: XE031.09.00.03
Local Branch :
Remote Branch : quic/LA.BF64.1.2.3_rb1.6
Remote Branch : NONE
Reconstruct Branch : NOTHING
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
I/WeexMgr: restartWeex--firstRun--true
E/Html5Plus-onCreate: 1588498305975
D/WebAppActivity: onCreate
I/DCloud_LOG: initPath isStreamSDK=false
I/DeviceInfo: sPackageName=io.dcloud.HelloH5;
sDeviceRootDir=/storage/emulated/0;
sBaseFsRootPath=/storage/emulated/0/Android/data/io.dcloud.HelloH5/;
sBaseFsRootFullPath=file:///storage/emulated/0/Android/data/io.dcloud.HelloH5/;
sBaseResRootFullPath=file:///android_asset/;
I/DCloud_LOG: createNewFile 0:/storage/emulated/0/Android/data/io.dcloud.HelloH5/apps/
createNewFile 0:/storage/emulated/0/Android/data/io.dcloud.HelloH5/sitemap/
I/DeviceInfo: old_app_modify_date=1588498189000
I/DeviceInfo: new_app_modify_date=1588498296000
App Modify Date=20200503 17:31:36.000;_ret=true
E/DCloud_LOG: channel:;ver:1.9.9.80137;ssdk:false;max:3;trim:0;dg:false
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
E/doForFeature: AdFeatureImpl pull
I/hoho: getIMEI ========= sOriginalImeiAndBakInfo null ======= sImei
E/platform: NoSuchMethodException android.telephony.TelephonyManager getImei2
I/hoho: getIMEI ========= sOriginalImeiAndBakInfo |867068021741466,867068021741466|020000000000|9abc3404122ea61a|0e87b64d781a48e9a87ee66a7f3c7e90| ======= sImei 867068021741466,867068021741466
D/download_manager: BaseActivity onCreate
D/: onRuntimePreCreate appid=Main_App
I/splash: WebAppActivity.onCreateSplash().appid=null this.appid=Main_App this=io.dcloud.PandoraEntryActivity@b2e186a
WebAppActivity.onCreateSplash().mSplashView is Null =true
I/WebAppActivity: onCreateSplash;intent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=io.dcloud.HelloH5/io.dcloud.PandoraEntryActivity (has extras) }
I/WebAppActivity: onCreateSplash hasSplash=true
onCreateSplash __splash_mode__=auto
E/platform: ClassNotFoundException io.dcloud.appstream.actionbar.StreamAppActionBarUtil checkNeedTitleView
D/WebAppActivity: checkAutoHide false
I/: onResume appid=Main_App
E/Html5Plus-onResume: 1588498306349
I/Main_Path_Main_App: onCreate appid=Main_App
onRuntimeCreate appid=Main_App
E/DCloud_LOG: fmgr no dp
E/DCloud_LOG: channel:;ver:1.9.9.80137;ssdk:false;max:3;trim:0;dg:false
E/Appmgr: appid config is wrong pExpectAppid=__UNI__4B9ED79;appid=
I/ylyl: AppMGr START_APP __UNI__4B9ED79
I/ylyl: startOneApp __UNI__4B9ED79
I/art: Do partial code cache collection, code=56KB, data=62KB
I/art: After code cache collection, code=54KB, data=62KB
Increasing code cache capacity to 256KB
Connected to process 15138 on device 'xiaomi-mi_note_pro-2c63ea55'.
s***@outlook.com (作者)
感谢,已解决,转的时候HBX创建的文件没有放到NPM项目的SRC
2020-05-09 13:44