Error: A problem occurred configuring root project 'android'

When I am building my ionic code for android by executing “ionic cordova build android”, I am getting this error:

Some plz help me to solve this…
@lucasbasquerotto

I don’t know exactly what caused that issue. Maybe removing the android folder in platforms and adding it again may solve it.

There is an issue like yours, maybe it can be helpful: