Problem when creating Android Studio project on Ubuntu

Asked

Viewed 418 times

3

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

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

  • 1

    Try this: http://askubuntu.com/questions/467870/how-to-set-the-jdk-for-android-studio

  • open the terminal and enter java -version, and infome the version that was displayed

1 answer

1

Follow the following steps :

  • terminal opened on Ubuntu : sudo apt-get install oracle-java7-installer
  • open android studio : FILE> Outras Configurações> Estrutura do Projeto Padrão. In the section JDK Localização put the Oracle Java7 installation url, 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 it takes me Java7 1.5GB of RAM, and JAVA8 takes 2GB.

  • Welcome to Stack Overflow in Portuguese. In case you Haven’t noticed, this is the SO Portuguese community, You should translante your Answer

Browser other questions tagged

You are not signed in. Login or sign up in order to post.