WordPress LMS for Web and mobile › Forums › Ionic App Support › Cordova Error
Tagged: cordova, failed
I’m trying to build the Android apk but, I get this error:
Failed to find ‘ANDROID_HOME’ environment variable. Try setting it manually.
Failed to find ‘android’ command in your ‘PATH’. Try update your ‘PATH’ to include path to valid SDK directory.
[ERROR] An error occurred while running subprocess cordova.
cordova build android –release exited with exit code 1
I tryed several solutions but I get the same error.. I’m missing something?. I really need help with this please.
Issue seems to be connected with Java or android studio environment variables .
Please make sure that you have installed and setup android studio in your system .
I found one relatable link to configure the paths :
Yes, It was the solution but… I still get this error:
I search solutions but the only I can do is uninstall Cordova and install Cordova again.. but the error remain.
Which command you are using ,
You can use ionic cordova build android command to build android debug app.
is that your ionic serve works for app ??
Also you can do first remove android platform and then add it
cordova platform rm android
cordova platform add [email protected]