Error to run Android Studio

后端 未结 17 2142
执笔经年
执笔经年 2020-12-22 17:43

I have installed Android Studio and I followed all steps described here

But when I start studio.sh I got an error with this message:

17条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-22 18:21

    On ubuntu I have tried all the methods that are described here but none worked.

    What I did in the end was to:

    • download JDK from oracle, extract the archive

    • edit android-studio/bin/studio.sh and add at the top

      export JAVA_HOME=/path/to/jdk

    • save the file and cd android-studio/bin and launch Android Studio: ./studio.sh

提交回复
热议问题