How to fix message in Android Studio 4.2 to remove jcenter() and migrate to mavenCentral()

Android Studio 4.2 displays below message.Please remove usages of jcenter() Maven repository from your build scripts and migrate your build to other Maven repositories. This repository is deprecated and it will be shut down in the future. To fix it, open the gradle file at the project level, search and and replace jcenter() with mavenCentral(). … Continue reading How to fix message in Android Studio 4.2 to remove jcenter() and migrate to mavenCentral()

Email: [Firebase] Client access to your Cloud Firestore database expiring in X day(s)

The easiest way to overcome this expiry is to change the date in the rules after logging into the account:match /{document=**} {// from previous date 2020, 11, 11 to new date 2021, 12, 11allow read, write: if request.time < timestamp.date(2021, 12, 11);} However, do note that it is important to drop access using this method … Continue reading Email: [Firebase] Client access to your Cloud Firestore database expiring in X day(s)

How to assign value to text view directly in Android Kotlin

In Android Studio, when referencing layout (GUI) elements, the normal flow is to use code as below: var tv = findViewById(R.id.tv_name) tv = myString But, in Kotlin, Prior Android version 10, it was easy to assign values to layout elements without using find_view_by_id by simply using: tv_name.text = myString However, this has stopped working and … Continue reading How to assign value to text view directly in Android Kotlin

Android Studio experience on Linux distributions

Finally tried out Android Studio 4.0.1 on multiple Linux distributions. However, below is my experience on how it went. Mileage varies. Linux Mint 20 with Android Studio without a swap file of 8 GB would hang or freeze very frequently. Technically, not a freeze but it got too slow to be able to do anything … Continue reading Android Studio experience on Linux distributions

How to run India income tax Java utilities on Linux Mint 20 or Ubuntu 20.04 LTS or Fedora 32

From Ubuntu 20.04 LTS or LinuxMint 20, the Java 8 SDK or Java 8 Runtime Environment is in the repository, but the openjfx libraries are not of version 8 but of version 11. To overcome error, you can use the Zulu Java runtime for version 8 with JavaFX. Also, these steps can work on Fedora … Continue reading How to run India income tax Java utilities on Linux Mint 20 or Ubuntu 20.04 LTS or Fedora 32

Error running Income Tax India ITR utility on Fedora 32 Linux

India income tax returns filing utilities are created using Java 8 SDK and use Java FX. These can only be run using Java 8 as Java FX was bundled with it. Newer versions of Java from Oracle do not bundle Java Fx anymore. Therefore, when running the Java income tax utilities, the following error (in … Continue reading Error running Income Tax India ITR utility on Fedora 32 Linux

How to fix Android Studio error message – Emulator: createOrGetGlobalVkEmulation: Warning: Vulkan 1.0 APIs missing from instance

Android Studio upon being freshly installed displayed the below error message in the event window: Emulator: createOrGetGlobalVkEmulation: Warning: Vulkan 1.0 APIs missing from instance This error is due to the Vulkan APIs that are not needed if the computer has no graphics card. To overcome this error, open a terminal window and do the following: … Continue reading How to fix Android Studio error message – Emulator: createOrGetGlobalVkEmulation: Warning: Vulkan 1.0 APIs missing from instance

IntelliJ IDEA displays error that Java SDK is not installed

When IntelliJ IDEA is installed, Kotlin applications cannot be compiled or run unless the Java SDK is installed. Choose to get the Oracle Java SDK or install the OpenJDK SDK corresponding to the OpenJDK Java Runtime Environment that has been installed. By default, the Linux distribution will just install the Java Runtime Environment (JRE). To … Continue reading IntelliJ IDEA displays error that Java SDK is not installed

How to enable Android Studio AVD to use only lesser number of CPUs than available on the computer

To use only 2 cores of the CPU of the computer, do the following action after opening a terminal window in Linux, where Device10.avd is the Android 10 AVD created: $ vi ~/.android/avd/Device10.avd/config.ini <enter> Change the values in red for the below parameters in the file to those in blue as below.hw.cpu.ncore=4 hw.cpu.ncore=2 Save the … Continue reading How to enable Android Studio AVD to use only lesser number of CPUs than available on the computer

How to fix the ADB Binary found adb is obsolete and has serious performance problems with Android Emulator error in Android Studio for Linux

The default Android SDK installed with Android Studio already has the adb application installed and it is the latest. The error ADB Binary found at /home/user/ adb is obsolete and has serious performance problems with Android Emulator appears only if from Android Studio, menu option, Tools -> SDK Manager -> SDK Tools, the Android SDK … Continue reading How to fix the ADB Binary found adb is obsolete and has serious performance problems with Android Emulator error in Android Studio for Linux