Unable to add window android.view.ViewRoot$W@44da9bc0 — permission denied for this window type

在Android Q中设置WindowManager.LayoutParams.TYPE_SYSTEM_ALERT
会触发该异常,Android Q对权限做了更严格的限制
解决办法:stackoverflow

你可能感兴趣的:(Unable to add window android.view.ViewRoot$W@44da9bc0 — permission denied for this window type)