如何在 Android Studio 中创建 APK?

How to Create an APK in Android Studio?

我想在 Android Studio 中制作一个 APK,但是当我创建它时,它显示了这个错误:

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:
...
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
    }
}
...

我在从 android studio 创建签名 apk 时遇到了同样的问题。我只是对 android 中的 build.gradle 文件做了一点改动 {}

lintOptions {
  checkReleaseBuilds false
  abortOnError false
}