为任务构建失败的离子项目执行失败:processDebugResources'

时间:2016-04-21 09:07:36

标签: android ionic-framework

我曾经没有任何问题地构建和运行我的项目。但是,现在我运行ionic run android

时出现此错误
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.E
xecException: Process 'command 'C:\Users\hamiri\AppData\Local\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.

我的Android SDK已更新,离线也是如此。 有什么建议吗?

1 个答案:

答案 0 :(得分:0)

在Environment变量中设置这样的环境变量 ANDROID_HOME = E:\ sdk JAVA_HOME = C:\ Program Files \ Java \ jdk PATH =%PATH%;%ANDROID_HOME%\ build-tools \ 23.0.1;%ANDROID_HOME%\ platform-tools;%ANDROID_HOME%\ tools; C:\ Users \ userXYZ \ AppData \ Roaming \ npm