How to install Android Studio on Debian 11.3
- 00:35 lsb_release -a
- 00:47 sudo apt-get update
- 01:11 sudo apt install openjdk-11-jdk
- 01:50 java -version
- 02:09 wget https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2021.1.1.22/android-studio-2021.1.1.22-linux.tar.gz
- 02:35 ls -la
- 02:45 tar -xvzf android-studio-2021.1.1.22-linux.tar.gz
- 03:09 sudo ./android-studio/bin/studio.sh
To install Android Studio on Debian 11.3
Introduction:
Android SDK is the Android emulator developed by Google and it executes the API libraries and developer tools required for building, testing, and debugging apps for Android on Linux systems. It's also possible to install Android Emulator using Genymotion Android Emulator rather than the Android Emulator.
Installation Procedure:
Step 1: Check the OS Version by using the below command
[root@linuxhelp:~#] 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@linuxhelp:~#] sudo apt-get update
Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:2 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://deb.debian.org/debian bullseye/main Sources [8,633 kB]
Get:5 http://security.debian.org/debian-security bullseye-security/main Sources [158 kB]
Get:6 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [186 kB]
Get:7 http://security.debian.org/debian-security bullseye-security/main Translation-en [117 kB]
Get:8 http://deb.debian.org/debian bullseye-updates/main Sources.diff/Index [11.7 kB]
Get:9 http://deb.debian.org/debian bullseye-updates/main amd64 Packages.diff/Index [11.7 kB]
-2032.44.pdiff [286 B]
Fetched 923 kB in 1s (945 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Step 3: Next, install Java JDK software which is required for the Android Studio by using the below command
[root@linuxhelp:~#] sudo apt install openjdk-11-jdk
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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-dev 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
0 upgraded, 19 newly installed, 0 to remove and 156 not upgraded.
Need to get 265 MB of archives.
After this operation, 415 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian bullseye/main amd64 java-common all 0.72 [14.5 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 openjdk-11-jre-headless amd64 11.0.16+8-1~deb11u1 [37.3 MB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 ca-certificates-java all 20190909 [15.7 kB]
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
done.
Step 4: Verify the installed Java version by using the below command
[root@linuxhelp:~#] java -version
openjdk version "11.0.16" 2022-07-19
OpenJDK Runtime Environment (build 11.0.16+8-post-Debian-1deb11u1)
OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Debian-1deb11u1, mixed mode, sharing)
Step 5: Next, Install Android Studio by using the below commands
[root@linuxhelp:~#] wget https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2021.1.1.22/android-studio-2021.1.1.22-linux.tar.gz
--2022-10-05 01:51:57-- 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)... 172.217.160.142, 2404:6800:4007:80a::200e
Connecting to redirector.gvt1.com (redirector.gvt1.com)|172.217.160.142|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://r1---sn-i5uif5t-h55l.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-h55l&ms=nvh&mt=1664913809&mv=u&mvi=1&pl=24&rmhost=r2---sn-i5uif5t-h55l.gvt1.com&shardbypass=sd&smhost=r1---sn-i5uif5t-h556.gvt1.com [following]
--2022-10-05 01:51:57-- https://r1---sn-i5uif5t-h55l.gvt1.com/edgedl/android/studio/ide-zips/2021.1.1.22/android-studio-2021.1.1.22-linux.tar.gz?
Connecting to r4---sn-npoeenek.gvt1.com (r4---sn-npoeenek.gvt1.com)|74.125.12.137|: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.1.22 100%[======================================>] 904.35M 31.0MB/s in 32s
2022-10-05 01:52:30 (28.6 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@linuxhelp:~#] ls -la
total 926144
drwx------ 6 root root 4096 Oct 5 01:51 .
drwxr-xr-x 19 root root 4096 Jul 14 12:54 ..
-rw-r--r-- 1 root root 948283422 Feb 23 2022 android-studio-2021.1.1.22-linux.tar.gz
-rw------- 1 root asterisk 18 Sep 24 21:35 .asterisk_history
-rw------- 1 root root 3883 Sep 29 09:02 .bash_history
-rw-r--r-- 1 root root 571 Apr 11 2021 .bashrc
drwx------ 3 root root 4096 Jul 14 13:00 .cache
drwxr-xr-x 6 root root 4096 Sep 29 08:23 data
drwxr-xr-x 3 root root 4096 Jul 14 15:12 .local
-rw-r--r-- 1 root root 18012 Jan 17 2022 mysql-apt-config_0.8.22-1_all.deb
Step 7: Next, extract the downloaded archive file by using the below command
[root@linuxhelp:~#] 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/textmate/lib/bundles/bat/
android-studio/plugins/textmate/lib/bundles/bat/syntaxes/
Step 8: Finally, execute the program using the below command
[root@linuxhelp:~#] sudo ./android-studio/bin/studio.sh
2022-10-05 01:55:29,829 [ 58611] WARN - Container.ComponentManagerImpl - Do not use constructor injection (requestorClass=com.android.tools.idea.AndroidInitialConfigurator)
Oct 05, 2022 1:55:31 AM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
2022-10-05 02:00:56,107 [ 384889] WARN - com.intellij.util.xmlb.Binding - no accessors for com.intellij.openapi.updateSettings.impl.pluginsAdvertisement.PluginAdvertiserExtensionsStateService$State
Oct 05, 2022 2:00:57 AM com.android.utils.PathUtils lambda$addRemovePathHook$0
WARNING: Unable to delete /root/Android/Sdk/.temp/PackageOperation01
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
Step 20: Once filled appropriately, click finish and you will be taken to your app.
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.3. Your feedback is much welcome.
Comments ( 0 )
No comments available