A problem occurred evaluating root project 'android'

I believe the error message suggests running with --stacktrace. That would help a lot, because it would show where exactly the error is coming from.

you can use this particular command ro solve this error: Ionic cordova resources.

the same happened to me, what i did to solved it was open , Android Studio, click on Run App, choose my device that is conected and then click in OK, this just to run a simple template, and the on the CLI, i execute the command line ionic cordova run android --device and it works on my android device, NOT a virtual device, a real one.
i think that happens because the device is in a state of "rest, and doing this the system recognized the device, so the ionic CLI can run the command line on it

Hope this helps to you: https://stackoverflow.com/a/31461423/1077309