Android project with Java and Kotlin files, kapt or annotationProcessor?

First of all, the Kotlin Annotation processing tool (kapt) uses the Java compiler to run annotation processors. If your project contains any Java classes, kapt takes care of them by design. Kotlinlang recommends using kapt incase you used annotationProcessor from the Android Support before. JetBrains has a nice article about how kapt works in more … Read more

what is the function of /etc/apt/sources.list.d?

The function of the /etc/apt/sources.list.d directory is as follows: Using the directory you can easily add new repositories without the need to edit the central /etc/apt/sources.list file. I.e. you can just put a file with a unique name and the same format as /etc/apt/sources.list into this folder and it is used by apt. In order … Read more

When gcc-11 will appear in Ubuntu repositories? [closed]

[*] sudo apt install build-essential manpages-dev software-properties-common sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt update && sudo apt install gcc-11 g++-11 Then use update-alternatives to set default gcc… sudo update-alternatives –install /usr/bin/gcc gcc /usr/bin/gcc-9 90 –slave /usr/bin/g++ g++ /usr/bin/g++-9 –slave /usr/bin/gcov gcov /usr/bin/gcov-9 –slave /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-9 –slave /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-9 –slave /usr/bin/cpp cpp /usr/bin/cpp-9 && \ … Read more

How to compare Debian package versions?

Perhaps because the title doesn’t mention Python (though the tags do), Google brought me here when asking the same question but hoping for a bash answer. That seems to be: $ dpkg –compare-versions 11a lt 100a && echo true true $ dpkg –compare-versions 11a gt 100a && echo true $ To install a version of … Read more

“E: Unable to locate package python3-pip”

For Ubuntu 18.04 (Bionic Beaver), with Python 3.6.5, the python-pip package will install after: sudo add-apt-repository universe sudo apt-get update Which is enabling the category universe deb http://archive.ubuntu.com/ubuntu bionic main universe deb http://archive.ubuntu.com/ubuntu bionic-security main universe deb http://archive.ubuntu.com/ubuntu bionic-updates main universe

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)