Flutter SDK

39 views
Skip to first unread message

CSM Security Locksmiths

unread,
May 26, 2020, 8:33:44 PM5/26/20
to Flutter Development (flutter-dev)
Hello,

I'm using latest version of Android Studio and Flutter on a mac.

I have a slight problem with Flutter SDK. I think I have SDK in the right path, but when I check build.gradle file it states 'Flutter SDK not found!'
I've checked local.properties and its in the same path as when I run Flutter Doctor. Flutter Doctor returns no errors! I'm not sure what I need to do to correct error. 
Any help would be really appreciated.

Kind regards,
Chris
Screenshot 2020-05-27 at 01.04.42.png
Screenshot 2020-05-27 at 01.03.55.png

ABADA SAMUEL

unread,
May 26, 2020, 8:51:19 PM5/26/20
to CSM Security Locksmiths, Flutter Development (flutter-dev)
Try the following:
  1. File-> Settings (cmdl+alt+s)
  2. Languages and Frameworks -> Dart
  3. Check "Enable Dart support for the project..."
  4. In "Dart SDK path" click in "..." and navigate to flutter SDK directory. Under that directory, you'll find "bin/cache/dart-sdk". This is the dart sdk path you should use.
  5. Click "Apply"
  6. Close the project and open it again (sometimes you need this step, sometimes doesn't)

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/c2bb6113-f135-46f7-b132-ce0e578810b3%40googlegroups.com.

CSM Security Locksmiths

unread,
May 27, 2020, 5:22:10 AM5/27/20
to Flutter Development (flutter-dev)
Thank you Abada for your reply and information. I'll give that a try.

Kind regards,
Chris

CSM Security Locksmiths

unread,
May 27, 2020, 7:03:35 PM5/27/20
to Flutter Development (flutter-dev)
Hello Abada - It didn't work, it still shows define Flutter SDK location in build.gradle folder. I think I done it correctly, I was wondering is there a way to reinstall Flutter SDK?

Kind regards,
Chris
Screenshot 2020-05-28 at 00.00.04.png
Screenshot 2020-05-27 at 23.59.49.png

ABADA SAMUEL

unread,
May 27, 2020, 7:19:44 PM5/27/20
to CSM Security Locksmiths, Flutter Development (flutter-dev)
I read your initial complaint again. I don't think you have any issue. The build.gradle file in English language reads: if flutter root is null, echo flutter SDK not found. This does not mean your project is having issues. It is the same for everyone. Try running the application on your mobile device or emulator to confirm if the project builds.

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.

CSM Security Locksmiths

unread,
May 27, 2020, 8:03:19 PM5/27/20
to Flutter Development (flutter-dev)
Thanks for your reply again - I tried with my android phone originally, but I will try an emulator to see if it lets my app build. My basic app is finished, I was just trying to get it ready for release.


On Thursday, May 28, 2020 at 12:19:44 AM UTC+1, Abada Samuel wrote:
I read your initial complaint again. I don't think you have any issue. The build.gradle file in English language reads: if flutter root is null, echo flutter SDK not found. This does not mean your project is having issues. It is the same for everyone. Try running the application on your mobile device or emulator to confirm if the project builds.

On Wed, May 27, 2020 at 4:03 PM CSM Security Locksmiths <in...@csmsecuritylocksmiths.uk> wrote:
Hello Abada - It didn't work, it still shows define Flutter SDK location in build.gradle folder. I think I done it correctly, I was wondering is there a way to reinstall Flutter SDK?

Kind regards,
Chris

On Wednesday, May 27, 2020 at 1:33:44 AM UTC+1, CSM Security Locksmiths wrote:
Hello,

I'm using latest version of Android Studio and Flutter on a mac.

I have a slight problem with Flutter SDK. I think I have SDK in the right path, but when I check build.gradle file it states 'Flutter SDK not found!'
I've checked local.properties and its in the same path as when I run Flutter Doctor. Flutter Doctor returns no errors! I'm not sure what I need to do to correct error. 
Any help would be really appreciated.

Kind regards,
Chris

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutt...@googlegroups.com.

CSM Security Locksmiths

unread,
May 27, 2020, 8:05:35 PM5/27/20
to Flutter Development (flutter-dev)
I tried with emulator, but got same error! 

BUILD FAILED in 2s
Exception: Gradle task assembleDebug failed with exit code 1

ABADA SAMUEL

unread,
May 27, 2020, 8:25:13 PM5/27/20
to CSM Security Locksmiths, Flutter Development (flutter-dev)
To take your app to release, follow the steps in this doc:  https://flutter.dev/docs/deployment/android

For the error, can we see the full error logs from the terminal?

To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/644388f0-e722-44f2-b259-6b5f85532181%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages