Recently I migrated to the New Android Studio IDE based on IntelliJ
The Guides i followed were:
https://developers.google.com/maps/
First you must give more information about the error. Instead of using the external compiler you must try to use the internal compiler (changing the compiler settings)