我需要在android studio中获取我的.apk以便我可以打包它,但是当我生成签名APK时我遇到了错误。第一个错误是:
Error:(50) Error: The <uses-permission> element must be a direct child of the <manifest> root element [WrongManifestParent]
当我双击该错误时,它会导致这一行:
<uses-permission android:name="android.permission.VIBRATE"/>
下一个错误是:
Error:Execution failed for task ':app:lintVitalRelease'.
Lint found fatal errors while assembling a release target.
要继续,请修复lint标识的问题,或修改构建脚本,如下所示:
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
}
}
怎么办?有没有其他方法来获取我的.APK?