打包时的错误提示:
Error:Execution failed for task ':app:lintVitalRelease'. > java.lang.IllegalStateException: Expected a name but was STRING at line 1 column 99 path $[0].apkInfo.versionName
debug版可以运行,release版生成不了。似乎是有没有用到的module,只需在app下的gradle文件的android部分添加代码:
lintOptions {
checkReleaseBuilds false
abortOnError false
}