Build Error starting cordova add android platform

I am trying to create an Android PhoneGap project at the following link: http://docs.phonegap.com/en/edge/guide_platforms_android_index.md.html

But, when I run the command:

cordova platform add android 

I get the following output:

 Checking Android requirements... Creating android project... [Error: An error occured during creation of android sub-project. Looks like your environment fully supports cordova-android development! Creating Cordova project for the Android platform: Path: platforms/android Package: com.example.hello Name: HelloWorld Android target: android-17 Building cordova-3.2.0-rc1.jar { [Error: Command failed: BUILD FAILED /path/to/adt/sdk/tools/ant/build.xml:653: The following error occurred while executing this line: /path/to/adt/sdk/tools/ant/build.xml:698: null returned: 127 Total time: 1 second ] killed: false, code: 1, signal: null } ] 

Does anyone know how to get rid of this error?

+7
android cordova
source share
4 answers

I have exactly the same error message. in my case lib32stdc ++ was not installed in my ubuntu, after installation everything works as intended.

 sudo apt-get install lib32stdc++6 

Hope this can solve your problem.

+7
source share

For me, on Ubuntu 13.10 64bit, this was fixed by installing 32bit libz:

 sudo aptitude install libz1:i386 

I found this:

  • Examining the build.xml file and discover that it was trying to run aapt
  • Search for a file in the android-sdk-linux / build-tools / 18.1.1 / build-tools directory and run it

    libz.so.1 not found

+8
source share

According to my information, first of all you need to download the cord-ova plugin from cord-ova and after you have to install the eclipse plugin by going to the help → Install new software by typing a phone space. In the eclipse Press Ctrl + N and select the phone gap, and when creating the project, select that your cord-ova, which you download, gives the path to the cord (there is a switch to select it, by default it chooses 1. XX, instead select its latest version below)

0
source share

The error is related to Ant. No build system.

Download and install Ant.

Make sure the PATH system is configured correctly as indicated in the installation document.

0
source share

All Articles