Flutter, unable to resolve dependencies

3,586

Change sdk.dir in local.properties

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

Share:
3,586
MOHAMMED NIHAL
Author by

MOHAMMED NIHAL

Updated on December 03, 2022

Comments

  • MOHAMMED NIHAL
    MOHAMMED NIHAL over 1 year

    I'm trying to build a simple flutter application.

    While trying to run the application in my android studio 3.0.1, the following error is displayed. Latest build tools and platform is installed.

    Resolving dependencies... Finished with error:

    • Error running Gradle: Unable to download needed Android SDK components, as the following licenses have not been accepted: Android SDK Build-Tools 25.0.3, Android SDK Platform 25

    To resolve this, please run the following command in a Terminal: flutter doctor --android-licenses

    When tried to run the above code, the below-mentioned error is displayed.

    Oops; flutter has exited unexpectedly.

    Hope anyone can help me to resolve this. Thanks in advance.