You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何解决Flutter应用在Redmi A1+上运行白屏及内存不足问题?

Flutter应用在Redmi A1+白屏问题排查

我的Flutter应用在小米Redmi A1+上无法正常运行,打开后仅显示白屏,但在其他型号的智能手机上运行完全正常。

调试模式下输出以下错误日志:

Launching lib\main.dart on 220733SFG in debug mode...
Running Gradle task 'assembleDebug'...
√  Built build\app\outputs\flutter-apk\app-debug.apk.
D/FlutterGeolocator( 7170): Attaching Geolocator to activity
D/FlutterGeolocator( 7170): Creating service.
D/FlutterGeolocator( 7170): Binding to location service.
D/FlutterGeolocator( 7170): Geolocator foreground service connected
D/FlutterGeolocator( 7170): Initializing Geolocator services
D/FlutterGeolocator( 7170): Flutter engine connected. Connected engine count 1
Debug service listening on ws://127.0.0.1:53125/PnLEctRPbCw=/ws
Syncing files to device 220733SFG...
W/isarworker( 7170): type=1400 audit(0.0:1125): avc: denied { search } for name="vendor" dev="tmpfs" ino=7352 scontext=u:r:untrusted_app:s0:c177,c256,c512,c768 tcontext=u:object_r:mnt_vendor_file:s0 tclass=dir permissive=0 app=ru.ivjh.esc.esc_driver
W/isarworker( 7170): type=1400 audit(0.0:1126): avc: denied { search } for name="vendor" dev="tmpfs" ino=7352 scontext=u:r:untrusted_app:s0:c177,c256,c512,c768 tcontext=u:object_r:mnt_vendor_file:s0 tclass=dir permissive=0 app=ru.ivjh.esc.esc_driver
W/isarworker( 7170): type=1400 audit(0.0:1127): avc: denied { search } for name="vendor" dev="tmpfs" ino=7352 scontext=u:r:untrusted_app:s0:c177,c256,c512,c768 tcontext=u:object_r:mnt_vendor_file:s0 tclass=dir permissive=0 app=ru.ivjh.esc.esc_driver
W/isarworker( 7170): type=1400 audit(0.0:1128): avc: denied { search } for name="vendor" dev="tmpfs" ino=7352 scontext=u:r:untrusted_app:s0:c177,c256,c512,c768 tcontext=u:object_r:mnt_vendor_file:s0 tclass=dir permissive=0 app=ru.ivjh.esc.esc_driver
W/isarworker( 7170): type=1400 audit(0.0:1129): avc: denied { search } for name="vendor" dev="tmpfs" ino=7352 scontext=u:r:untrusted_app:s0:c177,c256,c512,c768 tcontext=u:object_r:mnt_vendor_file:s0 tclass=dir permissive=0 app=ru.ivjh.esc.esc_driver
W/isarworker( 7170): type=1400 audit(0.0:1130): avc: denied { getattr } for path="/metadata" dev="mmcblk0p13" ino=2 scontext=u:r:untrusted_app:s0:c177,c256,c512,c768 tcontext=u:object_r:metadata_file:s0 tclass=dir permissive=0 app=ru.ivjh.esc.esc_driver
W/isarworker( 7170): type=1400 audit(0.0:1131): avc: denied { getattr } for path="/linkerconfig" dev="tmpfs" ino=9277 scontext=u:r:untrusted_app:s0:c177,c256,c512,c768 tcontext=u:object_r:linkerconfig_file:s0 tclass=dir permissive=0 app=ru.ivjh.esc.esc_driver
E/flutter ( 7170): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: IsarError: Cannot open Environment: MdbxError (12): Out of memory
E/flutter ( 7170): 
D/ProfileInstaller( 7170): Installing profile for ru.ivjh.esc.esc_driver

更新:
已定位问题出在flutter_map_tile_caching包,当调用以下代码时会触发上述错误:

await FMTC.instance('mapStore').manage.createAsync();

内容的提问来源于stack exchange,提问作者morfair

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.18 19:45:22