l***@139.com
l***@139.com
  • 发布:2019-09-09 11:33
  • 更新:2021-05-24 11:12
  • 阅读:7678

uni-app 离线打包后(Android),启动应用始终在闪屏转圈进不去

分类:uni-app

使用HBuilder X 2.2.2.20190816 打包离线资源文件,按照https://ask.dcloud.net.cn/article/13232所述,编译apk,也添加了后面其他用户说几个在bulid.gradle添加内容,但启动应用后始终停留在闪屏转圈,进不去,AS输出日志如下,请各位大侠看看是怎么回事?(看日志显示错误,是找不到相应文件,但assets下面的内容肯定是打包进去了)
2019-09-09 11:30:43.447 27131-27131/com.myliuliu.transmonitorapp E/DCloud_LOG: PlatformUtil.getResInputStream RuntimeException pFilePath=/data/dcloud_control.xml
2019-09-09 11:30:43.588 27131-27131/com.myliuliu.transmonitorapp E/DCloud_LOG: channel:;ver:1.9.9.68191;ssdk:false;max:3;trim:0;dg:true
2019-09-09 11:30:43.836 27131-27131/com.myliuliu.transmonitorapp E/DCloud_LOG: fmgr no dp
2019-09-09 11:30:43.874 27131-27131/com.myliuliu.transmonitorapp E/DCloud_LOG: channel:;ver:1.9.9.68191;ssdk:false;max:3;trim:0;dg:true
2019-09-09 11:30:43.882 27131-28488/com.myliuliu.transmonitorapp E/DCloud_LOG: PlatformUtil.getResInputStream FileNotFoundException pFilePath=/data/dcloud5.dat
2019-09-09 11:30:43.882 27131-28489/com.myliuliu.transmonitorapp E/DCloud_LOG: PlatformUtil.getResInputStream FileNotFoundException pFilePath=/data/dcloud6.dat
2019-09-09 11:30:43.882 27131-27131/com.myliuliu.transmonitorapp E/DCloud_LOG: PlatformUtil.getResInputStream FileNotFoundException pFilePath=/storage/emulated/0/Android/data/com.myliuliu.transmonitorapp/apps/UNIE9AB8B3/www/manifest.json
2019-09-09 11:30:43.887 27131-27131/com.myliuliu.transmonitorapp E/DCloud_LOG: PlatformUtil.getResInputStream FileNotFoundException pFilePath=/data/dcloud5.dat
2019-09-09 11:30:43.888 27131-27131/com.myliuliu.transmonitorapp E/DCloud_LOG: PlatformUtil.getResInputStream FileNotFoundException pFilePath=data/dcloud_url.json
2019-09-09 11:30:43.888 27131-27131/com.myliuliu.transmonitorapp D/DCloud_LOG: PlatFU copyAssetsFile < data/dcloud_url.json > to < /storage/emulated/0/Android/data/com.myliuliu.transmonitorapp/cnc3ejE6/eje3cnc >
2019-09-09 11:30:43.888 27131-27131/com.myliuliu.transmonitorapp E/DCloud_LOG: PlatformUtil.getResInputStream FileNotFoundException pFilePath=/data/api.json
2019-09-09 11:30:43.891 27131-27131/com.myliuliu.transmonitorapp I/DCloud_LOG: Core onInit mode=null
2019-09-09 11:30:43.896 27131-27131/com.myliuliu.transmonitorapp I/DCloud_LOG: Core onInit mCoreListener=null
2019-09-09 11:30:43.896 27131-27131/com.myliuliu.transmonitorapp I/DCloud_LOG: onStart appid=UNIE9AB8B3;intentArgs=
2019-09-09 11:30:43.917 27131-27131/com.myliuliu.transmonitorapp D/DCloud_LOG: syncStartApp UNIE9AB8B3
2019-09-09 11:30:43.918 27131-27131/com.myliuliu.transmonitorapp D/DCloud_LOG: syncStartApp UNIE9AB8B3 STATUS_UN_RUNNING
2019-09-09 11:30:43.918 27131-27131/com.myliuliu.transmonitorapp E/DCloud_LOG: PlatformUtil.getResInputStream FileNotFoundException pFilePath=/storage/emulated/0/Android/data/com.myliuliu.transmonitorapp/apps/UNIE9AB8B3/www/manifest.json
2019-09-09 11:30:43.930 27131-27131/com.myliuliu.transmonitorapp E/DCloud_LOG: Webapp start UNIE9AB8B3
2019-09-09 11:30:43.933 27131-27131/com.myliuliu.transmonitorapp D/DCloud_LOG: AdaWebview
2019-09-09 11:30:43.954 27131-27131/com.myliuliu.transmonitorapp D/DCloud_LOG: WebViewImpl
2019-09-09 11:30:43.956 27131-27131/com.myliuliu.transmonitorapp E/DCloud_LOG: createWindow before _url=null
2019-09-09 11:30:43.956 27131-27131/com.myliuliu.transmonitorapp E/DCloud_LOG: createWindow not manifestBeParsed

2019-09-09 11:33 负责人:无 分享
已邀请:
l***@139.com

l***@139.com (作者) - 老IT人

有没有能看一下啊?

l***@139.com

l***@139.com (作者) - 老IT人

顶起来,有没有大虾帮看一下,万分感谢!

1***@qq.com

1***@qq.com

解决了没有 我也碰到这个了

  • xxj_e_e

    怎么解决的 能不能给点代码提示一下 大侠

    2020-04-17 18:49

  • xxj_e_e

    2020-04-17 18:50:33.496 1587-3517/? E/ANDR-PERF-JNI: com_qualcomm_qtiperformance_native_perf_io_prefetch_start

    2020-04-17 18:50:33.505 2110-2118/? E/ANDR-IOP: io prefetch is disabled

    2020-04-17 18:50:33.565 13703-13703/? E/m.hande.lianxi: Unknown bits set in runtime_flags: 0x8000

    2020-04-17 18:50:33.665 13703-13703/com.hande.lianxin E/doForFeature: AdFeatureImpl onAppAttachBaseContext

    2020-04-17 18:50:33.699 13703-13703/com.hande.lianxin E/libc: Access denied finding property "ro.vendor.df.effect.conflict"

    2020-04-17 18:50:33.704 13703-13703/com.hande.lianxin E/platform: ClassNotFoundException io.dcloud.feature.x5.X5InitImpl init

    2020-04-17 18:50:33.704 13703-13703/com.hande.lianxin E/platform: ClassNotFoundException io.dcloud.feature.weex.WeexInstanceMgr initWeexEnv

    2020-04-17 18:50:33.704 13703-13703/com.hande.lianxin E/doForFeature: AdFeatureImpl onAppCreate

    2020-04-17 18:50:33.707 13703-13703/com.hande.lianxin E/DCLoudApplicationImpl: mApplication--=com.hande.lianxin.app.BaseApp@75a0cf9

    2020-04-17 18:50:33.834 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:33.844 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:33.880 13703-13766/com.hande.lianxin E/[ui]FriendHelper: 2/FriendHelper getMapFromJsonString exception, e=Attempt to invoke virtual method 'java.util.Iterator org.json.JSONObject.keys()' on a null object reference

    2020-04-17 18:50:33.881 13703-13766/com.hande.lianxin E/[ui]FriendHelper: 2/FriendHelper getMapFromJsonString exception, e=Attempt to invoke virtual method 'java.util.Iterator org.json.JSONObject.keys()' on a null object reference

    2020-04-17 18:50:33.892 13780-13780/? E/de.lianxin:cor: Unknown bits set in runtime_flags: 0x8000

    2020-04-17 18:50:33.914 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:33.917 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:33.933 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:33.961 13703-13703/com.hande.lianxin E/DCloud_LOG: PlatformUtil.getResInputStream RuntimeException pFilePath=/data/dcloud_control.xml

    2020-04-17 18:50:33.999 13703-13809/com.hande.lianxin E/Perf: Fail to get file list com.hande.lianxin

    2020-04-17 18:50:33.999 13703-13809/com.hande.lianxin E/Perf: getFolderSize() : Exception_1 = java.lang.NullPointerException: Attempt to get length of null array

    2020-04-17 18:50:34.000 13703-13809/com.hande.lianxin E/Perf: Fail to get file list oat

    2020-04-17 18:50:34.000 13703-13809/com.hande.lianxin E/Perf: getFolderSize() : Exception_1 = java.lang.NullPointerException: Attempt to get length of null array

    2020-04-17 18:50:34.003 13780-13780/com.hande.lianxin:core E/doForFeature: AdFeatureImpl onAppAttachBaseContext

    2020-04-17 18:50:34.019 13780-13780/com.hande.lianxin:core E/libc: Access denied finding property "ro.vendor.df.effect.conflict"

    2020-04-17 18:50:34.027 13780-13780/com.hande.lianxin:core E/doForFeature: AdFeatureImpl onAppCreate

    2020-04-17 18:50:34.034 13780-13780/com.hande.lianxin:core E/DCLoudApplicationImpl: mApplication--=com.hande.lianxin.app.BaseApp@59d2a90

    2020-04-17 18:50:34.120 13703-13703/com.hande.lianxin E/platform: ClassNotFoundException io.dcloud.feature.weex.WeexInstanceMgr self

    2020-04-17 18:50:34.121 13703-13703/com.hande.lianxin E/platform: ClassNotFoundException io.dcloud.feature.weex.WeexInstanceMgr restartWeex

    2020-04-17 18:50:34.121 13703-13703/com.hande.lianxin E/Html5Plus-onCreate: 1587120634121

    2020-04-17 18:50:34.122 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:34.140 13703-13703/com.hande.lianxin E/DCloud_LOG: channel:;ver:1.9.9.80110;ssdk:false;max:3;trim:0;dg:false

    2020-04-17 18:50:34.149 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:34.150 13703-13703/com.hande.lianxin E/doForFeature: AdFeatureImpl pull

    2020-04-17 18:50:34.158 13703-13703/com.hande.lianxin E/platform: Exception android.telephony.TelephonyManager getImei

    2020-04-17 18:50:34.159 13703-13703/com.hande.lianxin E/platform: NoSuchMethodException android.telephony.TelephonyManager getImei2

    2020-04-17 18:50:34.162 13703-13703/com.hande.lianxin E/platform: Exception android.telephony.TelephonyManager getImei

    2020-04-17 18:50:34.164 13703-13703/com.hande.lianxin E/platform: Exception android.telephony.TelephonyManager getImei

    2020-04-17 18:50:34.168 13703-13703/com.hande.lianxin E/TelephonyUtil: getIMEI exception==getDeviceId: The user 10364 does not meet the requirements to access device identifiers.

    2020-04-17 18:50:34.212 668-13868/? E/ResolverController: No valid NAT64 prefix (126, <unspecified>/0)

    2020-04-17 18:50:34.212 13780-13860/com.hande.lianxin:core E/Perf: Fail to get file list com.hande.lianxin

    2020-04-17 18:50:34.212 13780-13860/com.hande.lianxin:core E/Perf: getFolderSize() : Exception_1 = java.lang.NullPointerException: Attempt to get length of null array

    2020-04-17 18:50:34.212 13780-13860/com.hande.lianxin:core E/Perf: Fail to get file list oat

    2020-04-17 18:50:34.212 13780-13860/com.hande.lianxin:core E/Perf: getFolderSize() : Exception_1 = java.lang.NullPointerException: Attempt to get length of null array

    2020-04-17 18:50:34.224 668-13871/? E/ResolverController: No valid NAT64 prefix (126, <unspecified>/0)

    2020-04-17 18:50:34.225 13703-13703/com.hande.lianxin E/m.hande.lianxi: Invalid ID 0x00000000.

    2020-04-17 18:50:34.232 13703-13703/com.hande.lianxin E/m.hande.lianxi: Invalid ID 0x00000000.

    2020-04-17 18:50:34.233 13703-13703/com.hande.lianxin E/platform: ClassNotFoundException io.dcloud.appstream.actionbar.StreamAppActionBarUtil checkNeedTitleView

    2020-04-17 18:50:34.245 13703-13703/com.hande.lianxin E/Html5Plus-onResume: 1587120634245

    2020-04-17 18:50:34.289 668-13877/? E/ResolverController: No valid NAT64 prefix (126, <unspecified>/0)

    2020-04-17 18:50:34.292 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:34.295 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:34.348 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:34.351 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:34.358 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:34.360 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:34.411 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:34.419 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:34.430 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:34.469 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:34.472 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:34.476 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:34.476 13913-13913/? E/ProcessService: Not starting debugger since process cannot load the jdwp agent.

    2020-04-17 18:50:34.486 668-13927/? E/ResolverController: No valid NAT64 prefix (126, <unspecified>/0)

    2020-04-17 18:50:34.487 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:34.508 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:34.509 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:34.513 13913-13913/? E/libc: Access denied finding property "ro.vendor.df.effect.conflict"

    2020-04-17 18:50:34.531 13703-13703/com.hande.lianxin E/DCloud_LOG: fmgr no dp

    2020-04-17 18:50:34.536 668-13940/? E/ResolverController: No valid NAT64 prefix (126, <unspecified>/0)

    2020-04-17 18:50:34.537 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:34.539 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:34.542 13703-13703/com.hande.lianxin E/Main_Path: FeatureMgr.loadBootOptions io.dcloud.feature.aps.APSFeatureImpl

    2020-04-17 18:50:34.542 13703-13703/com.hande.lianxin E/Main_Path: FeatureMgr.loadBootOptions io.dcloud.feature.statistics.StatisticsBootImpl

    2020-04-17 18:50:34.551 13703-13703/com.hande.lianxin E/DCloud_LOG: channel:;ver:1.9.9.80110;ssdk:false;max:3;trim:0;dg:false

    2020-04-17 18:50:34.555 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:34.556 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:34.563 13703-13703/com.hande.lianxin E/Appmgr: appid config is wrong pExpectAppid=UNI0893762;appid=null

    2020-04-17 18:50:34.977 1587-3354/? E/TaskPersister: File error accessing recents directory (directory doesn't exist?).

    2020-04-17 18:50:35.597 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:35.612 564-564/? E/SELinux: avc: denied { find } for interface=vendor.qti.hardware.servicetracker::IServicetracker sid=u:r:system_server:s0 pid=1587 scontext=u:r:system_server:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

    2020-04-17 18:50:35.629 800-908/? E/sensors-hal: ~worker:70, pthread_join iRet = 0

    2020-04-17 18:50:35.632 800-908/? E/sensors-hal: ~worker:70, pthread_join iRet = 0

    2020-04-17 18:50

h***@qq.com

h***@qq.com

同问

c***@vip.qq.com

c***@vip.qq.com

打开这个文件失败/data/dcloud_control.xml

xxj_e_e

xxj_e_e

楼主怎么解决的?

xxj_e_e

xxj_e_e

一堆bug,加载就转圈圈,平台小就是坑,技术都不过关

以何为家

以何为家 - 这个人很烂,暂无介绍

HX 2.7.9本地安卓打包,一直在转圈进不去

  • 以何为家

    在builder中加NDK的配置,我就进去了

    2020-06-15 16:09

996上班族

996上班族 - 996上班族

2.5以前离线打包发布过,后来就放弃了,改一段代码再发包太痛苦了。之前是没有问题的,现在的版本没有试过。

5***@qq.com

5***@qq.com

检查下AndroidStudio 项目里面src下面assets中app后以appid明明的文件夹名称以及data目录下dcloud_control中的appid是否与hbuilder中打包的appid一致

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