android - Phonegap错误android sdk build.xml :950 : null returned: 1

标签 android eclipse macos cordova android-sdk-tools

我试图在 android sdk 中启动 phonegap android 应用程序,但我收到一个错误:

[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] compiling Android...
   [error] An error occurred while building the android project.Error executing "ant debug -f "/Users/me/Projects/one/platforms/android/build.xml"": 
BUILD FAILED
/Applications/Android/adt-bundle-mac-x86_64-20131030/sdk/tools/ant/build.xml:932: The following error occurred while executing this line:
/Applications/Android/adt-bundle-mac-x86_64-20131030/sdk/tools/ant/build.xml:950: null returned: 1

我遵循了本指南 http://docs.phonegap.com/en/2.2.0/guide_getting-started_android_index.md.html但它不起作用。

这可能是什么原因造成的?

最佳答案

你很可能也得到这条线

invalid resource directory name: /YOUR/PROJECT/ROOT/PATH/bin/res/crunch

在错误代码之前,打开终端并输入以下内容:

cd YOUR/PROJECT/ROOT/PATH

rm -fR $(find . -type d -name crunch|xargs)

关于android - Phonegap错误android sdk build.xml :950 : null returned: 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20699856/

相关文章:

android - 如何在 Android 中显示来自 SD 卡的幻灯片全屏图像

java - 将图像名称更改为不同的图像名称(在服务器上部署后添加)在 eclipse ee 开发中不起作用

java - 从 Java 应用程序启动 JUnitTests 时出错

macos - Mac .app 包向后兼容错误 : "You can' t use this version of the application "[my app name]" with this version of OS X."

macos - 设置launchctl limit maxfiles 512无限导致错误: Neither the hard nor soft limit for "maxfiles" can be unlimited

macos - Mac OS X 上映射的成本是多少?

android abortBroadcast 不会停止广播短信

android - Android 上的微软必应翻译 API

java - 更改我的 android 应用程序包名称是否会更改我的应用程序的 sha1 代码?

java - Eclipse 和 SVN : Missing . 项目文件