Skip to content

Compile Android Remote

Asfaloth edited this page Feb 27, 2014 · 4 revisions

1. Prerequisites

  • Java JDK 1.7
  • git
  • IntelliJ
  • Android SDK

2. Android SDK

You must have the latest Android SDK installed. After the installation, run tools/android and download the following items:

  • build-tools 19.0.2
  • latest platform-tools
  • the latest Android SDK Platform (Android 4.4.2 API 19 at this moment)
  • Android Support Repository
  • Android Support Library
  • Google Play services
  • Google Play Billing Library

Now set the ANDROID_HOME enviroment variable to the path where you extracted the Android SDK.

3. Clone Android-Remote

Get the latest source code with git clone https://github.com/clementine-player/Android-Remote.git

4. Compile Android-Remote

If you just want an apk, run the following command inside the Android-Remote directory to compile a debug apk:

./gradlew assembleDebug

It should generate an apk file inside the build/apk directory.

To compile a signed apk, remove the comments inside signingConfigs the build.gradle file. Run the following command:

./gradlew assembleRelease

Enter the keystore credentials when prompted.

5. IntelliJ

Download the latest IntelliJ version and install/extract it.

Start IntelliJ and select Import Project from the menu. Select the build.gradle file, after a short while the project should be loaded and you can start coding!

Clone this wiki locally