I couldn't start android-studio: $ /usr/bin/android-studio ERROR: Cannot start Android Studio\nNo JDK found. Please validate either STUDIO_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation. although I had JDKs installed: # java-config --list-available-vms The following VMs are available for generation-2: 1) IcedTea JDK 7.2.6.3 [icedtea-7] *) IcedTea JDK 7.2.6.3 [icedtea-bin-7] Some research on the interwebs led me to add an environment variable: vi /etc/environment Added: JAVA_HOME=/usr/lib/jvm/icedtea-7 JDK_HOME=/usr/lib/jvm/icedtea-7 Obviously, those variables will become obsolete when a new major version comes out. Installing android-studio should, by default, set the proper environment variables in the proper places so that android-studio can be started without running into this problem. I start android-studio in a chrooted environment. I don't know if it's relevant.
What I mean is that manually adding the environment variables to /etc/environment solved the problem.
Note that the package dev-util/android-sdk-update-manager has the following post-installation note, warning to run env-update and source /etc/profile in any open shells. The android-studio package should have the same warning. * Messages for package dev-util/android-sdk-update-manager-23-r1: * The Android SDK now uses its own manager for the development environment. * Run 'android' to download the full SDK, including some of the platform tools. * You must be in the android group to manage the development environment. * Just run 'gpasswd -a android', then have re-login. * See http://developer.android.com/sdk/adding-components.html for more * information. * If you have problems downloading the SDK, see https://code.google.com/p/android/issues/detail?id=4406 * You need to run env-update and source /etc/profile in any open shells * if you get an SWT error.
as explained in the handbook, you must source /etc/profile when entering a Gentoo chroot.
Oh! :s Thanks for that. Sorry for the noise. :-/