AS升级过后,打包时强制要求国际化,要不然打包会失败提示如下截图所示:
解决方案有两种:
方案一:
在string.xml文件中添加 tools:ignore="MissingTranslation"
<resources tools:ignore="MissingTranslation" xmlns:tools="http://schemas.android.com/tools"> ... </resources>
方案二:
就是在build.gradle中的android 下添加
lintOptions { checkReleaseBuilds false abortOnError false }