Getting a “Cordova is not a valid task” error when trying to build an Ionic app for Android on macOS

0

I am using Android Studio on my macOS El Capitan (10.11) and I am trying to build an Ionic app for Android with the command:

ionic cordova run android

But every time I hit Enter, the app build fails and it shows that Cordova is not a valid task.

Here are versions of relevant software:

  • Cordova CLI: 6.4.0
  • Ionic Framework Version: 2.3.0
  • Ionic CLI Version: 2.1.8
  • Ionic App Lib Version: 2.1.4
  • Ionic App Scripts Version: 1.1.4
  • ios-deploy version: Not installed
  • ios-sim version: Not installed
  • OS: OS X El Capitan
  • Node Version: v7.0.0
  • Xcode Version: Not installed

shrinand aggarwal

Posted 2019-05-14T13:03:41.163

Reputation: 1

No answers