错误平台android已添加。在Visual Studio 2015上使用Ionic 2进行TACO [英] Error Platform android already added. on TACO with Ionic 2 on Visual Studio 2015

查看:337
本文介绍了错误平台android已添加。在Visual Studio 2015上使用Ionic 2进行TACO的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了TACO,创建了一个新的Ionic 2 RC项目,
没有改变任何东西,
点击了Play(F5)。

I downloaded TACO, Created a new Ionic 2 RC project, did not change anything, clicked Play (F5).

然后出现此错误:

Error       Platform android already added. 

可以采取哪些措施来解决这个问题?

What can be done to solve this?

Build的输出:

1>------ Build started: Project: ionic2-ts-blank1, Configuration: Debug Android ------
1>  ------ Ensuring correct global installation of package from source package directory: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\packages\vs-tac
1>  ------ Name from source package.json: vs-tac
1>  ------ Version from source package.json: 1.0.42
1>  ------ Package already installed globally at correct version.
1>  ------ Cordova tools 6.3.1 already installed.
1>  ------ Build Settings:
1>  ------ Build Settings:
1>  ------    platformConfigurationBldDir: c:\temp\ionic2-ts-blank1\ionic2-ts-blank1\bld\Android\Debug
1>  ------    platformConfigurationBinDir: c:\temp\ionic2-ts-blank1\ionic2-ts-blank1\bin\Android\Debug
1>  ------    buildCommand: prepare
1>  ------    platform: Android
1>  ------    cordovaPlatform: android
1>  ------    configuration: Debug
1>  ------    cordovaConfiguration: Debug
1>  ------    projectName: ionic2-ts-blank1
1>  ------    projectSourceDir: c:\temp\ionic2-ts-blank1\ionic2-ts-blank1
1>  ------    npmInstallDir: C:\Users\Tony\AppData\Roaming\npm
1>  ------    language: en-US
1>  ------ Adding platform: android
1>  No scripts found for hook "before_platform_add".
1>  No version supplied. Retrieving version from config.xml...
1>MSBUILD : cordova-build error : Platform android already added.
1>  Platform android already added.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========


推荐答案

确保您不在已包含离子应用程序的目录中,这可能会发生。

make sure you aren't in a directory that already contains an ionic app, this can happen.

这篇关于错误平台android已添加。在Visual Studio 2015上使用Ionic 2进行TACO的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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