The solution for me was opening Android Studio and going to SDK Manager, switch to the SDK Tools tab and check Android SDK Command-line Tools (latest).
Don’t forget to add to your PATH the tools and platform-tools folder that are inside your SDK.
More Related Contents:
- how to solve Execution failed for task ‘:app:compileFlutterBuildDebug’
- How to build signed apk from Android Studio for Flutter
- Android Studio not showing Logcat with Flutter
- ERROR: JAVA_HOME is not set and no ‘java’ command could be found in your flutter PATH. In Flutter
- Android Studio (not installed) , when run flutter doctor while Android Studio installed on machine
- Android Studio device list stuck on loading
- XML parsing error (android studio)
- How to debug why a Gradle build failed?
- How to Add Stacktrace or debug Option when Building Android Studio Project
- Using Build Flavors – Structuring source folders and build.gradle correctly
- gradle – library duplicates in dependencies
- How to fix “unexpected element found in ” error?
- Android Studio – XML Editor autocomplete not working with support libraries
- How do I run code in the background, even with the screen off?
- findFragmentById for SupportMapFragment returns null in Android Studio
- Sign APK without putting keystore info in build.gradle
- Android Studio: Application Installation Failed
- How to use the ProGuard in Android Studio?
- Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’ in android studio
- Emulator: Warning: Quick Boot / Snapshots not supported on this machine
- Android Studio 2.0 – pause/white screen on App first run
- Difference between app-debug.apk and app-debug-unaligned.apk
- Gradle failed to sync with ‘unable to find optional library’
- Difference between Android Instrumentation test and Unit test in Android Studio?
- Flutter: Execution failed for task ‘:app:compileDebugKotlin’
- How to switch from the default ConstraintLayout to RelativeLayout in Android Studio
- Letting WebView on Android work with prefers-color-scheme: dark
- How do I add a library project to the Android Studio and use it?(Some asked dont’t take effect)
- Android studio first run stuck at “Downloading Components” window
- Android Studio Emulator “/dev/kvm is not found”