Eclipse also gives you this message when some gradle task fails. You can run gradlew build manually in the directory and also append --stacktrace. This will give you better infos about what is wrong.
gradlew build
--stacktrace