Workstation Setup - missioncommand/emp3-android GitHub Wiki

Setting up EMP Environment

  1. Download JDK 1.8 http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html or sudo yum install java-1.8.0-openjdk-devel if on Fedora.
  2. Clone Repository https://github.com/missioncommand/emp3-android
  3. Download Android Studio and follow instructions after downloading https://developer.android.com/studio/preview/index.html
  4. Set-up Environment Variables

Linux

The following was performed on Fedora 25 with fish as the default shell.

  1. Edit ~/.config/fish/config.fish . Create the file if it doesn’t already exist.

  2. Add the following to “~/.config/fish/config.fish”

    set -x ANDROID_HOME ~/Android/Sdk
    set -x ANDROID_EMULATOR_USE_SYSTEM_LIBS 1
    set -gx fish_user_paths $fish_user_paths $ANDROID_HOME/platform-tools
    set -gx fish_user_paths $fish_user_paths $ANDROID_HOME/build-tools/latest
    
  3. Restart Android Studio

Windows

  1. In the Windows search bar open Edit the system environment variables

  2. Create the following entries under System Variables.

    ANDROID_HOME C:\Users\<user name>\AppData\Local\Android\Sdk

  3. Edit the PATH variable and add the following entries.

    %ANDROID_HOME%\tools
    %ANDROID_HOME%\platform-tools
    %ANDROID_HOME%\extras
    
  4. Restart Android Studio

Importing Project

  1. Select Import Project

  2. Point to your locally cloned emp3-android repo's build.gradle

  3. After importing go to File then select Settings.

  4. Under the Appearance & Behavior tab go to the System Settings tab and select Android SDK. Ensure that Android 6.0(Marshmallow) is selected. If it is not, select and download it.

  5. Click Ok and exit the settings window.

  6. Find the Terminal window (typically at the bottom right).

  7. In the terminal window type gradlew build or ./gradlew build on Linux. Wait for the build to finish.

⚠️ **GitHub.com Fallback** ⚠️