activityManager.killBackgroundProcesses(context.packageName),爆红但不影响运行,需要解决么

来源:3-1 本章概述

八角的微风

2018-01-23

Missing permissions required by ActivityManager.killBackgroundProcesses: android.permission.KILL_BACKGROUND_PROCESSES less... (Ctrl+F1) 

This check scans through your code and libraries and looks at the APIs being used, and checks this against the set of permissions required to access those APIs. If the code using those APIs is called at runtime, then the program will crash.  Furthermore, for permissions that are revocable (with targetSdkVersion 23), client code must also be prepared to handle the calls throwing an exception if the user rejects the request for permission at runtime


写回答

1回答

八角的微风

提问者

2018-01-23

知道了,是因为用这个的模块要添加权限,要不崩溃

0
0

Kotlin打造完整电商APP 模块化+MVP+主流框架

全网稀缺Kotlin项目实战,打造新一代Android工程师的核心竞争力

694 学习 · 209 问题

查看课程