Corova build android error: the system cannot find the path specified. Error: cmd: command failed with termination code 1

I am very new to Ionic2 app development and trying to create an Android app with it. I want to run the application in Visual Studio emulator, and I get the error below when running the "corova build android" command. Please, help! Thanks in advance!

**C:\Devlopment ionic\sample\sampleapp>cordova build android
ANDROID_HOME=C:\Users\d.dutta.chowdhury\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_131
The system cannot find the path specified.
Error: cmd: Command failed with exit code 1**

enter image description here

+6
source share
2 answers

just downgrade your Android version to 5

cordova platform rm android

then

cordova platform add android@~5

it worked for me.

+4
source

I have the same problem and I used this command to create a project to display the entire log with which it fails,

cordova build -d

gradle, sdk, . gradle .

+1

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


All Articles