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或者离子工作尝试添加一个平台。我在任何平台上都会遇到同样的错误。