简体   繁体   中英

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

  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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM