Add to android{} in app's build.gradle:
lintOptions {
checkReleaseBuilds false
checkReleaseBuilds
false
abortOnError false
abortOnError
}
Reference: Errors while building APK. You can find the errors in the 'Messages' view. - WidgetBox - 博客园(cnblogs.com)