---
title: "How do you fix \"Android license status unknown\" in flutter doctor?"
description: "Run flutter doctor --android-licenses to accept the SDK licenses. If it fails, install the Android command-line tools and point Flutter at the SDK."
url: "https://bugsee.com/answers/flutter/fix-android-licenses-not-accepted/"
---

# How do you fix "Android license status unknown" in flutter doctor?

Run `flutter doctor --android-licenses` and accept each prompt. If the command fails, install the Android SDK command-line tools and make sure Flutter can find the SDK.

```bash
flutter doctor --android-licenses

# If it reports missing cmdline-tools or an unknown SDK location:
# 1. Android Studio > Settings > Languages & Frameworks > Android SDK > SDK Tools
#    and install "Android SDK Command-line Tools (latest)"
# 2. Tell Flutter where the SDK lives
flutter config --android-sdk /path/to/Android/sdk
flutter doctor -v
```

Java problems cause the same message. The licenses tool needs a working JDK, so check that `java -version` runs and that `flutter doctor -v` shows the JDK Android Studio uses. After the licenses are accepted, `flutter doctor` should list the Android toolchain as ready.

## Related questions

- [How do you detect the platform your Flutter app is running on?](https://bugsee.com/answers/flutter/detect-the-host-platform/)
