I have found nothing to help me solve this problem, even though similar issue have been described in Stackoverflow, none which solve my problem. So here we go again.
I installed Android Studio in Ubuntu 14.04 (switching over from Windows 10). Followed the instructions as posted on Ubuntu site. Started a blank project and immediately got the following Gradle error:
Gradle sync started 8:54:11 PM Gradle sync failed: Process 'command '/opt/android-studio/jre/bin>/java'' finished with non-zero exit value 2
This is an empty project. All default settings. I'm at a loss. Maybe the ease with which I managed to get projects going in a Windows environment has led me towards unreasonable expectations with this Linux version... dunno.