1

i want to try android coding without android studio. i installed android command line tools and have android-sdk platforms like this.i also installed vs code. and flutter as the official docs says. but i have this problem:

enter image description here

enter image description here

i also changed the system environment variables.

this is the path of the android command line tools

enter image description here

and this is the system environment variables :

enter image description here

this is the platforms folder :

enter image description here

where is my mistake?

5
  • Maybe the android platform is not installed , if you only installed the command line tools you install them with sdkmanager . Please add a screenshot of your platforms folder Commented Nov 1, 2019 at 17:01
  • @ValdaXD added the screenshot of platforms folder Commented Nov 1, 2019 at 17:31
  • lol Welcome to flutter world. I faced this problem for 3 days. Commented Nov 1, 2019 at 17:31
  • @kam1234 and did you solved the problem? :D Commented Nov 1, 2019 at 17:33
  • yes i did but it takes time to solve this problem and i use ubuntu Commented Nov 1, 2019 at 17:35

1 Answer 1

1

So it seems like platforms-28 is installed and i believe that it is , and flutter it detecting the folder and telling you that it knows , so the enviroment variable it's also set.

When this happens to me i do the following :

Add the android folder to PATH as well.

Restart the pc[the enviroment variables are kinda weird if i don't do that]

delete the android-28 , the platform tools folder and do and the build tools[wich you don't even have there] , and go to my android/tools/bin [in your case is only tools/bin ] in the command line and launch a whole new sdkmanager "platform-tools" "platforms;android-28" "build-tools;29.0.0"

oh and then i sdkmanager --licenses to validate all.

then restart again just in case

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.