Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
212 views
in Technique[技术] by (71.8m points)

Flutter does not find android sdk

I just tried intalling flutter and since I already had android studio and the android sdk installed I just followed the installation of flutter. Here is my problem: When I run

flutter doctor

It tells me

  [√] Flutter (Channel beta, v0.1.5, on Microsoft Windows [Version 10.0.16299.248], locale en-US)
    ? Flutter version 0.1.5 at C:UsersNamegitflutter
    ? Framework revision 3ea4d06340 (2 weeks ago), 2018-02-22 11:12:39 -0800
    ? Engine revision ead227f118
    ? Dart version 2.0.0-dev.28.0.flutter-0b4f01f759

[X] Android toolchain - develop for Android devices
    X ANDROID_HOME = C:UsersNameAppDataLocalAndroidsdkAndroid
      but Android SDK not found at this location.

[√] Android Studio (version 3.0)
    ? Android Studio at C:Program FilesAndroidAndroid Studio
    ? Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

Which tells me that flutter is not finding my Android sdk (even though it is the path that android studio uses aswell - and android studio is working fine)

I already tried reinstalling the sdk but it did not work.

Im very thankful for any help with this.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Flutter provides a command to update the Android SDK path:

Use flutter config --android-sdk <path-to-your-android-sdk-path>


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...