How to add 8 gb swap file instead of the 1 gb swap partition created by Xubuntu Linux on install

When using Android Studio or any other disk intensive applications, on Ubuntu-based distros, it is difficult to squeeze performance due to less RAM. 8gb RAM if using Android Studio and if Firefox web browser is also being used, the system will freeze or hang. To prevent this, increase the swap size. Unfortunately, Ubuntu-based distros only … Continue reading How to add 8 gb swap file instead of the 1 gb swap partition created by Xubuntu Linux on install

Enable night mode on Linux using RedShift

To enable night mode on Linux and void strain to the eyes while working at night, install redshift. To install from the repository, open a terminal window and enter the following command: $ sudo apt-get install redshift-gtk <enter> This will install the RedShift tool. Run it and set it up to reduce screen glare at … Continue reading Enable night mode on Linux using RedShift

How to install kvm on Fedora Linux

To install KVM on Fedora, open a terminal window and enter:$ sudo dnf -y install bridge-utils libvirt virt-install qemu-kvm <enter> Next, install virtual machine management tools:$ sudo dnf -y install virt-top libguestfs-tools <enter> Start the daemon:$ sudo systemctl start libvirtd <enter>$ sudo systemctl enable libvirtd <enter> This is a required step to use Android Studio's … Continue reading How to install kvm on Fedora 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

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

One more way to speed Android Studio in Linux

At times, Android Studio just slows down while indexing files on the Linux file system. To overcome this problem, some files like Thumbs.db or thumbs.db can be prevented from being taken up for indexing. To do so, start Android Studio and select the File->Settings -> File Types. Then at the end of the list of … Continue reading One more way to speed Android Studio in Linux

How to speed Android Studio in Linux by changed VM Options

After installing Android Studio 4.1 on Linux, one of the biggest issue was speed of Android Studio at startup. To improve speed vmoptions64 or vmoptions needs to contain the setof lines in blue below. You can change the file using a text editor as follows by opening a terminal window: $ mousepad ~/.AndroidStudio4.0/config/studio64.vmoptions <enter> or … Continue reading How to speed Android Studio in Linux by changed VM Options