Android Studio error after ./studio.sh

前端 未结 12 1434
名媛妹妹
名媛妹妹 2021-01-30 10:49

After ./studio.sh in a terminal I get this error \"tools.jar is not in android studio classpath Please ensure JAVA_HOME points to JDK rather than JRE\"

12条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-30 11:25

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

    1. Install JDK -- sudo apt-get install openjdk-7-jdk
    2. Environment Variable -- sudo nano /etc/environment adding the following line:
    3. JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-i386
    4. 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.

    (I'm using Debian 7 Wheezy)

提交回复
热议问题