My system wide jre implementation is 1.6.0_37 provided by icedtea-bin:6 but for a specific user It's Oracle's 1.8.0_66. After android-studio update, when that user runs android-studio, It gets an "Unsupported Java" error telling It needs Java 1.8. Is this a bug? Reproducible: Always Steps to Reproduce: 1.set system java vm to to something other than Oracle 1.8 2.set user java vm to Oracles 1.8 3.install dev-util/android-studio 4.start android-studio Actual Results: It throws an error, telling It wants java 1.8 Expected Results: software run with java 1.8
Can you try deleting /opt/android-studio/jre and testing if everythign works for you? the studio.sh startup script has: # --------------------------------------------------------------------- # Locate a JDK installation directory which will be used to run the IDE. # Try (in order): STUDIO_JDK, studio.jdk, ../jre, JDK_HOME, JAVA_HOME, "java" in PATH. # --------------------------------------------------------------------- So i think it should all work. if it does then i'll make the ebuilds not have it at all.
(In reply to Jason Zaman from comment #1) > Can you try deleting /opt/android-studio/jre and testing if everythign works > for you? > > the studio.sh startup script has: > # --------------------------------------------------------------------- > # Locate a JDK installation directory which will be used to run the IDE. > # Try (in order): STUDIO_JDK, studio.jdk, ../jre, JDK_HOME, JAVA_HOME, > "java" in PATH. > # --------------------------------------------------------------------- > > So i think it should all work. if it does then i'll make the ebuilds not > have it at all. It did work. thanks.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4df9c26f0de7d3d83f275b11aaef4564a947fa5f commit 4df9c26f0de7d3d83f275b11aaef4564a947fa5f Author: Jason Zaman <perfinion@gentoo.org> AuthorDate: 2018-06-24 08:25:21 +0000 Commit: Jason Zaman <perfinion@gentoo.org> CommitDate: 2018-06-24 08:25:32 +0000 dev-util/android-studio: bump to 3.1.3.0 Closes: https://bugs.gentoo.org/658616 Closes: https://bugs.gentoo.org/613868 Package-Manager: Portage-2.3.40, Repoman-2.3.9 dev-util/android-studio/Manifest | 1 + .../android-studio-3.1.3.0.173.4819257.ebuild | 108 +++++++++++++++++++++ 2 files changed, 109 insertions(+)