【问题标题】:Flutter missed permission? what is permission name?颤振错过了许可?什么是权限名称?
【发布时间】:2021-04-20 02:14:14
【问题描述】:

我有一个带有颤振的应用程序。下面的日志,我看到错误是缺少权限,但我没有找到它。你知道吗?请帮我。我在androidMainifest.xml文件中注册了WRITE_EXTERNAL_STORAGEREAD_EXTERNAL_STORAGE

/zygote64(28918): Do partial code cache collection, code=60KB, data=45KB I/zygote64(28918): After code cache collection, code=60KB, data=45KB I/zygote64(28918): Increasing code cache capacity to 256KB E/libc (28918): Access denied finding property "persist.camera.cfa.packagelist" W/data_extraction(28918): type=1400 audit(0.0:204): avc: denied { read } for name="u:object_r:camera_prop:s0" dev="tmpfs" ino=6716 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:camera_prop:s0 tclass=file permissive=0 ppid=3602 pcomm="main" pgid=3602 pgcomm="main"

【问题讨论】:

    标签: android flutter dart mobile android-camera


    【解决方案1】:

    你用过设备摄像头吗?

    尝试将此添加到您的 AndroidManifest <uses-permission android:name="android.permission.CAMERA" />

    【讨论】:

    • 对我来说没有成功 :( 当我在设备上打开相机时,它将是 Access denied finding property "persist.camera.cfa.packagelist" 。但我仍然捕获图像
    • 添加该权限后,您是否运行过flutter clean,然后运行flutter pub get
    • @denis 我的解决方案对你有帮助吗?
    猜你喜欢
    • 2021-11-04
    • 2021-08-12
    • 1970-01-01
    • 2021-04-15
    • 2019-06-23
    • 2011-01-17
    • 2021-03-28
    • 2021-12-10
    • 2021-05-01
    相关资源
    最近更新 更多