



Made sure that there is not another Android SDK installed on my machine that I am not aware of - both ANDROID_HOME and ANDROID_SDK_ROOT (I read that the former is outdated) environment variables point to the same folder that is also configured as Android SDK location in the Android Studio SDK Manager and as an Android SDK home path in my IntelliJ project settings.Made sure that the %ANDROID_HOME%\licenses folder exists and contains license files.Installed the Android command line tools and used that sdkmanager batch file instead.Ran sdkmanager -update instead of -licenses.Ran sdkmanager -licenses with administrator priviledges.Here is what I have tried to resolve this issue: However, I still get the same error when building my LibGDX project in IntelliJ. I created an empty file at that path, ran sdkmanager again and accepted all licenses. It did not work at first because the file /users/MYUSERNAME/.android/repositories.cfg was missing. So I learned that I have to run %ANDROID_HOME%/tools/bin/sdkmanager -licenses "Failed to install the following Android SDK packages as some licences have not been accepted" error I found the following thread with lots of suggested fixes:

Platforms android-27 Android SDK Platform 27īuild-tools 27.0.3 Android SDK Build-Tools 27.0.3 Platform-tools Android SDK Platform-Tools I reinstalled Android Studio and the Android SDK 27, which I had been using in my project before, but I got the following error message:Ī problem occurred configuring project ':android'.įailed to install the following Android SDK packages as some licences have not been accepted. It will not build because of an Android SDK license issue. After reinstalling Windows 10, I am desperately trying to get my LibGDX project to run in IntelliJ again.
