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
./gradlew
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> SDK location not found. Define location with sdk.dir in the local.properties file or
with an ANDROID_HOME environment variable.