DomotiGAndroid Client

Development with Android Studio

To develop or compile DomotiGAndroid you need to install the Java JDK and AndroidStudio 2.1+ as described below.

Java JDK

Android Studio needs an java jdk with java compiler installed:

For Ubuntu:

$ javac -version
javac 1.8.0_91

If you don't have javac command or version isn't 1.8 or up:
$ sudo apt-get install default-jdk
$ javac -version
javac 1.8.0_91

For OpenSUSE:

$ sudo zypper install 
$ javac -version
javac 1.8.0_40
$ echo $JAVA_HOME
$ JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:bin/javac::")


If you run a 64bits Linux distro install 32bits libs first to prevent this error during installation:

Unable to run mksdcard SDK tool.

Ubuntu 14.04

$ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6

Ubuntu 16.04

$ sudo apt-get install lib32gcc1 lib32stdc++6

Android Studio

You can download latest version of Android Studio here:

$ cd ~/Downloads
$ unzip android-studio*.zip
$ cd android-studio/bin
$ ./

Click through the Setup Wizard, Choose Standard Install Type, it will install KVM Linux to accelerate the Android Emulator.

If you have cloned the DomotiGAndroid repository to your own GitHub account, or you are a developer, import the repository.

Create base StudioProject directory before checkout if this is your first AndroidStudio project.

$ mkdir StudioProjects

Fill in your GitHub username and password, select the correct repository and open the downloaded project inside Android Studio.

If you get this message about SDK path not found, open a terminal and create the file called inside the DomotiGAndroid directory with this content, adjust the sdk.dir location, most of the time it's located inside your home folder.

## This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
# Location of the SDK. This is only used by Gradle.

Continue the import wizard.



    Updated by: rdnzl, Updated over 2 years ago
    Access count: 5088

    Attached Files

    Also available in: PDF HTML TXT