我正在尝试根据以下链接创建 Android PhoneGap项目: http://docs.phonegap.com/en/edge/guide_platforms_android_index.md.html 但是,当我运行命令时: cordova platform add android 我得到以下输出: Checking Android
但是,当我运行命令时:
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 } ]
有谁知道如何摆脱这个错误?
我有完全相同的错误消息.在我的情况下,lib32stdc没有安装在我的ubuntu中,安装后,所有工作都按预期工作.
sudo apt-get install lib32stdc++6
希望这可以解决您的问题.