I had the below problem when building code for an older version of Android on Android Studio. Dependency 'androidx.appcompat:appcompat:1.4.1' requires 'compileSdkVersion' to be set to 31 or higher.Compilation target for module ':app' is 'android-30' I was able to solve it by changing the version of appcompat in the dependencies What I had: implementation 'androidx.appcompat:appcompat:1.4.0' I … Continue reading How to resolve Dependency ‘androidx.appcompat:appcompat:1.4.1’ requires ‘compileSdkVersion’ to be set to 31 or higher.Compilation target for module ‘:app’ is ‘android-30’
Tag: Linux
How to mount another hard disk for sharing with other users in Linux
Sometimes, a drive needs to be shared by more than that primary user logged in on a Linux computer. This is to facilitate sharing of files and folders by other users on that computer. To enable all authorized users to work with files and folders on the shared drive, read on. Any commands need to … Continue reading How to mount another hard disk for sharing with other users in Linux
Replace FindViewByID with ViewBinding in Java on Android
In the gradle.build file for the module, add following code and Sync: buildFeatures { viewBinding true } Above automatically generates binding objects for every layout when the plugin is synced. For activity_main.xml, it will generate ActivityMainBinding class. In MainActivity.java, use inflate method on ActivityMainBinding in onCreate method as shown below: ActivityMainBinding bindMain; bindMain = ActivityMainBinding.inflate(getLayoutInflater()); … Continue reading Replace FindViewByID with ViewBinding in Java on Android
Great resources for coders or developers
All things developers and development articles can be found at https://dev.to. Best site for coders and developers https://www.freecodecamp.org. Here's a great article on one resume that was exceptional https://cloudirregular.substack.com/p/the-greatest-resume-ive-ever-seen?s=r. Learn to code for free with Google's Grasshopper app https://grasshopper.app. Get it from the Google Play Store.
How to fix error message “Please select Android SDK” in Android Studio
To fix this error, from the Android Studio menu, select the option File->Sync Project with Gradle Files The error would go.
How to create and use LUKS encrypted partition in Linux
It is easy to create a LUKS container and a partition within it, using the GUI on Linux. The application that enables this easily is the gnome-disk-utility. However, if you want to use the command line to set up a LUKS encrypted device, read on. Exercise appropriate caution before doing any of the below with … Continue reading How to create and use LUKS encrypted partition in Linux
How to securely wipe a hard drive or USB drive in Linux using dd or scrub
Normally we'd use dd to clean wipe a hard drive as follows after opening a terminal window for a hard disk or USB drive accessible as /dev/sdb :$ sudo dd if=/dev/urandom of=/dev/sdb status=progress <enter> Another command to do a secure wipe of /dev/sdb is scrub that can be used as follows:$ sudo scrub -p dod … Continue reading How to securely wipe a hard drive or USB drive in Linux using dd or scrub
How to enable the UEFI in VirtualBox for a Windows 10 virtual machine running on Linux
This is for those who missed checking the UEFI checkbox in the settings prior to installing Windows 10 in VirtualBox. Do the below at your own risk, take appropriate backup, First, check and confirm if BIOS Mode is Legacy, which means MBR is the partition and not GPT. To do this, press Windows+R and run:msinfo32.msc … Continue reading How to enable the UEFI in VirtualBox for a Windows 10 virtual machine running on Linux
Dell Support Experience to order and replace laptop battery
This is based on the experience of one of my family with Dell Support whose Dell Inspiron uses a 3 cell 4.1V 3500 mAH Li-ion battery - part number FW8KR11. This was confirmed in Linux using dmidecode. Open a terminal window and enter the command below.$ sudo dmidecode <enter>Portable BatteryLocation: Sys. Battery BayManufacturer: BYDManufacture Date: … Continue reading Dell Support Experience to order and replace laptop battery
How to increase font size of menus, lists in Spotify in Linux
To scale the font size of Spotify on Linux, open a terminal window and enter the following command.$ spotify --force-device-scale-factor=1.5 <enter> You will find that spotify menus are now bigger and more readable. To make them scale permanently whenever Spotify starts, create a desktop shortcut and put the scaling factor in the desktop file. $ … Continue reading How to increase font size of menus, lists in Spotify in Linux