我正在尝试根据以下链接创建Android PhoneGap项目:http://docs.phonegap.com/en/edge/guide_platforms_android_index.md.html
但是,当我运行命令时:
cordova platform add android
Run Code Online (Sandbox Code Playgroud)
我得到以下输出:
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 }
]
Run Code Online (Sandbox Code Playgroud)
有谁知道如何摆脱这个错误?
对我来说,在Ubuntu 13.10 64bit上,通过安装32位libz修复了这个问题:
sudo aptitude install libz1:i386
Run Code Online (Sandbox Code Playgroud)
我发现这个:
在android-sdk-linux/build-tools/18.1.1/build-tools目录中找到aapt并运行它
找不到libz.so.1
小智 7
我有完全相同的错误消息.在我的情况下,lib32stdc ++没有安装在我的ubuntu中,安装后,所有工作都按预期工作.
sudo apt-get install lib32stdc++6
Run Code Online (Sandbox Code Playgroud)
希望这可以解决您的问题.
| 归档时间: |
|
| 查看次数: |
7672 次 |
| 最近记录: |