Android Studio error after ./studio.sh

前端 未结 12 1208
名媛妹妹
名媛妹妹 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:23

    I solved this by installing the jdk. This sounds annoyingly simple but I missed it. I thought I Had installed the jdk, but I had actually installed the jre.

    Wrong:

    sudo apt-get install openjdk-7-jre
    

    Right:

    sudo apt-get install openjdk-7-jdk
    

    As soon as I did that, it started up fine for me. The things we miss sometimes....

提交回复
热议问题