Skip to content

Latest commit

 

History

History
52 lines (41 loc) · 985 Bytes

Building.md

File metadata and controls

52 lines (41 loc) · 985 Bytes

BUILDING ANDROID MOJOC PROJECTS FROM LINUX COMMANDLINE

1. Install the required packages

  • 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

2. Building the sample project.

  • Add ndkVersion in build.gradle found in app folder.

    android {
      ndkVersion "22.0.7026061"
      ...  
    }
  • Run gladle build in the Android folder.

    $ gradle build