3

While integrating Flutter in Android studio getting error as * Error running Gradle: Unable to download needed Android SDK components, as the following licenses have not been accepted: Android SDK Build-Tools 26.0.2, Android SDK Platform 27 To resolve this, please run the following command in a Terminal: flutter doctor --android-licenses

6
  • What's the result of flutter doctor --android-licenses? I have seen this issue mentioned a few times recently, but don't know if something was suggested how to fix it. Commented Mar 6, 2018 at 9:49
  • sdkmanager --version failed: 1 this is the result Commented Mar 6, 2018 at 10:16
  • In menu "Tools > Android > SDK Manager > SDK tools" are there any "Update available" items? Commented Mar 6, 2018 at 10:22
  • yes, Android SDK platform tools from 27.0.0 to 27.0.1 Commented Mar 6, 2018 at 10:56
  • I this on Windows? Are you using a non-standard shell? Commented Mar 6, 2018 at 11:08

1 Answer 1

7

enter image description here Problem was with sdk path in local.properties. By default its pointing to different location. It works for me when change android sdk home dir in sdk.dir

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.