Workstation Setup - missioncommand/emp3-android GitHub Wiki
- 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. - Clone Repository https://github.com/missioncommand/emp3-android
- Download Android Studio and follow instructions after downloading https://developer.android.com/studio/preview/index.html
- Set-up Environment Variables
The following was performed on Fedora 25 with fish as the default shell.
-
Edit
~/.config/fish/config.fish
. Create the file if it doesn’t already exist. -
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
-
Restart Android Studio
-
In the Windows search bar open
Edit the system environment variables
-
Create the following entries under System Variables.
ANDROID_HOME C:\Users\<user name>\AppData\Local\Android\Sdk
-
Edit the PATH variable and add the following entries.
%ANDROID_HOME%\tools %ANDROID_HOME%\platform-tools %ANDROID_HOME%\extras
-
Restart Android Studio
-
Select Import Project
-
Point to your locally cloned emp3-android repo's build.gradle
-
After importing go to File then select Settings.
-
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.
-
Click Ok and exit the settings window.
-
Find the Terminal window (typically at the bottom right).
-
In the terminal window type gradlew build or ./gradlew build on Linux. Wait for the build to finish.