uni-app 小米11(android 11)页面加载不出来 其他低版本android机无问题

uni-app 小米11(android 11)页面加载不出来 其他低版本android机无问题

23 回复

HX默认基座运行有问题吗

更多关于uni-app 小米11(android 11)页面加载不出来 其他低版本android机无问题的实战教程也可以访问 https://www.itying.com/category-93-b0.html


直接在hbuildX运行是可以的

回复 1***@qq.com: 云打包APPID发下

回复 DCloud_Android_ST: UNIEA63763

回复 DCloud_Android_ST: 云打包以后的也是可以运行的,拷贝到android studio中打包成app以后就出问题了

回复 1***@qq.com: 离线打包吗 如果是离线打包应该是项目配置问题。SDK中应该是有示例demo,在DEMO你测试下

回复 DCloud_Android_ST: 哪些配置会影响呢

按我说的测试demo是否正常。如果正常对配配置。你这问题不是几句话就能弄清楚你的原因

回复 DCloud_Android_ST: demo都不需要测试,因为这个app很多手机都可以用,目前只是小米11这个用不了,所以想了解清楚这个是不是跟android版本有关系,是否是因为我的sdk不支持高android高版本

回复 1***@qq.com: 测不测你自己决定 我们的SDK支持android11

回复 DCloud_Android_ST:你这客服非常优秀

我们的APP在安卓11上也出现了这样的问题,appid: UNI7E2B0B1

回复 查看密码: 遇到问题的肯定不止这些人

回复 查看密码:回复 查看密码: 你也是离线吧

检查SDK拷贝资源时部分资源有没有正确拷贝到你的项目中, 检查targetSdkVersion 取值范围26~30 检查minSdkVersion 取值范围 19~22 检查androidX版本 选择1.0.0版本

回复 DCloud_Android_ST:

目前已经解决了,升级依赖包,

uniapp-release.aar --》 uniapp-v8-release.aar

D/ViewContentFactory: initViewContentFetcherClass I/ContentCatcher: ViewContentFetcher : ViewContentFetcher D/ViewContentFactory: createInterceptor took 0ms I/Timeline: Timeline: Activity_launch_request time:23748118 E/weex: [WXBridgeManager] invoke execJSService: framework.js uninitialized. E/weex: [WXBridgeManager] invoke execJSService: framework.js uninitialized. E/WeexCore: wx_bridge.cpp:1307,class Name is com/taobao/weex/bridge/WXBridge WXBridge_jni.h:1445,Java_WXBridge_reset_clazz class Name is com/taobao/weex/bridge/WXBridge W/weex: app AvailMemory ---->>>3438 E/Html5Plus-onCreate: 1615867334007 D/WebAppActivity: onCreate D/ViewContentFactory: initViewContentFetcherClass I/ContentCatcher: ViewContentFetcher : ViewContentFetcher D/ViewContentFactory: createInterceptor took 0ms E/WXParams: setCrashFilePath: /data/user/0/com.bskj.baomingyi/app_crash E/weex: getUseSingleProcess is running false E/WeexCore: params_utils.cpp:198,g_use_single_process is false E/weex: getReleaseMap:true E/weex: getLibJscPath is running E/WeexCore: params_utils.cpp:242,gjscSoPath is E/weex: getLibJssPath is running /data/app/~~U–lXMqds1R7xoUV_5f6A==/com.bskj.baomingyi-3tQH2Hv06IyQLWQDPR-kGQ==/lib/arm/libweexjss.so E/WeexCore: params_utils.cpp:255,gjssSoPath is /data/app/~~U–lXMqds1R7xoUV_5f6A==/com.bskj.baomingyi-3tQH2Hv06IyQLWQDPR-kGQ==/lib/arm/libweexjss.so E/WXParams: getCrashFilePath:/data/user/0/com.bskj.baomingyi/app_crash E/WeexCore: params_utils.cpp:267,g_crashFilePath is /data/user/0/com.bskj.baomingyi/app_crash E/weex: getLibIcuPath is running /apex/com.android.i18n/etc/icu/icudt66l.dat E/WeexCore: params_utils.cpp:280,gjssIcuPath is /apex/com.android.i18n/etc/icu/icudt66l.dat E/weex: getLibJsbPath is running /data/data/com.bskj.baomingyi/cache/weex/libs/weexjsb/armeabi-v7a/libweexjsb.so getLibLdPath is running /data/app/~~U–lXMqds1R7xoUV5f6A==/com.bskj.baomingyi-3tQH2Hv06IyQLWQDPR-kGQ==/lib/arm:/data/app/~~U–lXMqds1R7xoUV_5f6A==/com.bskj.baomingyi-3tQH2Hv06IyQLWQDPR-kGQ==/base.apk!/lib/armeabi-v7a E/WeexCore: multi_process_and_so_initializer.cpp:38,MultiProcessAndSoInitializer IS IN init weex_js_connection.cpp:141,WeexJSConnection g_crashFileName: /data/user/0/com.bskj.baomingyi/app_crash/crash_dump.log E/WeexCore: weex_js_connection.cpp:261,startupPie :1 D/download_manager: BaseActivity onCreate D/.bskj.baomingy: onRuntimePreCreate appid=Main_App W/System: A resource failed to call close. I/chatty: uid=10336(com.bskj.baomingyi) FinalizerDaemon identical 1 line W/System: A resource failed to call close. E/.bskj.baomingy: Invalid ID 0x00000000. D/Main_Path: use defaultSplash D/WebAppActivity: checkAutoHide false E/Html5Plus-onResume: 1615867334203 W/Looper: PerfMonitor looperActivity : package=com.bskj.baomingyi/io.dcloud.PandoraEntryActivity time=0ms latency=478ms running=0ms procState=-1 ClientTransaction{ callbacks=[android.app.servertransaction.TopResumedActivityChangeItem] } historyMsgCount=3 (msgIndex=1 wall=55ms seq=830 late=5ms h=android.view.Choreographer$FrameHandler c=android.view.Choreographer$FrameDisplayEventReceiver) (msgIndex=3 wall=426ms seq=832 late=53ms h=android.app.ActivityThread$H w=159) W/.bskj.baomingy: Accessing hidden method Lcom/android/internal/R$dimen;-><init>()V (greylist-max-q, reflection, denied) E/PushManager: call - > initialize, parameter [userServiceName] is null use default PushService, but didn’t find class “com.igexin.sdk.PushService”, please check your AndroidManifest E/PushManager: call - > registerPushIntentService, parameter [userIntentService] is set, but didn’t find class “io.dcloud.feature.apsGt.GTNormalIntentService”, please check your AndroidManifest W/Looper: PerfMonitor doFrame : time=95ms vsyncFrame=585923 latency=418ms procState=-1 historyMsgCount=4 (msgIndex=1 wall=426ms seq=832 late=53ms h=android.app.ActivityThread$H w=159) (msgIndex=3 wall=412ms seq=834 late=185ms h=android.os.Handler c=io.dcloud.b$1) I/ylyl: AppMGr START_APP UNIEA63763 I/ylyl: startOneApp UNIEA63763 W/.bskj.baomingy: Accessing hidden method Lcom/android/internal/R$styleable;-><init>()V (greylist-max-q, reflection, denied) W/System: A resource failed to call close. D/EgretLoader: EgretLoader(Context context) D/EgretLoader: The context is not activity I/Choreographer: Skipped 36 frames! The application may be doing too much work on its main thread. W/Looper: PerfMonitor doFrame : time=268ms vsyncFrame=585927 latency=609ms procState=-1 historyMsgCount=1 (msgIndex=1 wall=611ms seq=847 late=27ms h=io.dcloud.common.adapter.util.MessageHandler$1 w=0) I/OpenGLRenderer: Davey! duration=911ms; Flags=1, IntendedVsync=23749225743608, Vsync=23749825743584, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=23749834545411, AnimationStart=23749834546661, PerformTraversalsStart=23749835471870, DrawStart=23750086161661, SyncQueued=23750101791661, SyncStart=23750102006036, IssueDrawCommandsStart=23750102068640, SwapBuffers=23750132533224, FrameCompleted=23750137946349, DequeueBufferDuration=1120156, QueueBufferDuration=495156, GpuCompleted=0, W/Looper: PerfMonitor doFrame : time=24ms vsyncFrame=585962 latency=371ms procState=-1 historyMsgCount=19 (msgIndex=1 wall=268ms seq=848 late=609ms h=android.view.Choreographer$FrameHandler c=android.view.Choreographer$FrameDisplayEventReceiver) E/WeexCore: weex_js_connection.cpp:297,WeexJSConnection catch: spinWaitPeer timeout E/WeexCore: multi_process_and_so_initializer.cpp:47,JSFramwork init start sender is null IPCFutexPageQueue.cpp:66,do munmap E/WeexCore: weex_js_connection.cpp:184,IPCException server died spinWaitPeer timeout E/WeexCore: weex_js_connection.cpp:141,WeexJSConnection g_crashFileName: /data/user/0/com.bskj.baomingyi/app_crash/crash_dump.log E/WeexCore: IPCFutexPageQueue.cpp:66,do munmap E/WeexCore: weex_js_connection.cpp:261,startupPie :1 E/WeexCore: weex_js_connection.cpp:297,WeexJSConnection catch: spinWaitPeer timeout 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:184,IPCException server died spinWaitPeer timeout E/WeexCore: script_bridge_in_multi_process.cpp:1025,ScriptBridgeInMultiProcess DELETE 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/Html5Plus-SplashClosed: 1615867345554 E/Main_Path: closeSplashScreen0 appid=UNIEA63763;true;closeSplashDid=false

目前已经解决了,升级依赖包,

uniapp-release.aar --》 uniapp-v8-release.aar

回复 查看密码: 我也试试

这是一个比较常见的Android版本兼容性问题。在Android 11上,小米等厂商对系统权限管理更加严格,可能导致页面资源加载失败。

建议检查以下几个方面:

  1. 网络权限配置 确保在manifest.json中正确配置网络权限:
{
    "permissions": {
        "request": ["android.permission.INTERNET"]
    }
}
  1. HTTPS要求 Android 11强制要求使用HTTPS,如果使用HTTP请求,需要在AndroidManifest.xml中添加:
<application
    android:usesCleartextTraffic="true"
    ...>
</application>
回到顶部