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 (or, if you are on a Mac, > Preferences).
You must configure for the Java and Android SDKs.
Download the Java Standard Edition Software Development Kit and install it to a
location of your choice.
JDK 11 is required to build Android apps. For
the latest information regarding supported Java versions, system
requirements and Java support, please refer to the Supported platforms
and databases document, available on the "Products" download page
of the Four Js Web site.
Note:
Genero Mobile for Android 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.
Launch Genero Studio.
Select Tools > Genero Configurations to open the Genero Configuration Management window.
Set the JAVA_HOME variable to the location of the Java SDK directory. To edit
the JAVA_HOME environment variable, select an Android configuration, select
the Java SDK environment set, and double-click the JAVA_HOME
environment variable.
Set the ANDROID_SDK_ROOT variable to the location where you want to install
the Android SDK, for example
C:\Android\android-sdk. To edit the ANDROID_SDK_ROOT
environment variable, select the Android environment set, double-click the
ANDROID_SDK_ROOT environment variable, and edit the value to point to the Android SDK directory.
Note:
On Windows, it is recommended to set ANDROID_SDK_ROOT to a location outside of
the Program Files directory. If you install Android SDK in the Program Files directory, Genero Studio must be run as administrator to
auto-configure the SDK.
In the ANDROID_SDK_ROOT directory, create a subdirectory called
cmdline-tools.
In the PATH variable of the Android environment set,
ensure that $(ANDROID_SDK_ROOT)\cmdline-tools\latest\bin is included, and add
it if it is not.
Download the Android Software
Development Kit (SDK).
Download the installer zip file for your operating system.
Unzip the installer file into the
ANDROID_SDK_ROOT/cmdline-tools directory.
Warning:
On Windows®10, the default zip tool corrupts the Android Command Line Tools zip archive. Use
another zip program, such as 7zip.
If the Android SDK
Manager launches, close it.
Rename ANDROID_SDK_ROOT/cmdline-tools/cmdline-tools to
ANDROID_SDK_ROOT/cmdline-tools/latest. The path to find command
line tools binaries must be
ANDROID_SDK_ROOT/cmdline-tools/latest/bin.
In the Configuration Name list, right-click on the
Android configuration and select Set Genero
Configuration Active.
Select OK to save the changes and close the Genero Configuration
Management window.
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.
You need an internet connection the first time you build an Android package. During this first build, an
automated process downloads and installs Gradle with all necessary extensions into a
directory in your user directory. Gradle is a project automation tool; find out more at
http://www.gradle.org.