How do I set the Java environment variables in fish

Please help me, I tried everything I knew but this is the first time I use Shell Fish
I have using but have errors

Android

set --export ANDROID_HOME $HOME/Android/Sdk

set -gx PATH $ANDROID_HOME/emulator $PATH;

set -gx PATH $ANDROID_HOME/tools $PATH;

set -gx PATH $ANDROID_HOME/tools/bin $PATH;

set -gx PATH $ANDROID_HOME/platform-tools $PATH;

Please don't post multiple time.

And fish is very different from bash. To try bash,

chsh /bin/bash
1 Like

That fish is very different from bash I know, you don't have to tell me.
I've also tried bash, but without success.

Such as what?

2 Likes