This article describes the requirements for developing Android applications with GeneXus, as well as the requirements of the target devices.
Note: Requirements vary if you want to prototype using GeneXus Project Navigator or compile your app.
A setup that automatically downloads and installs all Android SDK requirements is provided. Note that you'll also be able to access this setup through the Update Android SDK tool menu option from the GeneXus IDE.
It is not recommended to install the Android SDK components manually, but in some cases, it may be necessary. That's why the information you will need to do it is provided below.
Note: It is strongly recommended to install the Android SDK (in any directory) with no blank spaces or any special characters.
Note: Starting August 31, 2024, all applications to be uploaded to Google Play must target Android 14 (API level 34). This implies that you must update your development environment to GeneXus 18 Upgrade 7, at a minimum.
SAC # 53749, Target API level requirements for Google Play apps.
The necessary components are available on the Android Developer website.
Component |
Required Version |
Comments |
Android SDK Platform-Tools |
35.0.2 or higher |
- |
Android SDK Build-tools |
35.0.0 exactly |
- |
Android Emulator |
35.2.10 or higher |
- |
Android 15(API 35) |
Any |
-
|
- SDK Platform |
35.0.0 or higher |
- |
Once you have finished installing the requirements, you must define a suitable virtualization accelerator.
Depending on your computer, you can choose one of the following virtualization accelerators:
- Windows Hypervisor Platform (WHPX)
- Android Emulator hypervisor driver (AEHD)
These virtualization accelerators will optimize performance and efficiency when running the x86 Emulator.
If possible, you should use WHPX.
When using WHPX:
- You must check that Intel VT-x (Virtualization) is enabled in your BIOS. Detailed information about how to enable VT-x from the BIOS can be found on this post and this one for troubleshooting.
- The following Windows features must be turned on:
- Hyper-V
- Windows Hypervisor Platform
To check if they are enabled, open Control Panel > Programs > Turn Windows features on, and then, in the pop-up windows, make sure that the corresponding checkboxes are selected.
You can read about how to use WHPX in https://developer.android.com/studio/run/emulator-acceleration#vm-windows-whpx.
- The generated Android application works on devices with API 24 (Android 7.0) or higher.
- There is no "maximum" OS version supported for a given GeneXus upgrade. The generated applications will still work in OS versions released after the release of the GeneXus upgrade. However, the new features of these later OS versions will require a new GeneXus upgrade release to be fully supported.
- The GeneXus setup program searches for the Android SDK version in the Windows registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Android SDK Tools" for 64-bit Windows and in "HKEY_LOCAL_MACHINE\SOFTWARE\Android SDK Tools" for 32-bit Windows.
- Once the SDK Directory is found, it searches the file "<Android_SDK_Installation_Directory>\tools\source.properties" to check that the property "Pkg.Revision=" is 23.0.2.
- If you are using Parallels to run GeneXus in a Windows VM, do NOT place the Android SDK you use on your host machine or in your model directory. The Android Gradle Plugin does not support this, and it may lead to strange behavior while compiling (for example, your computer could stop working).
- Solutions for the case that a 404 or 500.19 error occurs.
As stated above, Android SDK requires at least 3GB of free space on your disk.
Approximately 2 GB of RAM are required by default for compilation; this value can be changed in the Android specific properties.
The compilation process uses the Gradle build system, which needs network connectivity to download dependencies. If your environment does not have network connectivity, the build will cancel with an error similar to the following:
error: FAILURE: Build failed with an exception.
error:
error: * What went wrong:
error: A problem occurred configuring root project 'Android'.
error: > Could not resolve all artifacts for configuration ':classpath'.
error: > Could not resolve com.android.tools.build:gradle:3.4.1.
error: Required by:
error: project :
error: > Could not resolve com.android.tools.build:gradle:3.4.1.
error: > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/
build/gradle/3.4.1/gradle-3.4.1.pom'.
error: > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/
gradle/3.4.1/gradle-3.4.1.pom'.
You can add the Gradle --offline option to the Gradle Options property for Android Generator to force Gradle to work offline and not download any dependency. You will need to previously download all the dependencies needed and update the GeneXus installation; follow the steps detailed in SAC #47748.
Android SDK installer
Update Android SDK tool
Creating an Android Virtual Device
Android - FAQ and Common Issues