kotlin Samsung Android 7,8和9设备中的SecurityException

6uxekuva  于 2023-06-24  发布在  Kotlin
关注(0)|答案(1)|浏览(110)

我得到了

Fatal Exception: java.lang.SecurityException: Permission Denial: broadcast from android asks to run as user -1 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS

有谁知道怎么解决这个问题吗?
它只发生在三星Galaxy设备Android 7、8和9设备上。

6l7fqoea

6l7fqoea1#

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) 
 {
     activity.reportFullyDrawn() 
 }

相关问题