android - Apache Cordova 错误的 Visual Studio 工具

标签 android cordova visual-studio-2013 typescript visual-studio-cordova

我最近在 Windows 8.1 上运行的 Visual Studio 2013 中安装了 Visual Studio Tools for Apache Cordova CTP 3.1。当我尝试运行一个标准的新 Cordova 项目(在 Android 模拟器或设备中)时,我收到以下错误。该项目名为 MyCordova01:

OutPut 窗口显示以下消息:

1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\Microsoft.TypeScript.targets(103,5): warning : The TypeScript Compiler was given no files for compilation, so it will skip compiling. 1> GeneratedJavascript= 1> c:\Users\Vijay.Agarwal\Documents\Visual Studio 2013\Projects\BlankCordovaApp1\BlankCordovaApp1>call "C:\Program Files (x86)\nodejs\"\nodevars.bat 1> Your environment has been set up for using Node.js 0.10.33 (ia32) and npm. 1> ------ Ensuring correct global installation of package from source package directory: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\EXTENSIONS\L2TH1VSB.CIX\packages\vs-mda ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

错误列表显示 1 个警告

Warning 1 The TypeScript Compiler was given no files for compilation, so it will skip compiling. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\Microsoft.TypeScript.targets 103 5 BlankCordovaApp8

请帮我解决这个错误/问题。

最佳答案

  1. typescript 不是错误,它发生在您创建 JavaScript cordova 项目时,如果您创建 typescript cordova,此警告将消失!

  2. 通常我们对这种构建错误的第一个尝试是通过 visual studio 工具-选项-apache cordova 工具清除 cordova 缓存,然后重新构建项目。

确保您在执行第 2 步时已连接到互联网。

关于android - Apache Cordova 错误的 Visual Studio 工具,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30511808/

相关文章:

java - Android中如何获取亮度百分比?

android - react native 谷歌登录 api 不工作

java - 在 android 中膨胀对话框 fragment 时出现未知类异常

c# - 在 visual studio 上使用 c#、mvc 管理我的用户

java - 如何在Android中逐行添加连续的布局

android - 如何使用卡在加载屏幕上的 iron-router 调试 meteor/cordova 应用程序?

javascript - 超链接点击事件不适用于 phonegap 但适用于浏览器

android - Phonegap Android(不在安卓高清手机上显示谷歌广告)

asp.net - 在完整的 IIS 中调试 ASP.NET Web 表单

visual-studio - Visual Studio 2013拼写检查器