Flutter doctor wont accept android SDKs

773 views
Skip to first unread message

Martin Lyne

unread,
Dec 13, 2018, 8:34:39 PM12/13/18
to Flutter Dev
Hi,
 I'm trying to get flutter working for the first time but it seems that I don't have a valid sdk version (or something?)
From flutter doctor -v
[✓] Flutter (Channel stable, v1.0.0, on Linux, locale en_US.utf8)
    • Flutter version 1.0.0 at /home/vagrant/development/flutter
    • Framework revision 5391447fae (2 weeks ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
 
[!] Android toolchain - develop for Android devices
    • Android SDK at /home/vagrant/development/android
    • Android NDK location not configured (optional; useful for native profiling support)
    ✗ No valid Android SDK platforms found in /home/vagrant/development/android/platforms.
      Candidates were:
        - android-23
        - android-27
        - android-28

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.io/setup/#android-setup for detailed instructions).
[!] Connected device
    ! No devices available
 

This is my second attempt with a fresh VM. I'm trying to do it all headless (no Android Studio) installing android CLI tools and flutter via the zipped files.

As you can see I tried to use sdkmanager to install multiple versions of the sdk, to no avail. 

I don't know what to try next, any help greatly appreciated.

Rajil Saj

unread,
Dec 14, 2018, 5:29:50 AM12/14/18
to Flutter Dev

Hi ! Martin , This is what worked for me : I installed android studio (latest version) , with SDK updated latest version.
I downloaded Flutter SDK and put it somewhere in my OS. I set all flutter required package installations
after that only after that I installed flutter and dart plugin under android studio3.

When done with all thos steps, I started again android studio find out New Project Flutter under main android studio entrance. It asked for flutter sdk path (I set that) 
and now I'm keep learning / teaching myself flutter.

Find in attachments some helpfull pictures.
And tell me if you're right in your side.

@Rajil
download.png
Screen Shot 2018-12-13 at 1.05.53 AM.png
Screen Shot 2018-12-13 at 12.22.07 AM.png
Screen Shot 2018-12-13 at 12.24.47 AM.png
Screen Shot 2018-12-13 at 12.28.08 AM.png

Gregg Reynolds

unread,
Dec 14, 2018, 4:26:40 PM12/14/18
to Martin Lyne, Flutter Dev
Obvious response: install the AndroidStudio. Assuming you have a good reason to not do that, what is actually in /home/vagrant/development/android/platforms


--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Martin Lyne

unread,
Dec 17, 2018, 9:51:19 AM12/17/18
to Flutter Dev
Thanks, I don't have a graphical UI on my VMs - everything is CLI, if Flutter requires that then I don't think it's for my project. Thanks for your help!

Gregg Reynolds

unread,
Dec 17, 2018, 2:07:54 PM12/17/18
to Martin Lyne, Flutter Dev


On Mon, Dec 17, 2018, 8:51 AM Martin Lyne <psal...@gmail.com wrote:
Thanks, I don't have a graphical UI on my VMs - everything is CLI, if Flutter requires that then I don't think it's for my project. 

You install Android Studio in order to get the tools, toolchains, etc.  You don't need to actually run the IDE - I never do. I could, but I'm a CLI guy too.

Before Studio you could download the sdk separately. Now Studio contains everything. Er, I guess you might need a GUI to run the bit where you select the API support you want etc. But Studio does include a bunch of CLI utilities that may allow you to do that without a GUI.

HTH

Gregg

Galymzhan Sh

unread,
Feb 22, 2019, 3:29:03 PM2/22/19
to Flutter Dev
You making it right, but you still missing build-tools.
try 
sdkmanager'build-tools;{VERSION_YOU_NEED_OR_LATEST}'

platforms and platforms tools are not enough. run sdkmanager --list, there you can see the list of installed packages.
flutter requirements are:
- platforms;android-{AT_LEAST_VERSION_27}
- platform-tools
- tools (you have it already)
- build-tools
Reply all
Reply to author
Forward
0 new messages