jitpack / jitpack.io

Documentation and issues of https://jitpack.io
MIT License
2.54k stars 186 forks source link

Failed to install the following Android SDK packages as some licences have not been accepted. #3687

Closed ashLikun closed 2 years ago

ashLikun commented 5 years ago

A problem occurred evaluating script.

Failed to install the following Android SDK packages as some licences have not been accepted. platforms;android-27 Android SDK Platform 27 build-tools;27.0.3 Android SDK Build-Tools 27.0.3 To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager. Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html

Using Android SDK: /opt/android-sdk-linux

NickelBalne commented 4 years ago

Greetings! Run the following command on the Terminal as administrator

flutter doctor --android-licenses

It should count the number of licenses that you have not accepted and then ask you for a review press Y and then accept all the licenses you need.

I hope it helps, have a nice happy coding hours! Cheers!!!

it worked me

youguanxinqing commented 4 years ago

Greetings! Run the following command on the Terminal as administrator

flutter doctor --android-licenses

It should count the number of licenses that you have not accepted and then ask you for a review press Y and then accept all the licenses you need.

I hope it helps, have a nice happy coding hours! Cheers!!!

woked for me, thanks!

XeroHero commented 4 years ago

Similaar issue here when running builds on Travis CI for Android.

"Failed to install the following Android SDK packages as some licences have not been accepted.
 build-tools;29.0.3 Android SDK Build-Tools 29.0.3"
jefelon commented 4 years ago

¡¡¡Oye!!!

Sólo tiene que abrir terminal o git bash y dirigirse a su directorio de estudio Android. Command Terminal se recomienda para usuarios de Windows.

Para usuarios de Windows: cd C:\Users\{USERNAME}\AppData\Local\Android\Sdk\tools\bin

y luego ejecutar esto para aceptar licencias no aceptadas. sdkmanager.bat --licenses

y luego simplemente revisar y aceptarlos escribiendo 'y' y pulse enter hasta que esté hecho..

Referencia:

https://www.youtube.com/watch?v=c7HmwiTtYPE&t=580s

Good

alexjsmc commented 4 years ago

ubuntu 18.04 (SOLVED)

Run

flutter doctor --android-licenses

indatawetrust commented 4 years ago

my solution android update sdk --no-ui --all --filter build-tools-28.0.3,android-28,extra-android-m2repository

rajawalid5d commented 4 years ago

i have the same problem, and i switch my jdk into jdk8 following this guide https://dev.to/thegroo/install-and-manage-multiple-java-versions-on-linux-using-alternatives-5e93 then i run sdkmanager --licenses then it run smooth but make sure you have install jdk8 not only jre8 check your java version using java --version, android using java8

Judiks commented 4 years ago

try this open cmd redirect to User\AppData\Local\Android\Sdk\tools\bin> then write sdkmanager.bat --licenses User\AppData\Local\Android\Sdk\tools\bin>sdkmanager.bat --licenses

kaxp commented 4 years ago

I was getting this error when running my Flutter application : Failed to install the following Android SDK packages as some licences have not been accepted. build-tools;28.0.3 Android SDK Build-Tools 28.0.3

Solution: I tried sdkmanager.bat --licenses and flutter doctor --android-licenses, but it didn't help. So I manually downloaded the SDK build-tool 29.0.2 and put it inside Android/Sdk/build-tools folder.

JakubGrzelak00 commented 4 years ago

I had the same problem. Try typing flutter doctor to cmd and then it will tell you what to do.

GnApollo commented 4 years ago

@JakubGrzelak00 did you install android studio ?

JakubGrzelak00 commented 4 years ago

@samulon13 Yes I did and face this error with first run on project. I'm new to flutter and this is the only working explanation that I found.

GnApollo commented 4 years ago

this isnt about flutter. this is a common problem when we arent yet familiarize with android studio.

run sdkmanager --licenses in your terminal/cmd and accept licenses. make sure you are in administrator mode.

GnApollo commented 4 years ago

sometimes you might also need to reboot your system.

rajanrek commented 3 years ago

go to in your project and than >build.gradle file ->dependencies-> this was my class path -> classpath("com.android.tools.build:gradle:3.4.2") This is what i replaced it: classpath('com.android.tools.build:gradle:3.5.3') classpath 'com.google.gms:google-services:4.3.4' upgrade gradle version it will work , this worked for me

athamour1 commented 3 years ago

I reinstall the build tools and this resolved th problem

necip-yolcu commented 3 years ago

https://www.youtube.com/watch?v=g789PvvW4qo really helped me

ebmbook commented 3 years ago

Installing anything through SDK manager will automatically pops up a license agreement box and that's it.

For example, install "Google Play Licensing Library":

SDK Manager >> Android SDK >> SDK Tools >> Google Play Licensing Library

You will then be able to see the licenses folder under the android installation folder for example:

C:\Users\yourname\AppData\Local\Android\licenses

12mohaned commented 3 years ago

I believe the link below will help to resolve the issue

https://vfac.fr/blog/fix-flutter-android-licenses-exception

fengyongge commented 3 years ago

$ANDROID_HOME/tools/bin/sdkmanager --licenses

That is work for me, Tks!

A2Ryuga commented 3 years ago

I have that problem Can anyone help me with that An error occurred while trying to generate project files.

Some Platforms were skipped due to invalid SDK setup: Mac, IOS, Android, Lumin. See the log file for detailed information (/Users/sidd/Library/Application Support/Epic/UnrealBuildTool/Log_GPF.txt)

Discovering modules, targets, and source code for the project... WARNING: Failed to query Xcode version Triggered an exception while looking for SDK directory in Xcode.app System.IO.DirectoryNotFoundException: Could not find a part of the path '/Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs'. at System.IO.Enumeration.FileSystemEnumerator1.CreateDirectoryHandle(String path, Boolean ignoreNotFound) at System.IO.Enumeration.FileSystemEnumerator1.Init() at System.IO.Enumeration.FileSystemEnumerator1..ctor(String directory, Boolean isNormalized, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerable1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized) at System.IO.Enumeration.FileSystemEnumerableFactory.UserDirectories(String directory, String expression, EnumerationOptions options) at System.IO.Directory.InternalEnumeratePaths(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options) at System.IO.Directory.GetDirectories(String path) at UnrealBuildTool.AppleToolChainSettings.SelectSDK(String BaseSDKDir, String OSPrefix, String& PlatformSDKVersion, Boolean bVerbose) in /Users/build/Build/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/ToolChain/AppleToolChain.cs:line 87 ERROR: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs

vadim566 commented 2 years ago

just go reinstall the sdk, 1.go to the sdk manager 2.check out the sdk u want to reinstall 3.after uninstall, recheck the sdk 4.and it should work

github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 years ago

This issue was closed because it has been inactive for 14 days since being marked as stale.