Creating Errors with Visual Studio S2013 Apache Tools for the Cordova Project

I had never before touched Cordoba and Ion, but yesterday I raised the question of creating a simple Android application, as described in this article. This article uses the Ionic SideMenu Source Template project for Cordoba . This is a small and simple project that includes and demonstrates the roles and components in the Cordova mobile application and contains almost only HTML 5, CSS and JavaScript with the Ionic library for all of these.

When I first create a project, in accordance with the tutorial article, I expect the application to launch in the Android emulator. Instead, I get two very unfamiliar build errors:

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 

I also have a warning:

 Warning 1 Acquiring Cordova Tools. Any build cancellation requests will be processed after acquisition has completed. IonicSideMenuStarter 

Just before opening the project, I downloaded and installed Cordova tools for VS 2013 CTP 3.2. My IDE is a version of VS 2013 Update 5, running on Win 10, updated from Win 7 just a few days ago.

+5
source share
1 answer

Make sure that you have installed all the requirements found here .

Secondly, make sure everything is configured correctly, as described here , pay special attention to setting up the Android SDK.

Finally, you will need to update the system variables.

Follow these steps and you must be gold.

0
source

All Articles