我以前从未接触过 Cordova 或 Ionic,但昨天我进行了设置以构建一个简单的 Android 应用程序,如 this article. 中所述。文章使用项目Ionic SideMenu Starter Template for Cordova .这是一个小而简单的项目,包括并演示了 Cordova 移动应用程序中的角色和组件,并且几乎只包含 HTML 5、CSS 和 JavaScript,以及所有这些的 Ionic 库。
当我第一次构建项目时,根据教程文章,我希望应用程序在 Android 模拟器中启动。相反,我收到了两个非常陌生的构建错误:
Error 2 C:\Development\Cordova\Golf\Code\IonicSideMenuStarter\bld\Debug\platforms\android\cordova\build.bat: Command failed with exit code 2 C:\Development\Cordova\Golf\Code\IonicSideMenuStarter\ERROR building one of the platforms 1 1 IonicSideMenuStarter
Error 3 C:\Development\Cordova\Golf\Code\IonicSideMenuStarter\bld\Debug\platforms\android\cordova\build.bat: Command failed with exit code 2 C:\Development\Cordova\Golf\Code\IonicSideMenuStarter\MDAVSCLI 1 1 IonicSideMenuStarter
我也有警告:
Warning 1 Acquiring Cordova Tools. Any build cancellation requests will be processed after acquisition has completed. IonicSideMenuStarter
在打开项目之前,我下载并安装了 Cordova Tools for VS 2013 CTP 3.2。我的 IDE 是 VS 2013 Update 5,在几天前从 Win 7 升级的 Win 10 上运行。
最佳答案
确保您已安装所有要求 found here .
其次,确保一切都正确配置为 described here ,特别注意Android SDK设置。
最后,您需要更新您的 system variables .
按照这些步骤,你应该是金色的。
关于visual-studio - 使用 Visual Studio S2013 Apache Tools for Cordova 项目生成错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32158784/