I have managed to install the Android SDK thanks to the response of the user @Kin. I only have one question, is it necessary to install eclipse to develop with cordova and Phonegap?
1 Answers
It's recommended to install Android Studio at Android Platform Guide - Apache Cordova.
Installing the Requirements
Java Development Kit (JDK)
Install Java Development Kit (JDK) 8. JDK 8 is installed automatically by Android Studio.
Gradle
As of Cordova-Android 6.4.0, Gradle is now required to be installed to build Android. Manual
installation of Gradle is not required because Gradle comes bundled with Android Studio.Android SDK
Install Android Studio. It's not necessary to install Eclipse too because Android SDK is installed by Android Studio.
System Requirements for Android Studio
- 3 GB RAM minimum, 8 GB RAM recommended; plus 1 GB for the Android Emulator
- 2 GB of available disk space minimum, 4 GB recommended
Adding SDK Packages
After installing the Android SDK, you must also install the packages for whatever API level you wish to target. It is recommended that you install the highest SDK version that your version of cordova-android supports (see Requirements and Support).

- 114,770
/opt/google/android-studio/bin/studio.sh
and has executable file permissions. Running it from the terminal withsh /opt/google/android-studio/bin/studio.sh
starts Android Studio. When AS starts it shows you the AS splash screen. Look in the lower right corner, there's a Configure dropdown menu accessed by clicking the downward pointing black triangle. Click the black triangle and from the dropdown menu select Create Desktop Entry to create an Android Studio icon for starting AS by clicking its green icon in the Dash. – karel Feb 18 '19 at 15:51