Install and configure Java SDK and Android SDK

Follow this procedure to install and configure the Java SDK and Android SDK. Once configured, the Tools > Android Tools menus are enabled in Genero Studio.

Before you begin:
You must configure for the Java and Android SDKs.
  1. Install the Java Standard Edition Software Development Kit to a location of your choice: http://www.oracle.com/technetwork/java/javase/downloads/index.html. Make a note of the installation path.
    Note:
    • Genero Mobile requires Java SE Development Kit 7 (JDK 7) as a minimum.
    • Choose the Java package (32 bit or 64 bit) that matches your Genero installation (32 bit or 64 bit).
  2. Launch Genero Studio.
  3. Select Tools > Genero Configurations to open the Genero Configuration Management window.
  4. Set the JDK_HOME variable to the location of the Java SDK you installed, for example C:\Program Files\Java\jdk1.7.0. To edit the JDK_HOME environment variable, highlight the Java SDK environment set and double-click on the JDK_HOME environment variable listed.
    Genero Hosts Management Java SDK environment set

    Figure 1. Set Java environment

  5. Download the Android Software Development Kit (SDK).
    1. Go to https://developer.android.com/studio/index.html
    2. Find the Get just the command line tools section.
    3. Download the installer for your operating system.
  6. Install the Android SDK to a location of your choice. Do not install in the Program Files directory.
    Note: If you install Android SDK in the Program Files directory, Genero Mobile must be run as administrator to auto-configure Android SDK.
    Note your installation path. If the Android SDK Manager launches, close it.
  7. Set the ANDROID_HOME variable to the location of the Android SDK you installed, for example C:\Android\android-sdk. To edit the ANDROID_HOME environment variable, highlight the Android environment set and double-click on the ANDROID_HOME environment variable in the list.
    Genero Hosts Management Android SDK environment set with ANDROID_HOME highlighted.

    Figure 2. Set ANDROID_HOME in Android environment

  8. Right-click on your preferred Android configuration in the Configuration Name list and select Set Genero Configuration Active.
  9. Select OK to save the changes.
  10. Select Tools > Android Tools > Auto-configure Android SDK. The updates will occur in a separate console window. Accept the license agreements as prompted.
    Note: This step can take several minutes.
  11. You are now ready to setup your Android physical or virtual device. See Display to an Android physical device or Display to an Android virtual device.

You need an internet connection for the first time you build an Android package. During this first build, an automated process will download and install Gradle with all necessary extensions into a directory in your user directory. Gradle is a project automation tool, find out more about Gradle at http://www.gradle.org.