Tag Archives: ubuntu20.04 error

[Solved] Ubuntu20.04 Error: “Failed to install the following Android SDK packages as some licences have not..“error

After installing Android studio under Ubuntu, importing the project and building, the following error appears:

The problem is that licenses are not matched well

There are only two steps to solving the problem:

1. Open file – & gt; Settings

After the settings interface appears, enter appearance – & gt; System Settings -> Android SDK -> SDK Tools

Download Android SDK command line tools (latest) in SDK tools interface

2. After downloading, CMD line tools will be installed in the SDK directory ~/Android/SDK by default. If your directory is different, you need to modify it accordingly

Execute on the command line

yes | sudo ~/Android/Sdk/cmdline-tools/latest/bin/sdkmanager --licenses

The problem is solved. Build can run normally

Note: 1. In some articles, you can directly run the sdkmanager under ~/Android/SDK/tools/bin /, which will report an error

 java.lang.NoClassDefFoundError

The reason is that Ubuntu 20.04 installs OpenSDK 11 by default, which will conflict with the JRE that comes with Android Studio.
Uninstalling OpenSDK 11 and installing a lower version of JavaSDK is more troublesome.

ubuntu20.04——hdaudioC0D2: unable to bind the codec

The problem
Not long ago, try the dual system, win10+ubuntu20.04, the installation is relatively smooth, can normally enter the system. However, when I updated the graphics driver (proprietary nvidia-drivers-390), I rebooted and couldn’t access the system’s graphical interface, which was stuck on the following page.
The diagram below:

To solve
After that, select ubunru advanced option select l> version of the kernel to boot>ut can enter the graphical interface.
But, it makes me feel bad…
/etc/default/grub

Ctr+Alt+F2

# The original line
# GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
# Modified
GRUB_CMDLINE_LINUX_DEFAULT=""


After editing and saving, update GRUB:

sudo update-grub

After rebooting, you can finally enter the graphical interface.
The appendix
https://forum.ubuntu.com.cn/viewtopic.php?t=490617