Cordova error while building android using cli

I am struggling through the cordova more than a week as I am new to it.

I have added android platform and I am facing the following issue while building that android environment:


Cordova - 6.5.0

Android SDKs - API 19 to API 25 Windows 10

Please help me as soon as possible.

1 Like

Which installation instructions did you follow for Android?

First I created project. Then I did the following commands

cordova add platform android
npm update -g cordova
ionic run android --prod --release

Then the errors occured

No I mean how did you install Android SDK, Android Studio etc.

I downloaded studio from the website given

You could try these steps if you haven’t already. It has helped me in the past.

ionic cordova platform remove android
ionic cordova platform add android
ionic cordova run android

Also share your environment configuration by running Ionic info command.

1 Like

It is not working showing the same error

$ ionic info

Your system information:

cordova CLI: 6.5.0
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v7.4.0
Xcode version: Not installed