Apache cordova visual studio 2013

I'm having trouble getting Cordoba to work properly. Can you help me find a solution to this problem?

Error 2
The command ""C:\Users\D\AppData\Roaming\npm\node_modules\vs-mda\vs-cli" prepare --platform iOS --configuration Debug --projectDir . --projectName "BlankCordovaApp2"" exited with code 1.
C:\Users\D\AppData\Roaming\npm\node_modules\vs-mda-targets\Microsoft.MDA.targets
115
5
BlankCordovaApp2

JAVA_HOME = C: \ Program Files (x86) \ Java \ jdk1.7.0_55

ANT_HOME = C: \ apache- ant -1.9.3

ANDROID_HOME not defined

Even after rebooting my system, this problem persists. I cannot run builds for any of the available emulators.

+4
source share
3 answers

It seems you are setting your paths wrong. Make sure the system variables are set as follows:

Android

- Ensure that you have updated the SDK API level 19 through the SDK Manager
- Set the ADT_HOME environment variable to the SDK install location (default: C:\Users\<user>\AppData\Local\Android\android-sdk)
- Add to System Path: %ADT_HOME%\tools;%ADT_HOME%\platform-tools

Note: ADT_HOME is NOT ANDROID_HOME

Java (x86 version only)

- Set the JAVA_HOME environment variable to C:/Program Files/Java/jdk1.7.0_55
- Add to System Path: %JAVA_HOME%\bin

Ant

- Set the ANT_HOME environment to point to the Ant folder path (C/ant-1.x.x)
- Add to System Path: %ANT_HOME%\bin

. .

. iOS, Mac .

* (PDF)

+2

1: can ensure our Environment variables using Enironment Variable Settings from Visual Studio. , .

ant " 8"

2: Rename "ANDROID-HOME" to "ADT-HOME"

0

Try using the Visual Studio settings. Choose Tools-> Options-> Cross-platform-> C ++ There you can set the paths for Android SDK and NDK, JDK and Apache Ant

0
source

Source: https://habr.com/ru/post/1540935/


All Articles