I tried: flatter doctor –android-licenses and PS C:UsersaiqinAppData Local Android Sdktoolsbin> ./sdkmanager –licenses If you have accepted license agreements on one workstation, but want to create your projects on another, you can export your licenses by copying through the accepted licenses directory. Follow these steps to copy the licenses to another computer: Copy your license file into the Android SDK from another work area (z.B. Jenkins) if you | sdkmanager –licenses, then we print the contents of $ANDROID_HOME/licenses/android-sdk-license, then I deleted the system files that were no longer used: apt remove android sdk adb. You can solve that. Please open platforms/Android in Android Studio. Then, the same error is displayed in the build protocol as an error. You will find the link to the agreement missing. You can simply click on it to download and accept it. Thanks guys, it worked. But in my env sdkmanager –update fails.

Here`s my quick hack job. – Run: yes| sdkmanager –licenses – run : yes | sdkmanager –update || exit 0 The Android tool is outdated and you should use the sdk manager instead. sdkmanager also writes the license file if you accept it for the first time. The license changes depending on the SDK you are using, so although the Check Google API 23.0.1 command in Android Studio accepts all licenses with sdkmanager –license Android licensing logic in Flatter Doctor is implemented with sdkmanager –licenses, it seems correct. Try cleaning up the floating project and opening the Android project with Android Studio. You can think of it as a pure Android project and check why it happens. This is much more flexible and does not require manual intervention. The number 30 is arbitrary, should be enough to cover the number of license acceptances, but can be increased if necessary If you accept the license agreements with the SDK manager, Android Studio creates a license directory in the SDK home directory. This license directory is required to allow Gradle to automatically download missing packages. In addition, we found sdk managers under /var/lib/jenkins/tools/android-sdk/tools/bin. If yours isn`t there, you can find it with find/name “sdkmanager,” which I had updated previously via the command line, and I guess the Android SDK manager has a more complete way to dissolve dependencies, including licensing. The official solution: For more information, check out the link printed in the log (d.android.com/r/studio-ui/export-licenses.html), but in short, it can be done by: You can accept the entire license by running the following command: Maybe I`m late, but it helped me accept SDK licenses for OSX, The problem is solved…