0

I installed latest Android studio on Arch Linux PC using instructions mentioned on official website. But I am not able to build my program, as this error is showing :

Failed to install the following Android SDK packages as some licences have not been accepted. build-tools;29.0.2 Android SDK Build-Tools 29.0.2

I tried to follow some answers on SO and elsewhere that say to execute sdkmanager --licenses and accept the licences. But I'm not able to locate it. I tried searching for it in /opt/android_studio/bin/ where I had installed it and in /home/user/Android/Sdk/ but could'nt find it.

Firzen
  • 1,599
  • 7
  • 24
  • 41
Haris
  • 178
  • 1
  • 11
  • You should be able to find `sdkmanager` in `/home/user/Android/Sdk/tools/bin`. – Firzen Apr 06 '20 at 22:12
  • There is no tools folder – Haris Apr 07 '20 at 05:17
  • In that case maybe look here: https://stackoverflow.com/questions/28789556/android-studio-sdk-tools-directory-is-missing Or you can reinstall the whole Android Studio as David Enoma suggested. – Firzen Apr 07 '20 at 07:35

2 Answers2

0

Try to reinstall the Android Studio suite again and accept licenses where requested.

David Enoma
  • 311
  • 1
  • 11
-1

After searching through the internet and try to apply various solutions, I found out that below the warning Failed to install the following Android SDK packages ... there was a link to download the Android SDK Build-Tools 29.0.2 which I had'nt noticed before, on clicking on it I was presented with the licence agreement which after I accepted, the build tools were downloaded and the error went way and the app started building fine.

Thank you all for your help.

Haris
  • 178
  • 1
  • 11