Problem creating Android Studio project on Ubuntu

3

I installed Android Studio, but when I create a project or open an existing one, the following message appears:

  

Error: Could not determine Java version using executable   /usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/bin/java.

    
asked by anonymous 01.12.2015 / 01:47

1 answer

1

Follow the steps below:

  • open terminal in Ubuntu: sudo apt-get install oracle-java7-installer
  • open android studio: FILE> Outras Configurações> Estrutura do Projeto Padrão . In the JDK Localização section put the url of the Oracle Java7 installation, it is usually usr/lib/jvm/java-7-oracle/

To develop applications for Android for Android 5.0 and above you need JAVA SDK7 as I told you to install here. JAVA 8 is recommended, but I can only say that it takes me Java7 1.5 GB of RAM, and JAVA8 takes 2GB.

    
03.12.2015 / 10:20