Created a new project, got the following in the console:
Gradle 'HelloWorld' project refresh failed Error:Process 'command '/usr/lib/android-studio/jre/bin/java'' finished with non-zero exit value 2 In Google, I saw that the problem could be with java. Checked:
java -version java version "1.8.0_111" Java(TM) SE Runtime Environment (build 1.8.0_111-b14) Java HotSpot(TM) Server VM (build 25.111-b14, mixed mode) System-Ubuntu 16.04. What could be the problem?