Android Studio on Devuan 4: Install
- Mobile app development
- Published
- 4 min read
- @nabbisen
Table of contents
Summary Summary
Devuan (opens in a new tab) GNU (opens in a new tab)+Linux (opens in a new tab) is a fork of Debian (opens in a new tab) without systemd (opens in a new tab) and hence Snaps (opens in a new tab) (Snapd). Even on it, it’s easy to install Android Studio (opens in a new tab) and start to develop Android (opens in a new tab) mobile apps.

This post shows how to install it.
It is manual installation without Debian package management system (apt-get etc.). However, it isn’t complicated thanks to the package distributed by Google.
Environment Environment
- OS: Devuan 4 (Chimaera)
- IDE: Android Studio 2022.3.1.18
Tutorial Tutorial
Install dependencies Install dependencies
Actually, there was nothing to do in my case.
Besides, “Required libraries for 64-bit machines (opens in a new tab)” in the official docs failed to locate or find.
Get Android Studio Get Android Studio
Get the “Linux (64-bit)” package in the official downloads page (opens in a new tab).

Then run to extract:
$ tar xzf android-studio-2022.3.1.18-linux.tar.gz
You will have android-studio directory and also files inside.
Set up IDE Set up IDE
Update PATH environment variable to add android-studio:
$ # case fish 3.1.2 as package distributed in devuan 4:
$ export PATH=(readlink -f android-studio/bin):"$PATH"
$ # (optional) case bash, ksh and latest fish:
$ #export PATH=$(readlink -f android-studio/bin):"$PATH"
Now the script below to start Android Studio is available:
$ studio.sh
You will see the first confirmation. Well, I didn’t have an existing one to import.

Follow the wizard to set up the IDE.


I chose “Custom” above. “Standard” setup is, of course, also available.
You can make detailed configuration in “Custom” mode:



Settings are completed.
Next, agreeing to the licenses for the components is required:

Clicking “Finish” starts to download:


Done:

Create an Android project Create an Android project
Then, the wizard below to create a project will show automatically.
Choose “New Project”:

Choose an app template:

Configure the project:

The default programming language is Kotlin (opens in a new tab) instead of Java (opens in a new tab). Also, Build configuration language is nowadays Kotlin DSL (build.gradle.kts) instead of Groovy (opens in a new tab) DSL (build.gradle), the past default.

Finished. Your first Android project will be generated and appear.
Run app on virtual device Run app on virtual device
It must be exciting to see it actually running. So open “Device Manager” at right and start the default device by clicking the green triangle button. It will be shown in “Running Devices”.

Then run the app by clicking another green triangle button at a little right to the center in the second-top bar. Alternatively, push Shift + F10, or click [Run] - [Run ‘app’] in the top menus.

Building it will start:

After it finished, the app will come :)

An editing example An editing example
You can modify it as usual development.
For example, edit <string name="lorem_ipsum"> section in src/main/res/values/strings.xml.
It will change the messages in the view as below:

Set up PATH at login Set up PATH at login
It should be useful to add Android Studio to PATH environment variable at login.
It’s done, for example, by editing ~/.profile as below:
PATH="$HOME/(...)/android-studio/bin:$PATH"In addition, you may use a list as below and for-loop statement if you need multiple variables added.
for x in \
$HOME/(...)/(something to be added) \
$HOME/(...)/android-studio
do
if [ -d "$x" ] ; then
PATH="$x/bin:$PATH"
fi
doneWith PATH updated, running studio.sh starts Android Studio.
Conclusion Conclusion
Now you are ready to develop Android mobile apps with both IDE and the project got.
Besides, there is another way to install Android Studio on Devuan: Flatpak (opens in a new tab). The package (opens in a new tab) is available. Moreover, when you use a different Linux distro and can do Snaps, there is also the package (opens in a new tab).
🎶 🎵 🎸 Happy development 🥁 🎶 🎵
More on: Build mobile apps
-
Flutter is one of the frameworks to build apps, primarily focusing on the mobile.
-
I updated Flutter version to 2.2.0 on my Arch Linux today.
-
When I tried to install Flutter 2 on Linux, running flutter doctor was required.
Scqr [secureal]
Scqr [secureal]: the engineering practice of Reflerd Inc. (opens in a new tab)
Comments and feedback are welcome.