Martin Schoonbeek
Martin Schoonbeek

Reputation: 63

Ionic Cordova Android build error

I'm trying to build an Android version of a "blank" project with IONIC, now i'm stuck with this error. Has anyone experienced this before, and what would your answer be?

FAILED

BUILD FAILED

Total time: 2.179 secs FAILURE: Build failed with an exception.

[ERROR] An error occurred while running cordova build android (exit code 1).

Upvotes: 0

Views: 630

Answers (1)

mobigaurav
mobigaurav

Reputation: 194

The way i solved this problem is as below:

  1. npm uninstall cordova ionic

  2. npm install -g [email protected] [email protected]

  3. cordova platform rm android

  4. cordova platform add android

Upvotes: 1

Related Questions