更新时间:2022-11-23 13:41:39
WindowManager.LayoutParams 常量 2003
为 TYPE_SYSTEM_ALERT
,已在API级别26中弃用.可以根据API 25(可能是该物理设备)构建,也可以使用 TYPE_APPLICATION_OVERLAY
代替.仅使用 build.gradle
中的一行,就很难理解代码甚至针对哪个API运行.
WindowManager.LayoutParams constant 2003
is TYPE_SYSTEM_ALERT
, deprecated in API level 26. either build against API 25 (which may be that physical device) or use TYPE_APPLICATION_OVERLAY
instead. with a single line from the build.gradle
it's difficult to understand against which API the code even runs.
提示:请确保在安装了Play服务的仿真器映像上运行此程序.
hint: make sure you run this on an emulator image with Play Services installed.