[问题] [已解决]安装Android Studio

楼主: ymzk (电磁居士)   2016-04-02 22:16:08
请问怎么安装Android Studio?
我安装方式
sudo apt-add-repository ppa:maarten-fonville/android-studio
sudo apt-get update
sudo apt-get install android-studio
但android-studio打开一直写
'tools.jar' seems to be not in Studio classpath.
Please ensure JAVA_HOME points to JDK rather than JRE.
但我有在~/.bashrc中写入
export JAVA_HOME=/home/user/software/jdk1.8.0_73
export SDK_HOME=/home/user/software/Android_SDK
且~/.profile中改写PATH="$HOME/bin:$PATH:$JAVA_HOME:$SDK_HOME"
而我JAVA_HOME除了用过
/home/user/software/jdk1.8.0_73
还试过
/home/user/software/jdk1.8.0_73/lib
/home/user/software/jdk1.8.0_73/bin
/usr/lib/jvm/java-7-openjdk-amd64
/usr/lib/jvm/java-7-openjdk-amd64/bin
都无效(P.S.我每改一次就重开机一次-.-")
系统Linux Mint 17.3
作者: Hevak (Arthow Eshes)   2016-04-02 22:32:00
有试过直接装官方的吗@@ http://goo.gl/OlSl9mppa的有可能有ppa的问题另外改.bashrc可以不用重开机,直接同个终端机里面下指令:“source ~/.bashrc”就可以重读.bashrc
楼主: ymzk (电磁居士)   2016-04-02 22:57:00
@@?
作者: DolphinCP (海豚)   2016-04-02 23:55:00
之前有灌成功过,网络上有一篇蛮详细的
楼主: ymzk (电磁居士)   2016-04-03 00:17:00
官方JDK吗?官方的Android Studio一样无效

Links booklink

Contact Us: admin [ a t ] ucptt.com