Mark B
Mark B

Reputation: 167

Ionic Android Build Error

I'm seeing these errors after fresh ionic, cordova, and JDK update installations when I do android build:

BUILD FAILED

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

FAILURE: Build failed with an exception.

Upvotes: 1

Views: 935

Answers (2)

I had the same problem reinstalled SDK didn't work removed old sdk and reinstalled SDK did't work

You need to delete the android folder form the platform folder and execute ionic run android this will reinstall the platform automatically and build from scratch. I think the cache files are the problem so that is why I think this worked.

I hope it will also work for others.

Upvotes: 0

phreakv6
phreakv6

Reputation: 2165

You have to update to JDK 8. Looks like you have the older version 7.

Try JDK 8

and see if it helps.

Upvotes: 1

Related Questions