我正在尝试根据以下链接创建一个 Android PhoneGap 项目:http://docs.phonegap.com/en/edge/guide_platforms_android_index.md.html
但是,当我运行命令时:
cordova platform add android
我得到以下输出:
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 }
]
有谁知道如何消除这个错误?
对我来说,在 Ubuntu 13.10 64 位上,通过安装 32 位 libz 解决了这个问题:
sudo aptitude install libz1:i386
我通过以下方式找到了这个:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)