Recent ~amd64 version of android-studio package (dev-util/android-studio-3.1.3.0.173.4819257) doesn't create symlink /opt/android-studio/jre pointing to /etc/java-config-2/current-system-vm, as last stable version dev-util/android-studio-3.1.2.0.173.4720617 does. As a result no code building is possible, because android-studio is complaining about lack of JRE. Creating this symlink manually helps restoring normal behavior.
Another options, which seems to work, is to manually unpack jre (Android Studio embedded JDK) folder from android-studio-ide-173.4819257-linux.zip to /opt/android-studio/
hm okay the jre symlink is needed if "Use Embedded JDK" is ticked under "File->Project Structure" I removed it because of https://bugs.gentoo.org/613868 so looks like the right way is to move JAVA_HOME before the bundled jdk parts in studio.sh
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50b76a4c5cbb02f0cb677e9be122597cbdd22d76 commit 50b76a4c5cbb02f0cb677e9be122597cbdd22d76 Author: Jason Zaman <perfinion@gentoo.org> AuthorDate: 2018-07-20 06:33:04 +0000 Commit: Jason Zaman <perfinion@gentoo.org> CommitDate: 2018-07-20 06:40:26 +0000 dev-util/android-studio: keep jre symlink but use JAVA_HOME first Closes: https://bugs.gentoo.org/660404 Package-Manager: Portage-2.3.40, Repoman-2.3.9 ...> android-studio-3.1.3.0.173.4819257-r1.ebuild} | 6 +++- .../files/0001-use-java-home-before-bundled.patch | 39 ++++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-)