生成错误运行科尔多瓦平台添加的android [英] Build Error running cordova platform add android

查看:128
本文介绍了生成错误运行科尔多瓦平台添加的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图按照以下链接创建一个Android的PhoneGap项目:<一href="http://docs.phonegap.com/en/edge/guide_platforms_android_index.md.html">http://docs.phonegap.com/en/edge/guide_platforms_android_index.md.html

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

但是,当我运行命令:

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 anybody know how to get rid of this error?

推荐答案

我有完全一样的错误信息。 在我的情况下,lib32stdc ++没有安装在我的Ubuntu,安装完毕后,作为一切工作的目的。

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

sudo apt-get install lib32stdc++6

希望这能解决你的问题。

Hope this could resolve your problem.

这篇关于生成错误运行科尔多瓦平台添加的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆