🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
[TOC] ## 常见错误汇总 ### 编译时发生:processDebugResources FAILED 错误 项目www文件下**有中文名称**所致的。 ### 404错误! *Xee*:`cordova plugin add XXXX` 报404 参考:[cordova-plugin-whitelist Error 404 not found](http://stackoverflow.com/questions/31083504/cordova-plugin-whitelist-error-404-not-found) ### 编译错误 `Execution failed for task ‘:app:mergeDebugResources’ OR Execution failed for task ‘:Application:processDebugResources’` ``` > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\admin\AppData\Local\Android\sdk\build-tools\23.0.3\aapt.exe'' finished with non-zero exit value 1 * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Error: Error code 1 for command: cmd with args: /s,/c,"D:\myApp\platforms\android\gradlew cdvBuildDebug -b D:\myApp\platforms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true" ``` 检查一下,看看是不是哪里的资源文件命名不规范,文件名称不规范就可能导致该问题. 或者执行以下命令: `C:\> D:\myApp\platforms\android\gradlew cdvBuildDebug -b D:\myApp\platforms\android\build.gradle -D org.gradle.daemon=true -P android.useDeprecatedNdk=true --info --debug > d:\debug.info` 然后从`d:\debug.info`文件中查找详细的错误信息。 [部署cordova步骤和遇到的有关问题](http://www.myexception.cn/mobile/2047017.html)