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:
  • If a proxy is needed on your network, it must be defined in Tools > Preferences.

You must configure for the Java and Android SDKs.

  1. Dowload the Java Standard Edition Software Development Kit and install it to a location of your choice.
    To download the Java package, visit http://www.oracle.com/technetwork/java/javase/downloads/index.html. Choose the Java package (32 bit or 64 bit) that matches your Genero installation (32 bit or 64 bit).
    Note: Genero Mobile requires Java SE Development Kit. To identify version requirements, refer to the Supported platforms and database document found on the Four Js Web site.

    Make a note of the installation path.

  2. Launch Genero Studio.
  3. Select Tools > Genero Configurations to open the Genero Configuration Management window.
  4. Set the JAVA_HOME variable to the location of the Java SDK directory. To edit the JAVA_HOME environment variable, highlight the Java SDK environment set and double-click on the JAVA_HOME environment variable listed.

    Figure: Set Java environment


    Genero Hosts Management Java SDK environment set
  5. Download the Android Software Development Kit (SDK).
    1. Go to http://developer.android.com/studio/index.html#command-tools
    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 the SDK.
    Note your installation path. If the Android SDK Manager launches, close it.
  7. Set the ANDROID_SDK_ROOT variable to the location of the Android SDK you installed, for example C:\Android\android-sdk. To edit the ANDROID_SDK_ROOT environment variable, highlight the Android environment set and double-click on the ANDROID_SDK_ROOT environment variable in the list.

    Figure: Set ANDROID_SDK_ROOT in Android environment


    Genero Hosts Management Android SDK environment set with ANDROID_SDK_ROOT highlighted.
  8. Right-click on the 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. Update progress is written to the Output view.
    When prompted, answer 'y' to any question. This step can take several minutes.
    Important: It is recommended to run Auto configure Android SDK regularly to ensure you have the latest SDK updates. The Auto configure Android SDK tool upgrades Android SDK and add-ons to the latest version.
  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 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.