To proceed, either fix the issues identified by lint, or modify your build script as follows:...
android {
lintOptions {
checkReleaseBuilds false// Or, if you prefer, you can continue to check for errors in release builds,// but continue the build even when errors are found:
abortOnError false}}
<issue
id="WifiManagerLeak"
severity="Fatal"
message="The WIFI_SERVICE must be looked up on the Application context or memory will leak on devices < Android N. Try changing `UniversalDeskApp.getContext()` to `UniversalDeskApp.getContext().getApplicationContext()`"
category="Correctness"
priority="6"
summary="WifiManager Leak"
explanation="On versions prior to Android N (24), initializing the `WifiManager` via `Context#getSystemService` can cause a memory leak if the context is not the application context. Change `context.getSystemService(...)` to `context.getApplicationContext().getSystemService(...)`."
errorLine1=" mWifiManager = (WifiManager) UniversalDeskApp.getContext().getSystemService(Context.WIFI_SERVICE);"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"><location
file="/Users/chenxuming/AndroidStudioProjects/UniversalDesk/app/src/main/java/com/uniubi/universaldesk/utils/ApHotUtil.java"
line="31"
column="42"/></issue>
【APP打包报错】To proceed, either fix the issues identified by lint, or modify your build script as follow
在studio 打release包的时候,编译不通过,报错如下To proceed, either fix the issues identified by lint, or modify your build script as follows:...android { lintOptions { checkReleaseBuilds false /...