Monday, June 26, 2023

Android Studio: Installing 2022 patch 2 on Debian 12 (Bookworm)

 Install JDK 17 (Optional)
# apt-get install openjdk-17-jdk

Add Multiarch repository to support architecture i386
# dpkg --add-architecture i386
# apt-get update

Note: to delete i386 run dpkg --remove-architecture i386

Install library required
# apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386

Download Android Studio android-studio-2022.2.1.20-linux.tar.gz from https://developer.android.com/studio. 

You need to create folder for Android Studio, SDK Tool and Workspace. Android Studio and SDK Tool can not be placed in same directory. 

Extract your android-studio-2022.2.1.20-linux.tar.gz.

Run Android Studio for first time

  1. Run [Android_Studio_Folder]/bin/studio.sh
  2. Select Do not import settings
  3. Select Install Type: Custom
  4. Let default JDK folder for Gradle
  5. Select UI Theme, I choose Darcula
  6. Select your Android SDK Location that you have prepare before, Uncheck Android Virtual Device. You can install Android Virtual Device anytime after configuration finish.
  7. Read and accept License Agreement
  8. Wait until all files downloaded and installation finish.

You can install other SDk required after that. For example if you want to create application for Android 7.0, please download Android SDK Platform 24. This is your minimum android version.

You may start your android project, select save location that you have prepare before. For Example Save location: /[your_home_directory]/Workspace/Android/helloworld.

Android Studio in the same PC, run faster on Debian rather than windows 11 (dual boot).

Debian Bookworm: Install Debian 12.0 Dual Boot with preinstall windows 11 home on fresh Lenovo Ideapad Gaming 3

Preparation using windows 11 to create installation CD

  1. Download CD 1 debian-12.0.0-amd64-netinst.iso from https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/
  2. Insert blank DVD (file size exceed CD size)
     
  3. Right click file and select Windows Disk Image Burner.

Disable Secure Boot

  1. From windows 11, press Shift + Restart
  2. Select Troubleshoot -> Advaned Options -> UEFI Firmware Settings -> Security
  3. Find Secure Boot and change it to Disable
  4. Save configuration

To check status Secure Boot from windows 11, use system information, and find Secure Boot State. Secure Boot State must be Off to make sure Debian installation work perperly.

Restart to DVD and follow Graphic Installation guide.