今天在AndroidManifest中,设置android:debuggable="false",打包时,出现
rror:(19) Error: Avoid hardcoding the debug mode; leaving it out allows debug and release builds to automatically assign one [HardcodedDebugMode]
Error:Execution failed for task ':app:lintVitalRelease'.
> Lint found fatal errors while assembling a release target.
To proceed, either fix the issues identified by lint, or modify your build script as follows:
解决方法,在build.gradle中,设置
lintOptions {
checkReleaseBuilds false
abortOnError false
}
如下图: