如何在Android Studio中创建APK?

时间:2018-09-15 20:11:23

标签: apk

我想在anroid 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
    }
}
...

1 个答案:

答案 0 :(得分:1)

从android studio创建签名的apk时,我遇到了同样的问题。我只是对android {}

中的build.gradle文件进行了一些更改
lintOptions {
  checkReleaseBuilds false
  abortOnError false
}