Installing android-sdk doesn't install the sdkmanager tool

Asked by James Ko

I'm using Ubuntu 18.04. I installed the Android SDK using:

```
    sudo apt-get update
    sudo apt-get install android-sdk
```

However, I'm stuck at this error I'm getting while trying to build my app with Gradle:

```
Checking the license for package Android SDK Build-Tools 25.0.1 in /usr/lib/android-sdk/licenses
Warning: License for package Android SDK Build-Tools 25.0.1 not accepted.
Checking the license for package Android SDK Platform 25 in /usr/lib/android-sdk/licenses
Warning: License for package Android SDK Platform 25 not accepted.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> You have not accepted the license agreements of the following SDK components:
  [Android SDK Build-Tools 25.0.1, Android SDK Platform 25].
  Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
  Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
```

According to StackOverflow, the way to fix this is to do `yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses`. However there's no sdkmanager in tools/bin! Also, there's no `android` executable if I try to run `android update sdk ...` instead.

Please help?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu android-sdk-meta Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

lsb_release -a; uname -a; apt-cache policy android-sdk

Thanks

Revision history for this message
James Ko (jameslko) said :
#2

james@james-Inspiron-13-5378:~$ lsb_release -a; uname -a; apt-cache policy android-sdk
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04 LTS
Release: 18.04
Codename: bionic
Linux james-Inspiron-13-5378 4.15.0-23-generic #25-Ubuntu SMP Wed May 23 18:02:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
android-sdk:
  Installed: 25.0.0+8
  Candidate: 25.0.0+8
  Version table:
 *** 25.0.0+8 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

I suggest you report a bug. If you run:

ubuntu-bug android-sdk

It will start the process

Revision history for this message
Bruno Verachten (gounthar) said :
#4

I'm facing the same problem with arm64 bionic.

Can you help with this problem?

Provide an answer of your own, or ask James Ko for more information if necessary.

To post a message you must log in.