Just installed android studio 2.2, created a new project and the error immediately fell out

Error: Process' command '/ home / artempopov / Programs / android-studio / jre / bin / java' 'finished with non-zero exit value 2`'

Ubuntu system 16.04. JRE 1.8.0. OpenJDK. Please help me figure out what's wrong.

UPD: After reinstalling on a 64-bit system, the error disappeared. In the system requirements, it is indicated that a 64-bit distribution kit is required. The question is closed, thank you all for your help)

  • Clean / Rebuild project tried to do? - Kirill Stoianov
  • Yes, it does not help. - Artem Popov

1 answer 1

First try this: You need to register in build.gradle

defaultConfig { applicationId "com.am.android" minSdkVersion 13 targetSdkVersion 23 // Enabling multidex support. multiDexEnabled true } dexOptions { incremental true javaMaxHeapSize "2048M" jumboMode = true } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com.android.support:multidex:1.0.1' } 

Most likely it. You must have changed something in build.gradle

If it did not help.
You may have a code for the similarity:

 compile 'com.squareup.retrofit:retrofit:1.9.0' compile 'com.squareup.okhttp:okhttp-urlconnection:2.2.0' compile 'com.squareup.okhttp:okhttp:2.2.0' compile files('libs/spotify-web-api-android-master-0.1.0.jar') compile files('libs/okio-1.3.0.jar') 

Need to comment out.

  • Unfortunately, the removal of gradle did not help. JDK is worth it. - Artem Popov
  • changed the answer. @ ArtyomPopov - GuardFromUA