-
Java
$ apt install openjdk-8-jdk
-
Android SDK
$ snap install androidsdk
-
SDK tools
$ androidsdk "platform-tools" "platforms;android-28" $ androidsdk "build-tools;30.0.3" "cmake;3.10.2.4988404"
-
NDK
$ androidsdk "ndk;22.0.7026061"
-
Gradle
Install SDKMAN
$ curl -s "https://get.sdkman.io" | bash $ source "$HOME/.sdkman/bin/sdkman-init.sh"
Install Gradle
$ sdk install gradle 6.8.2
-
Add
ndkVersion
in build.gradle found in app folder.android { ndkVersion "22.0.7026061" ... }
-
Run
gladle build
in the Android folder.$ gradle build