报错
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
C:\Users\xxx\.gradle\caches\transforms-2\files-2.1\c84bef2e48afb3472169d06715cdbebd\push-5.3.0.301\AndroidManifest.xml:10:9-68: AAPT: error: not well-formed (invalid token).
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2m 38s
解决办法
项目根目录 gradle.properties 文件增加配置
org.gradle.jvmargs=-Xmx1536m -Dfile.encoding=UTF-8
原因
在AndroidManifest.xml文件里有中文,编译的时候将中文编译成了乱码,强制指定文件编码格式解决