Error: A problem occurred configuring root project 'android'

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: