添加新平台时的离子错误

时间:2016-01-27 04:04:33

标签: android cordova ionic-framework

Your system information:

Cordova CLI: 5.4.1
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.0
Ionic Version: 1.2.4
Ionic CLI Version: 1.7.13
Ionic App Lib Version: 0.6.5
OS: Distributor ID:     Ubuntu Description:     Ubuntu 14.04.3 LTS
Node Version: v0.10.41

当我尝试运行以下命令时:

ionic platform add android

它返回以下错误:

Updated the hooks directory to have execute permissions
Running command: /home/vagrant/projects/financeApp/hooks/before_platform_add/init_directories.js /home/vagrant/projects/financeApp
Error: Failed to fetch platform android
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: ETXTBSY, rename '/home/vagrant/.cordova/lib/npm_cache/cordova-android/4.1.1/package.tgz.169934643'

我试图删除.cordova文件夹,我已经安装了Android SDK,控制台中的android命令工作,我添加了一个Android设备,但是无论何时我都使用cordova或者离子工作尝试添加一个平台。我在任何平台上都会遇到同样的错误。

1 个答案:

答案 0 :(得分:0)

关于使用Apache Cordova移动应用程序进行挂钩的问题以及获得更多帮助的权限请参阅此link

希望这会对你有帮助!