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.