mateomotriz
mateomotriz

Reputation: 66

android sdkmanager tool not found (flutter)

first post here hello everyone;

im trying to setup flutter without android studio in Ubuntu 19.10, but im having some problems to set up the android sdk:

Android sdkmanager tool not found (/home/mateo/tools/bin/sdkmanager).

my sdk is actually located in /home/mateo/tools/cmdline-tools/latest/bin, how can i change the variable (or whatever it is) to point to the new location?

this is what i get in the terminal

i've already tried changing the following env variables, but the error is still there.

export ANDROID_SDK_HOME='/home/mateo/cmdline-tools/latest/bin/sdkmanager'
export ANDROID_HOME='/home/mateo/cmdline-tools/latest/bin/sdkmanager'

thanks in advance

Upvotes: 0

Views: 559

Answers (1)

Rafat Rashid Rahi
Rafat Rashid Rahi

Reputation: 629

  1. Go to Start Menu
  2. Search for "Edit the system Environmental Variables"
  3. Under the section "User Variables", create New Variable and name it "ANDROID_HOME"
  4. And give the path of "ANDROID_HOME" to your new location. Use browse directory to set SDK location
  5. Create another Variable named "ANDROID_SDK_HOME" and provide same path as previous one. That should do it

Upvotes: 1

Related Questions