How to Install Android Studio On Debian 11.4
- 00:31 lsb_release -a
- 00:46 apt-get update
- 01:00 apt install openjdk-11-jdk
- 01:47 java -version
- 02:06 wget https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2021.1.1.22/android-studio-2021.1.1.22-linux.tar.gz
- 02:32 ls -la
- 02:41 tar -xvzf android-studio-2021.1.1.22-linux.tar.gz
- 03:12 ./android-studio/bin/studio.sh
To Install Android Studio On Debian 11.4
Introduction:
Android SDK is the emulator developed by Google for building, testing, and debugging Android apps on Linux systems. As an alternative to the Android Emulator, Genymotion Android Emulator can also be used to install Android Emulator.
Installation Procedure:
Step 1: Check the OS Version by using the below command
root@debian:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
Step 2: Next, update the system package by using the below command
root@debian:~# apt-get update
Get:1 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Hit:2 http://security.debian.org/debian-security bullseye-security InRelease
Hit:3 http://deb.debian.org/debian bullseye InRelease
Fetched 44.1 kB in 2s (28.0 kB/s)
Reading package lists... Done
Step 3: Next, install Java JDK software which is required for the Android Studio by using the below command
root@debian:~# apt install openjdk-11-jdk
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
dbconfig-common dbconfig-mysql default-mysql-client galera-4 icc-profiles-free
libaio1 libcgi-fast-perl libcgi-pm-perl libconfig-inifiles-perl libdbd-mariadb-perl
libdbi-perl libfcgi-bin libfcgi-perl libfcgi0ldbl libhtml-template-perl
libjs-bootstrap4 libjs-codemirror libjs-jquery libjs-jquery-mousewheel
libjs-jquery-timepicker libjs-jquery-ui libjs-openlayers libjs-popper.js
libjs-sizzle libjs-sphinxdoc libjs-underscore libmariadb3 libonig5 libopengl0
libterm-readkey-perl libzip4 mariadb-client-10.5 mariadb-client-core-10.5
mariadb-common mariadb-server-10.5 mariadb-server-core-10.5 mysql-common node-jquery
rsync socat
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
ca-certificates-java java-common libatk-wrapper-java libatk-wrapper-java-jni
libice-dev libpthread-stubs0-dev libsm-dev libx11-6 libx11-dev libx11-xcb1
libxau-dev libxcb1-dev libxdmcp-dev libxt-dev openjdk-11-jdk-headless openjdk-11-jre
openjdk-11-jre-headless x11proto-dev xorg-sgml-doctools xtrans-dev
Suggested packages:
default-jre libice-doc libsm-doc libx11-doc libxcb-doc libxt-doc openjdk-11-demo
openjdk-11-source visualvm fonts-ipafont-gothic fonts-ipafont-mincho
fonts-wqy-microhei | fonts-wqy-zenhei fonts-indic
The following NEW packages will be installed:
ca-certificates-java java-common libatk-wrapper-java libatk-wrapper-java-jni
libice-dev libpthread-stubs0-dev libsm-dev libx11-dev libxau-dev libxcb1-dev
libxdmcp-dev libxt-dev openjdk-11-jdk openjdk-11-jdk-headless openjdk-11-jre
openjdk-11-jre-headless x11proto-dev xorg-sgml-doctools xtrans-dev
The following packages will be upgraded:
libx11-6 libx11-xcb1
2 upgraded, 19 newly installed, 0 to remove and 24 not upgraded.
Need to get 259 MB of archives.
After this operation, 408 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://security.debian.org/debian-security bullseye-security/main amd64 openjdk-11-jre-headless amd64 11.0.18+10-1~deb11u1 [37.4 MB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 java-common all 0.72 [14.5 kB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 ca-certificates-java all 20190909 [15.7 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 libatk-wrapper-java all 0.38.0-2+deb11u1 [64.7 kB]
Get:5 http://deb.debian.org/debian bullseye/main amd64 libatk-wrapper-java-jni amd64 0.38.0-2+deb11u1 [56.2 kB]
Get:6 http://deb.debian.org/debian bullseye/main amd64 xorg-sgml-doctools all 1:1.11-1.1 [22.1 kB]
Get:7 http://deb.debian.org/debian bullseye/main amd64 x11proto-dev all 2020.1-1 [594 kB]
Get:8 http://deb.debian.org/debian bullseye/main amd64 libice-dev amd64 2:1.0.10-1 [67.1 kB]
Get:9 http://deb.debian.org/debian bullseye/main amd64 libpthread-stubs0-dev amd64 0.4-1 [5,344 B]
Get:10 http://deb.debian.org/debian bullseye/main amd64 libsm-dev amd64 2:1.2.3-1 [38.0 kB]
Get:11 http://deb.debian.org/debian bullseye/main amd64 libxau-dev amd64 1:1.0.9-1 [22.9 kB]
Get:12 http://deb.debian.org/debian bullseye/main amd64 libxdmcp-dev amd64 1:1.1.2-3 [42.2 kB]
Get:13 http://deb.debian.org/debian bullseye/main amd64 xtrans-dev all 1.4.0-1 [98.7 kB]
Get:14 http://deb.debian.org/debian bullseye/main amd64 libxcb1-dev amd64 1.14-3 [176 kB]
Get:15 http://deb.debian.org/debian bullseye/main amd64 libxt-dev amd64 1:1.2.0-1 [407 kB]
Get:16 http://security.debian.org/debian-security bullseye-security/main amd64 libx11-6 amd64 2:1.7.2-1+deb11u1 [772 kB]
Get:17 http://security.debian.org/debian-security bullseye-security/main amd64 libx11-xcb1 amd64 2:1.7.2-1+deb11u1 [203 kB]
Get:18 http://security.debian.org/debian-security bullseye-security/main amd64 libx11-dev amd64 2:1.7.2-1+deb11u1 [843 kB]
Get:19 http://security.debian.org/debian-security bullseye-security/main amd64 openjdk-11-jre amd64 11.0.18+10-1~deb11u1 [176 kB]
Get:20 http://security.debian.org/debian-security bullseye-security/main amd64 openjdk-11-jdk-headless amd64 11.0.18+10-1~deb11u1 [218 MB]
Get:21 http://security.debian.org/debian-security bullseye-security/main amd64 openjdk-11-jdk amd64 11.0.18+10-1~deb11u1 [13.4 kB]
Fetched 259 MB in 47s (5,538 kB/s)
Step 4: Verify the installed Java version by using the below command
root@debian:~# java -version
openjdk version "11.0.18" 2023-01-17
OpenJDK Runtime Environment (build 11.0.18+10-post-Debian-1deb11u1)
OpenJDK 64-Bit Server VM (build 11.0.18+10-post-Debian-1deb11u1, mixed mode, sharing)
Step 5: Next, Download Android Studio by using the below command
root@debian:~# wget https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2021.1.1.22/android-studio-2021.1.1.22-linux.tar.gz
--2023-07-07 22:25:46-- https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2021.1.1.22/android-studio-2021.1.1.22-linux.tar.gz
Resolving redirector.gvt1.com (redirector.gvt1.com)... 142.250.67.78, 2404:6800:4007:805::200e
Connecting to redirector.gvt1.com (redirector.gvt1.com)|142.250.67.78|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://r1---sn-i5uif5t-h556.gvt1.com/edgedl/android/studio/ide-zips/2021.1.1.22/android-studio-2021.1.1.22-
linux.tar.gz?cms_redirect=yes&mh=0H&mip=210.18.155.184&mm=28&mn=sn-i5uif5t-h556&ms=nvh&mt=1688785945&mv=u&mvi=1&pcm2cms=yes&pl=24&shardbypass=sd [following]
--2023-07-07 22:25:46-- https://r1---sn-i5uif5t-h556.gvt1.com/edgedl/android/studio/ide-zips/2021.1.1.22/android-studio-2021.1.1.22-linux.tar.gz?cms_redirect=yes&mh=0H&mip=210.18.155.184&mm=28&mn=sn-i5uif5t-h556&ms=nvh&mt=1688785945&mv=u&mvi=1&pcm2cms=yes&pl=24&shardbypass=sd
Resolving r1---sn-i5uif5t-h556.gvt1.com (r1---sn-i5uif5t-h556.gvt1.com)... 202.88.167.76
Connecting to r1---sn-i5uif5t-h556.gvt1.com (r1---sn-i5uif5t-h556.gvt1.com)|202.88.167.76|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 948283422 (904M) [application/gzip]
Saving to: ‘android-studio-2021.1.1.22-linux.tar.gz’
android-studio-2021.1 100%[=========================>] 904.35M 7.82MB/s in 3m 27s
2023-07-07 22:29:14 (4.37 MB/s) - ‘android-studio-2021.1.1.22-linux.tar.gz’ saved [948283422/948283422]
Step 6: Long list the directory by using the below command
root@debian:~# ls -la
total 926100
drwx------ 3 root root 4096 Jul 7 22:25 .
drwxr-xr-x 19 root root 4096 Jul 7 22:20 ..
-rw-r--r-- 1 root root 948283422 Feb 23 2022 android-studio-2021.1.1.22-linux.tar.gz
-rw------- 1 root root 826 Jun 15 19:35 .bash_history
-rw-r--r-- 1 root root 571 Apr 10 2021 .bashrc
drwx------ 3 root root 4096 Jun 15 18:53 .cache
-rw-r--r-- 1 root root 161 Jul 9 2019 .profile
-rw------- 1 root root 8186 Jun 15 20:13 .viminfo
-rw------- 1 root root 104 Jul 7 22:14 .Xauthority
Step 7: Next, extract the downloaded archive file by using the below command
root@debian:~# tar -xvzf android-studio-2021.1.1.22-linux.tar.gz
android-studio/
android-studio/build.txt
android-studio/plugins/
android-studio/plugins/url-assistant/
android-studio/plugins/url-assistant/lib/
android-studio/plugins/url-assistant/lib/url-assistant.jar
android-studio/plugins/hg4idea/
android-studio/plugins/hg4idea/lib/
android-studio/plugins/hg4idea/lib/resources_en.jar
android-studio/plugins/hg4idea/lib/hg4idea.jar
android-studio/plugins/configurationScript/
android-studio/plugins/configurationScript/lib/
android-studio/plugins/configurationScript/lib/resources_en.jar
android-studio/plugins/configurationScript/lib/configurationScript.jar
android-studio/plugins/yaml/
android-studio/plugins/yaml/lib/
android-studio/plugins/yaml/lib/yaml.jar
android-studio/plugins/yaml/lib/resources_en.jar
android-studio/plugins/testng/
android-studio/plugins/testng/lib/
android-studio/plugins/testng/lib/testng-rt.jar
android-studio/plugins/testng/lib/testng-plugin.jar
android-studio/plugins/testng/lib/javax.inject-1.jar
android-studio/plugins/testng/lib/resources_en.jar
android-studio/plugins/testng/lib/testng-7.1.0.jar
android-studio/plugins/testng/lib/jcommander-1.72.jar
android-studio/plugins/testng/lib/guice-4.1.0-no_aop.jar
android-studio/plugins/testng/lib/aopalliance-1.0.jar
android-studio/plugins/webp/
android-studio/plugins/webp/lib/
android-studio/plugins/webp/lib/libwebp.jar
android-studio/plugins/webp/lib/webp.jar
android-studio/plugins/webp/lib/libwebp/
android-studio/plugins/webp/lib/libwebp/linux/
android-studio/plugins/webp/lib/libwebp/linux/libwebp_jni.so
android-studio/plugins/webp/lib/libwebp/linux/libwebp_jni64.so
android-studio/plugins/webp/lib/libwebp/win/
android-studio/plugins/webp/lib/libwebp/win/webp_jni64.dll
android-studio/plugins/webp/lib/libwebp/win/webp_jni.dll
android-studio/plugins/webp/lib/libwebp/mac/
android-studio/plugins/webp/lib/libwebp/mac/libwebp_jni64.dylib
android-studio/plugins/c-clangd/
android-studio/plugins/c-clangd/lib/
android-studio/plugins/c-clangd/lib/c-clangd.jar
android-studio/plugins/c-clangd/lib/resources_en.jar
android-studio/plugins/c-clangd/lib/LICENSE.txt
android-studio/plugins/c-clangd/bin/
android-studio/plugins/c-clangd/bin/clang/
android-studio/plugins/c-clangd/bin/clang/linux/
android-studio/plugins/c-clangd/bin/clang/linux/libc++.so.1
android-studio/plugins/c-clangd/bin/clang/linux/clangd
android-studio/plugins/c-clangd/bin/clang/linux/clang-tidy
android-studio/plugins/design-tools/
android-studio/plugins/design-tools/lib/
android-studio/plugins/design-tools/lib/layoutlib.jar
Step 8: Finally, execute the program to install android studio using the below command
root@debian:~# ./android-studio/bin/studio.sh
2023-07-07 22:35:53,943 [ 32222] WARN - Container.ComponentManagerImpl - Do not use constructor injection (requestorClass=com.android.tools.idea.AndroidInitialConfigurator)
Jul 07, 2023 10:35:56 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
2023-07-07 22:36:05,417 [ 43696] WARN - .diagnostic.PerformanceWatcher - UI was frozen for 8225ms, details saved to /root/.cache/Google/AndroidStudio2021.1/log/threadDumps-freeze-20230707-223602-AI-211.7628.21.2111.8193401-8sec
Step 9: Now proceed with the configuration, you can import settings for Android studio as shown in the below image.
Step 10: You can choose to import settings for Android studio as shown in the below image
Step 11: Now start the Android Studio installation process as shown in the below image
Step 12: Allow Android studio to send usage statistics to Google as shown in the below image
Step 13: Start Android Studio installation as shown in the below image.
Step 14: Choose the type of installation by clicking “go for the standard” and proceed as shown in the below image.
Step 15: Pick the preferred theme as shown in the below image.
Step 16: Once done, click finish.
Step 17: Now you configured Android Studio on Debian 11.
Step 18: Once the configuration is complete, click finish and begin using Android studio.
Step 19: Click on a new project, give the project a name and select the programming language to use as shown in the below image
Conclusion:
We have reached the end of this article. In this guide, we have walked you through the steps required to install Android Studio on Debian 11.4. Your feedback is much welcome.
Comments ( 0 )
No comments available