~$ sudo yum install java-17-openjdk
OpenJDK (Open Java Development Kit) is a free and open-source implementation of the Java Platform, Standard Edition. You can download a version
All versions are available on this URL https://jdk.java.net/archive/
If you are running Linux (Fedora, CentOS) you can run
~$ sudo yum install java-17-openjdk
under Linux (Debian, Ubuntu) you can run in a terminal
~$ sudo apt install openjdk-17-jdk
On Ubuntu / Debian you can list the different versions with
~$ apt search openjdk
If you have several versions of Java on Linux you can use the following command to set the default version
~$ update-alternatives --config java
Check that Java is installed. For that open a terminal
~$ java -version openjdk version "11.0.11" 2021-04-20 OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.10) OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.10, mixed mode, sharing)
An integrated development environment (IDE) is a set of tools that can increase the productivity of software developers. It includes a text editor for programming, functions that allow to start the compiler, run tests, run executables, debug online … There are several IDE on the market.
When you develop in Java, you have several alternatives: Eclipse, NetBeans, IntelliJ Idea, VS code.
After 20 years of development, I used a lot IDE. IntelliJ Idea is for me the best one to develop in Java, but the Premium version is not free. But you can use the community version freely.
To simplify mutual aid we will all use the same IDE, IntelliJ Idea Community version. Download the last version. You can also try to obtain a free licence on this link for the premium version.
Launch your IDE to check that everything works
Android studio is the tool we use to write Android code. If you don’t follow my courses about Android, you don’t need to install this tool
You need to install it on your computer (installation requires 900MB) on https://developer.android.com/studio.
For a Linux installation you have to go in the installation directory (for me ~/appli) with a terminal and launch script launch.sh
cd ~/appli/android-studio/bin sh ./studio.sh
Follow the wizard and choose a standard installation.
It’s important to do that to download the last version of Android SDK, recent images for Emulator…
If you have an existing version of Android Studio on your laptop you should update Android Sdk. For that go on menu Tools > SDK manager
Below on my example, I have 2 versions installed : a fully Android 9.0 and a partial Android 10.0. In my case the better choice is to uncheck these 2 versions and use the last One Android 10.0+ (version 30).
When you develop in Android you should always do it on the last SDK version. Google requires you to always target this latest version when you publish apps to the official store.