错误平台安卓已经添加.在 TACO 上使用 Visual Studio 2015 上的 Ionic 2



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

然后出现此错误:

Error       Platform android already added. 

可以做些什么来解决这个问题?

构建输出:

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.0Common7IDEExtensionsApacheCordovaToolspackagesvs-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:tempionic2-ts-blank1ionic2-ts-blank1bldAndroidDebug
1>  ------    platformConfigurationBinDir: c:tempionic2-ts-blank1ionic2-ts-blank1binAndroidDebug
1>  ------    buildCommand: prepare
1>  ------    platform: Android
1>  ------    cordovaPlatform: android
1>  ------    configuration: Debug
1>  ------    cordovaConfiguration: Debug
1>  ------    projectName: ionic2-ts-blank1
1>  ------    projectSourceDir: c:tempionic2-ts-blank1ionic2-ts-blank1
1>  ------    npmInstallDir: C:UsersTonyAppDataRoamingnpm
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 ==========

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

相关内容

  • 没有找到相关文章

最新更新