0

After getting this error I tried solutions I could find and installed Android SDK Command-line Tools (latest) from android studio and tried running flutter doctor again and got this error (translation: could not find or load main class).

1 Answers1

-1

Open your android studio> tools> system settings> android sdk> select android sdk command line tools, ..build tools, ..sdk platform tools, ..sdk tools > Click OK. Also take a note of the sdk installation location given on top. You might need it further.

Please post the result of flutter doctor -v from a command prompt if you need further help.

Melvin Calvin
  • 143
  • 10
  • this didn't work, all those tools were already installed, I tried unnistalling them and installing them again but when running flutter doctor and flutter doctor --android-licenses again the same errors showed up. – Diego del Hierro Jul 19 '21 at 00:24
  • This issue has been solved by the above steps before. If you couldn't provide more information in the questions, that is all how people could try to help. Also, I have asked you for posting the result of a more detailed flutter doctor output (not the usual one, Note that the command I have given in the answer has an extra parameter). You can post those too if you want specific help. – Melvin Calvin Jul 20 '21 at 16:51