Error running Ionic cordova run android

I just started a new project and run ionic Lab. Works fine in window. But when I run

ionic cordova run android

Please HELP !! thanks

What is your ionic info output?
Is ionic cordova requirements happy?

cli packages: (C:\Users\metalhead101\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 7.1.0

local packages:

@ionic/app-scripts : 3.1.8
Cordova Platforms  : android 6.3.0
Ionic Framework    : ionic-angular 3.9.2


Node : v6.11.3
npm  : 3.10.10
OS   : Windows 10

Environment Variables:

ANDROID_HOME : not set


backend : pro

cordova requirements

Requirements check results for android:

Java JDK: installed 1.8.0

Android SDK: installed true
Android target: installed android-27,android-26

Gradle: installed C:\Program Files\Android\Android Studio\gradle\gradle-4.1\bin\gradle

I found this link. Should I go with this? please let me know…what should I follow to resolve this issue.

Your Cordova tooling seems to be out of date, which might be causing all kinds of problems.
You can read about how to figure out the current Cordova versions and how to update CLI, platforms and plugins here:

1 Like

thanks. it worked !!

1 Like