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

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
大无语事件通常是指在应用程序启动时,用户等待的时间过长,导致用户体验不佳。为了解决这个问题,可以使用预加载技术或者启动页/引导页等方式来优化用户体验。 对于uni-app应用,可以使用uni-app提供的启动页和引导页来优化用户体验。但是,在使用启动页和引导页时,可能会出现短暂闪屏的问题。这是因为当应用程序启动时,系统需要加载各种资源,而这些资源可能需要一定的时间才能加载完成。在这段时间内,页面可能会出现闪屏。 为了解决这个问题,可以采用以下几种方法: 1. 使用预加载技术:在应用程序启动前,提前加载必要的资源,例如图片、CSS、JS等。这样可以减少页面加载时间,从而避免闪屏问题。 2. 使用 Loading 组件:在页面加载时,显示一个 Loading 组件,提示用户等待。等页面加载完成后,再隐藏 Loading 组件,显示正式内容。 3. 使用透明背景:在启动页和引导页中,使用透明背景,避免出现白屏或黑屏的情况。 以下是一个基于uni-app启动页和引导页示例代码: 启动页: ``` <template> <view class="container"> <image class="logo" src="../static/logo.png"></image> <loading class="loading" type="spinner"></loading> </view> </template> <script> export default { mounted() { // 预加载资源 this.preload() }, methods: { preload() { // 预加载代码 // ... // 预加载完成后,跳转到主页 uni.redirectTo({ url: '/pages/home/home' }) } } } </script> <style> .container { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; background-color: #ffffff; } .logo { width: 100px; height: 100px; } .loading { margin-top: 20px; } </style> ``` 引导页: ``` <template> <swiper class="swiper" :autoplay="true"> <swiper-item> <image class="slide" src="../static/slide1.png"></image> </swiper-item> <swiper-item> <image class="slide" src="../static/slide2.png"></image> </swiper-item> <swiper-item> <image class="slide" src="../static/slide3.png"></image> <button class="button" @click="enterApp">应用</button> </swiper-item> </swiper> </template> <script> export default { methods: { enterApp() { // 应用 uni.redirectTo({ url: '/pages/home/home' }) } } } </script> <style> .swiper { width: 100%; height: 100%; } .slide { width: 100%; height: 100%; background-size: cover; } .button { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background-color: #ffffff; color: #333333; font-size: 16px; padding: 10px 20px; border-radius: 20px; border: 1px solid #333333; } </style> ``` 这是一个比较简单的示例,具体实现方式可以根据自己的需求来调整。希望对你有帮助!

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值