Phonegap error android sdk build.xml:950 : null returned: 1

android, android-sdk-tools, cordova, eclipse, macos

Solution

You are most likely also getting the line

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

right before the error codes, so open up terminal and enter the following:

cd YOUR/PROJECT/ROOT/PATH

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

Problem

I'm trying to launch phonegap android app in android sdk, but I am receiving an error: ``` [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 ``` I followed this guide http://docs.phonegap.com/en/2.2.0/guide_getting-started_android_index.md.html but it is not working. What could have caused this?

Original source

Related problems