The WIFI_SERVICE must be looked up on the Application
来源:互联网 发布:淘宝外卖粮票是什么 编辑:程序博客网 时间:2024/06/01 11:56
编译错误
Error:Error: The WIFI_SERVICE must be looked up on the Application context or memory will leak on devices < Android N. Try changing to .getApplicationContext() [WifiManagerLeak]
把
WifiManager wifiManager = (WifiManager)getSystemService(WIFI_SERVICE);
修改成
WifiManager wifiManager = (WifiManager)getApplicationContext().getSystemService(WIFI_SERVICE);
阅读全文
0 0
- The WIFI_SERVICE must be looked up on the Application
- Android studio编译错误二:Error: The WIFI_SERVICE must be looked up on the Application
- Android studio编译错误 Error: The WIFI_SERVICE must be looked up on the Application
- Android studio编译错误二:Error: The WIFI_SERVICE must be looked up on the Application
- WARNING: The host '$hostname' could not be looked up with resolveip.
- WARNING: The host 'localhost' could not be looked up with /usr/local/mysql//bin/resolveip
- Main application must be in the list of application paths
- 【Android】- Error:The<activity>element must be a direct child of the <application> element[WrongMani]
- Android -- setTag的妙用和The key must be an application-specific resource id 异常
- View.setTag(key,object)异常:The key must be an application-specific resource id.
- View.setTag(key,object)异常 The key must be an application-specific resource id.
- View.setTag(key,object)异常:The key must be an application-specific resource id.
- android setTag的妙用和The key must be an application-specific resource id 异常
- setTag使用错误The key must be an application-specific resource id.
- View.setTag(key,object)异常:The key must be an application-specific resource id.
- View.setTag(key,object)异常:The key must be an application-specific resource id.
- Android解决:View.setTag(key,object)异常:The key must be an application-specific resource id.
- 解决webdriver(Element not found in the cache - perhaps the page has changed since it was looked up )
- Rxjava+Retrofit实现多图片上传
- 统计不同单词
- android将drawable文件夹中的图片读取到bitmap中
- 一道尺取法 (连续最值)
- 正则表达式
- The WIFI_SERVICE must be looked up on the Application
- EA&UML日拱一卒-多任务编程超入门-(10)线程同步,数据交换的序列图
- Linux系统中安装JDK和Tomcat
- 基于oepncv3.0的最新版摄像机驱动函数VideoCapture和详细实例
- JDK8源码阅读之File(二)
- 《深入浅出node.js(朴灵)》【PDF】下载
- 统计单词数
- 树莓派系统的精简与打包qt程序
- 神经网络之权重初始化(附代码)