Hello. Before that he worked in the studio under win7 , everything was fine. Yesterday I installed Xubuntu , installed Android studio , sdk and jdk 1.8 . Created a new project and got this: Error:Process 'command '/opt/android-studio/jre/bin/java'' finished with non-zero exit value 2.
In the logs it writes:
12.13.32 Gradle sync started
12.13.32 Gradle sync failed: Process 'command' / opt / android-studio / jre / bin / java '' Finished with non-zero output value 2 Consult IDE log for more details (Help | Show Log)
I read the topic on stackoverflow , but there’s a completely different problem, as I understand it, because I did not add any libraries. Clean studio with a blank project. Tell me, what can I do?
Version gradle 2.2.2 .
UPD: I tried to change the owner of the file /opt/android-studio/jre/bin/java , which it swears (owned by root), did not help. multidex in gradle.build registered.
UPD2: Fixed this problem by specifying the path to the desired jdk version in the settings, but now a new one has appeared. Either it hangs when opening a project on gradle build running and gives a bunch of errors in the gradle console, or it opens the project normally, but highlights it with red R. The Rebuild project does not help.
In the console, it swears at some threads and it writes:
AAPT err (Facade for 20121472): /home/javir/Android/Sdk/build-tools/25.0.1/aapt: 3: /home/javir/Android/Sdk/build-tools/25.0.1/aapt: Syntax error : Unterminated quoted string