phonegap – error ant build.xml line 601 653 698 – crunchbang debian 64bit

when install android sdk in linux 64 bit, you must install library-library 32bit

if not, you will get much error which dont know where …


$ ~/workspace$ phonegap create hello -n HelloWorld -i com.example.hello
[phonegap] created project at /home/g3n1k/workspace/hello
$ ~/workspace$ cd hello
$ ~/workspace/hello$ phonegap build android
[phonegap] detecting Android SDK environment...
...

BUILD FAILED
/usr/lib/android-sdk-linux/tools/ant/build.xml:601: The following error occurred while executing this line:
/usr/lib/android-sdk-linux/tools/ant/build.xml:653: The following error occurred while executing this line:
/usr/lib/android-sdk-linux/tools/ant/build.xml:698: null returned: 127

$ cd ~/workspace/hello/platforms/android

$ ant clean release

...
[aapt] /usr/lib/android-sdk-linux/build-tools/19.0.1/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

BUILD FAILED
/usr/lib/android-sdk-linux/tools/ant/build.xml:601: The following error occurred while executing this line:
/usr/lib/android-sdk-linux/tools/ant/build.xml:653: The following error occurred while executing this line:
/usr/lib/android-sdk-linux/tools/ant/build.xml:698: null returned: 127

Total time: 5 seconds

$ sudo apt-get install lib32z1

 

Published by

G3n1k

just to remember what i had known :)

One thought on “phonegap – error ant build.xml line 601 653 698 – crunchbang debian 64bit”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s