1***@qq.com
1***@qq.com
  • 发布:2020-07-09 14:54
  • 更新:2023-06-02 17:09
  • 阅读:3673

uni app 原生安卓插件开发运行到首页就卡住了

分类:HBuilderX


就这样
Andriod Studio


dclodu_uniplugins.json
Appid 部分


以下是运行错误消息,(运行他本事自带的Demo也是这些,不知道这是)

07/09 14:42:23: Launching 'app' on UBX i6200A.
$ adb shell am start -n "com.HBuilder.integrate/io.dcloud.PandoraEntry" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 6104 on device 'ubx-i6200a-7696108'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/DCloud_LOG: initPath isStreamSDK=false
W/ContextImpl: Failed to ensure directory: /storage/sdcard1/Android/data/com.HBuilder.integrate/cache
I/DeviceInfo: sPackageName=com.HBuilder.integrate;
sDeviceRootDir=/storage/emulated/0;
sBaseFsRootPath=/storage/emulated/0/Android/data/com.HBuilder.integrate/;
sBaseFsRootFullPath=file:///storage/emulated/0/Android/data/com.HBuilder.integrate/;
sBaseResRootFullPath=file:///android_asset/;
I/DCloud_LOG: createNewFile 0:/storage/emulated/0/Android/data/com.HBuilder.integrate/apps/
createNewFile 0:/storage/emulated/0/Android/data/com.HBuilder.integrate/sitemap/
E/platform: ClassNotFoundException io.dcloud.feature.x5.X5InitImpl init
E/platform: ClassNotFoundException io.dcloud.feature.weex.WeexDevtoolImpl registerReloadReceiver
E/platform: ClassNotFoundException io.dcloud.feature.weex.WeexDevtoolImpl initDebugEnvironment
D/SoLoader: init start
adding system library source: /vendor/lib
D/SoLoader: adding system library source: /system/lib
adding application source: com.facebook.soloader.DirectorySoSource[root = /data/app/com.HBuilder.integrate-1/lib/arm flags = 0]
D/SoLoader: adding backup source from : com.facebook.soloader.ApkSoSource[root = /data/data/com.HBuilder.integrate/lib-main flags = 1]
D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /system/lib flags = 2]
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.integrate-1/lib/arm flags = 0]
Preparing SO source: com.facebook.soloader.ApkSoSource[root = /data/data/com.HBuilder.integrate/lib-main flags = 1]
V/fb-UnpackingSoSource: locked dso store /data/data/com.HBuilder.integrate/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
D/ApkSoSource: 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/libgifimage.so: deferring to libdir
not allowing consideration of lib/armeabi-v7a/libimagepipeline.so: deferring to libdir
D/ApkSoSource: 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/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
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/data/com.HBuilder.integrate/lib-main (from syncer thread)
not releasing dso store lock for /data/data/com.HBuilder.integrate/lib-main (syncer thread started)
D/SoLoader: init finish: 4 SO sources prepared
init exiting
W/linker: libc++_shared.so: unused DT entry: type 0x6ffffffe arg 0x2b994
libc++_shared.so: unused DT entry: type 0x6fffffff arg 0x2
W/linker: libweexcore.so: unused DT entry: type 0x6ffffffe arg 0x39c04
libweexcore.so: unused DT entry: type 0x6fffffff arg 0x3
E/weex: tryUseRunTimeApi ? false
E/platform: ClassNotFoundException io.dcloud.feature.weex_amap.AMapPluginImpl 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
ClassNotFoundException io.dcloud.feature.weex_livepusher.LivePusherPlugin initPlugin
E/platform: ClassNotFoundException io.dcloud.feature.weex_media.VideoPlayerPlugin initPlugin
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
E/platform: 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
E/platform: 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@16862ad1
I/WebViewFactory: Loading com.android.webview version 51.0.2704.106 (code 1)
I/cr_LibraryLoader: Time to load native libraries: 1 ms (timestamps 7944-7945)
Expected native library version number "51.0.2704.106", actual native library version number "51.0.2704.106"
I/Timeline: Timeline: Activity_launch_request id:com.HBuilder.integrate time:65347965
I/ViewRootImpl: CPU Rendering VSync enable = true
D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
D/Atlas: Validating map...
I/Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build: Nondeterministic_AU_msm8916_32_LA.BR.1.2.4_RB1release_AU (I385e983e35)
OpenGL ES Shader Compiler Version: E031.25.03.04
Build Date: 02/13/16 Sat
Local Branch: mybranch18237875
Remote Branch: quic/LA.BR.1.2.4_rb1.36
Local Patches: NONE
Reconstruct Branch: NOTHING
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Enabling debug mode 0
W/weex: app AvailMemory ---->>>419
I/DCFileUtils: getAssetPath---------uni-jsframework.js
I/WeexMgr: restartWeex--firstRun--true
E/Html5Plus-onCreate: 1594276964321
D/WebAppActivity: onCreate
I/DeviceInfo: old_app_modify_date=1594275937000
E/WXParams: setCrashFilePath: /data/data/com.HBuilder.integrate/app_crash
E/weex: weexjss's Path is/data/app/com.HBuilder.integrate-1/lib/arm/libweexjss.so
E/weex: JavaScriptCore's Path is/data/app/com.HBuilder.integrate-1/lib/arm/libJavaScriptCore.so
findLibJscRealPath /data/app/com.HBuilder.integrate-1/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.integrate-1/lib/arm
E/WeexCore: params_utils.cpp:242,g_jscSoPath is /data/app/com.HBuilder.integrate-1/lib/arm
E/weex: getLibJssPath is running /data/app/com.HBuilder.integrate-1/lib/arm/libweexjss.so
E/WeexCore: params_utils.cpp:255,g_jssSoPath is /data/app/com.HBuilder.integrate-1/lib/arm/libweexjss.so
E/WXParams: getCrashFilePath:/data/data/com.HBuilder.integrate/app_crash
E/WeexCore: params_utils.cpp:267,g_crashFilePath is /data/data/com.HBuilder.integrate/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.integrate/cache/weex/libs/weexjsb/armeabi-v7a/libweexjsb.so
getLibLdPath is running /data/app/com.HBuilder.integrate-1/lib/arm:/vendor/lib:/system/lib
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.integrate/app_crash/crash_dump.log
E/WeexCore: weex_js_connection.cpp:260,startupPie :1
I/DeviceInfo: new_app_modify_date=1594276948000
I/DeviceInfo: App Modify Date=20200709 14:42:28.000;_ret=true
E/DCloud_LOG: channel:;ver:1.9.9.80255;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
W/ContextImpl: Failed to ensure directory: /storage/sdcard1/Android/data/com.HBuilder.integrate/cache
I/hoho: getIMEI ========= sOriginalImeiAndBakInfo null ======= sImei
E/platform: NoSuchMethodException android.telephony.TelephonyManager getImei2
E/TelephonyUtil: getIMEI exception==length=1; index=1
W/System.err: java.lang.SecurityException: WifiService: Neither user 10082 nor current process has android.permission.ACCESS_WIFI_STATE.
at android.os.Parcel.readException(Parcel.java:1546)
at android.os.Parcel.readException(Parcel.java:1499)
at android.net.wifi.IWifiManager$Stub$Proxy.getConnectionInfo(IWifiManager.java:1005)
at android.net.wifi.WifiManager.getConnectionInfo(WifiManager.java:1182)
at io.dcloud.common.util.TelephonyUtil.getIMEI(TelephonyUtil.java:201)
at io.dcloud.feature.ad.dcloud.ADHandler.pull(ADHandler.java:118)
at io.dcloud.feature.ad.dcloud.AdFeatureImpl.doForFeature(AdFeatureImpl.java:101)
at io.dcloud.feature.ad.AdFeatureImplMgr.doForFeature(AdFeatureImplMgr.java:24)
at io.dcloud.a.a(AdMgr.java:38)
at io.dcloud.b.checkAndRequestStoragePermission(BaseActivity.java:195)
at io.dcloud.WebAppActivity.checkAndRequestStoragePermission(WebAppActivity.java:82)
at io.dcloud.b.onCreate(BaseActivity.java:129)
at io.dcloud.WebAppActivity.onCreate(WebAppActivity.java:124)
W/System.err: at android.app.Activity.performCreate(Activity.java:6034)
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:902)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:697)
W/ContextImpl: Failed to ensure directory: /storage/sdcard1/Android/data/com.HBuilder.integrate/cache
W/System.err: java.lang.SecurityException: WifiService: Neither user 10082 nor current process has android.permission.ACCESS_WIFI_STATE.
W/System.err: at android.os.Parcel.readException(Parcel.java:1546)
at android.os.Parcel.readException(Parcel.java:1499)
at android.net.wifi.IWifiManager$Stub$Proxy.getWifiEnabledState(IWifiManager.java:1045)
at android.net.wifi.WifiManager.getWifiState(WifiManager.java:1344)
at android.net.wifi.WifiManager.isWifiEnabled(WifiManager.java:1356)
at io.dcloud.common.adapter.util.DeviceInfo.getMac(DeviceInfo.java:156)
at io.dcloud.feature.ad.dcloud.ADHandler.d(ADHandler.java:424)
at io.dcloud.feature.ad.dcloud.ADHandler.pull(ADHandler.java:139)
at io.dcloud.feature.ad.dcloud.AdFeatureImpl.doForFeature(AdFeatureImpl.java:101)
at io.dcloud.feature.ad.AdFeatureImplMgr.doForFeature(AdFeatureImplMgr.java:24)
at io.dcloud.a.a(AdMgr.java:38)
at io.dcloud.b.checkAndRequestStoragePermission(BaseActivity.java:195)
at io.dcloud.WebAppActivity.checkAndRequestStoragePermission(WebAppActivity.java:82)
at io.dcloud.b.onCreate(BaseActivity.java:129)
at io.dcloud.WebAppActivity.onCreate(WebAppActivity.java:124)
at android.app.Activity.performCreate(Activity.java:6034)
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)
W/System.err: 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:902)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:697)
I/hoho: getIMEI ========= sOriginalImeiAndBakInfo |||4852d2a6704adfe2|2f62469f1cf24692a25bf75483c3f879| ======= sImei 4852d2a6704adfe2
D/download_manager: BaseActivity onCreate
D/: onRuntimePreCreate appid=Main_App
I/splash: WebAppActivity.onCreateSplash().appid=null this.appid=Main_App this=io.dcloud.PandoraEntryActivity@1df17d19
WebAppActivity.onCreateSplash().mSplashView is Null =true
I/WebAppActivity: onCreateSplash;intent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.HBuilder.integrate/io.dcloud.PandoraEntryActivity (has extras) }
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: 1594276964697
I/ViewRootImpl: CPU Rendering VSync enable = true
I/Main_Path_Main_App: onCreate appid=Main_App
onRuntimeCreate appid=Main_App
V/WebViewChromiumFactoryProvider: Binding Chromium to main looper Looper (main, tid 1) {1ce9d405}
I/cr_LibraryLoader: Expected native library version number "51.0.2704.106", actual native library version number "51.0.2704.106"
I/chromium: [INFO:library_loader_hooks.cc(143)] Chromium logging enabled: level = 0, default verbosity = 0
I/cr_BrowserStartup: Initializing chromium process, singleProcess=true
E/ApkAssets: Error while loading asset assets/natives_blob_64.bin: java.io.FileNotFoundException: assets/natives_blob_64.bin
Error while loading asset assets/snapshot_blob_64.bin: java.io.FileNotFoundException: assets/snapshot_blob_64.bin
W/ContextImpl: Failed to ensure directory: /storage/sdcard1/Android/data/com.HBuilder.integrate/cache
I/cr_DRP: No DRP key due to exception:java.lang.ClassNotFoundException: com.android.webview.chromium.Drp
I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.WebViewContentsClientAdapter$WebResourceErrorImpl>
Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.WebViewContentsClientAdapter$WebResourceErrorImpl>
W/cr_media: Requires BLUETOOTH permission
I/art: Background partial concurrent mark sweep GC freed 72850(3MB) AllocSpace objects, 18(2MB) LOS objects, 65% free, 6MB/18MB, paused 7.139ms total 80.095ms
D/ConnectivityManager.CallbackHandler: CM callback handler got msg 524290
I/art: Rejecting re-init on previously-failed class java.lang.Class<org.chromium.content.browser.FloatingWebActionModeCallback>
Rejecting re-init on previously-failed class java.lang.Class<org.chromium.content.browser.FloatingWebActionModeCallback>
D/cr_Ime: [InputMethodManagerWrapper.java:30] Constructor
W/cr_AwContents: onDetachedFromWindow called when already detached. Ignoring
D/cr_Ime: [InputMethodManagerWrapper.java:59] isActive: false
E/DCloud_LOG: fmgr no dp
E/Main_Path: FeatureMgr.loadBootOptions io.dcloud.feature.statistics.StatisticsBootImpl
E/Main_Path: FeatureMgr.loadBootOptions io.dcloud.feature.aps.APSFeatureImpl
E/DCloud_LOG: channel:;ver:1.9.9.80255;ssdk:false;max:3;trim:0;dg:false
D/ConnectivityManager.CallbackHandler: CM callback handler got msg 524290
W/ContextImpl: Failed to ensure directory: /storage/sdcard1/Android/data/com.HBuilder.integrate/cache
D/cr_Ime: [InputMethodManagerWrapper.java:59] isActive: false
W/cr_ScreenOrientation: Removing an inexistent observer!
D/ConnectivityManager.CallbackHandler: CM callback handler got msg 524296
I/ylyl: AppMGr START_APP UNI60C1861
I/ylyl: startOneApp UNI60C1861
D/ConnectivityManager.CallbackHandler: CM callback handler got msg 524290
D/cr_Ime: [InputMethodManagerWrapper.java:30] Constructor
W/cr_AwContents: onDetachedFromWindow called when already detached. Ignoring
D/cr_Ime: [InputMethodManagerWrapper.java:59] isActive: false
I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@21160120 time:65349039

2020-07-09 14:54 负责人:无 分享
已邀请:
3***@qq.com

3***@qq.com

这社区里面的回答太少了,我也遇到了这个问题,想找一个大佬来指点一下,没想到一开口就是300,心痛了。请问您解决了嘛?

  • 无情铁手

    社区里问问,或者群里问问

    2022-04-13 14:58

starplatinum

starplatinum

同问 https://ask.csdn.net/questions/7817911?spm=1001.2014.3001.5505

7***@qq.com

7***@qq.com

自己在hbx里面新建一个项目 放到这个app目录里面,不要用官方的示例,运行不起来!!!

要回复问题请先登录注册