2016-06-29 42 views
3

当试图建立我的应用程序的PhoneGap构建失败:执行失败的任务“:processDebugResources”

phonegap local build 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.ExecException: Process 'command '/Users/xxxxxxxx/Library/Android/sdk/build-tools/23.0.2/aapt'' finished with non-zero exit value 1 

我不知道该怎样来解决这个想法,因为这个问题主要是由在java中开发他们的应用程序的人来解决的。

在此先感谢您的回答

回答

1

我有同样的问题。事实证明,我有坏的(或错过)一些图标/闪屏图像(即:平台/ android/res/drawable-hdpi等)和其他图像。

你可以从你的platforms/android目录检查runnning'./gradlew --debug clean build'。在日志中搜索':processDebugResources FAILED'字符串并向其靠近导致问题的文件名。在我的情况下,它是“AÑOnuevo.png”(即“N”导致此问题)

如果不行,看看这些其他SO-问题,它们可能有助于太:

PS:我使用最新的phonegap(6.3.0)和最新的Android Studio(2.1.2)

相关问题