一个android项目突然出现编译错误,如下:
:app:processDebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'K:\Android\android-sdk\build-tools\23.0.2\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.

BUILD FAILED
网上查询n久,都是说使用mimap图标替换drawable,可是项目中,根本没有此问题。看来引起错误的原因有多种可能。 终于使用如下命令,在dos窗口中查看到错误原因:
gradlew assembleDebug --info --stacktrace --debug

就是assets中有带中文的文件名!faint!

改为英文名字,解决。

相关文章:

  • 2021-05-24
  • 2021-10-13
  • 2022-01-29
  • 2022-01-11
  • 2021-06-15
  • 2021-07-08
  • 2022-12-23
猜你喜欢
  • 2022-01-07
  • 2021-06-26
  • 2021-05-02
  • 2022-12-23
  • 2021-11-25
  • 2021-10-01
相关资源
相似解决方案