報(bào)錯(cuò)
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
解決辦法
項(xiàng)目根目錄 gradle.properties 文件增加配置
org.gradle.jvmargs=-Xmx1536m -Dfile.encoding=UTF-8
原因
在AndroidManifest.xml文件里有中文,編譯的時(shí)候?qū)⒅形木幾g成了亂碼,強(qiáng)制指定文件編碼格式解決