Closed abitrolly closed 2 years ago
The Android Studio snap is isolated from your environment, so any environment variable exported by it will only be available to the snap itself and not your system externally, so you will have to export that variable manually unfortunately.
I am running it as ANDROID_HOME=~/Android/Sdk
now. ~/Android/Sdk
exists outside of snap, but I don't remember - isn't it android-studio
in classic confinement who downloaded and placed SDK there?
While android studio downloads the sdk, to make the sdk "readable" by other programs you have to export that variable yourself.
I am not sure if non-snap version does this, but it makes sense to setup ANDROID_HOME when SDK is installed, so that other programs like
gradle
can find it. Example