Rohit
Rohit

Reputation: 3408

Android Studio installation issue in ubuntu

Android Studio installation on Windows 7 fails, no JDK found I am facing same problem on ubuntu 12.04. I have download JDk and android studio. Same Problem of that link facing peoblem

No JDK found. Please validate either ANDROID_STUDIO_JDK, 
or JDK_HOME or JAVA_HOME points to valid JDK installation

EDIT

now facing this problem

/usr/lib/jvm/jdk1.7.0_21/bin/java: Syntax error: end of file unexpected (expecting ")")

see this image of my problem see this

Upvotes: 2

Views: 10038

Answers (2)

Sathish
Sathish

Reputation: 1475

I solved the problem combining Jerome's and Jerod's answer:

Install JDK -- sudo apt-get install openjdk-7-jdk Environment Variable -- sudo nano /etc/environment adding the following line:

JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-i386

Reboot, and Android Studio starts up. (I had added also a link to studio.sh to the main menu). Also I just found https://stackoverflow.com/a/17827697/2533809 which seems to have a nice write-up, pretty much the same answer.

Upvotes: 1

Lucifer
Lucifer

Reputation: 29632

Use following steps, to set JDK Path in uBuntu

edit your ~/.bashrc file and add the paths as follows:

insert following lines:

export JAVA_HOME=/usr/java/<your version of java>
export PATH=${PATH}:${JAVA_HOME}/bin

Upvotes: 2

Related Questions