Error:
Android toolchain - develop for Android devices (Android SDK version 33.0.2) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
Solution:
- Download platform tools from SDK platform tools :
- https://developer.android.com/tools/releases/platform-tools
- go to
C:\Users\<UserName>\AppData\Local\Android\Sdk
and replace the platform tools folder with the new one.
2- if a build-tools (version number) exception appears,
- go and download that build-tools with that version number from: https://developer.android.com/tools/releases/build-tools
- go to
C:\Users\<UserName>\AppData\Local\Android\Sdk\build-tools
and replace the folder with that version number with the new one.