-9

How can I install jdk 1.8 in android-studio using the command line in Ubuntu 14.04?

After installation of jdk 8 and its connect in android-studio it gives these errors in xml:

Image:-image

Image:-enter image description here

Alex Feinman
  • 5,393
  • 1
  • 30
  • 48
sushildlh
  • 8,986
  • 4
  • 33
  • 77

2 Answers2

0

write following commond in your terminal

sudo apt-get install openjdk-8-kdk
Dhaval Solanki
  • 4,589
  • 1
  • 23
  • 39
  • this command install Java 1.8 into my PC. I wanted to installation for android-studio .... thanx for your response – sushildlh May 13 '16 at 09:00
0

You might need to set what your default java version is. So that when the IDE (Android Studio) is loaded, it uses that one.

Take a look at this link

Community
  • 1
  • 1
Olaia
  • 2,172
  • 25
  • 27