Set the environment variables

Set the following environment variables before starting the build process for the AEM Forms app:

  • Set the JAVA_HOME environment variable to the location of JDK software on the local file system. For example, C:\Program Files\Java\jdk1.8.0_181
  • Set the ANDROID_SDK_ROOT system environment variable to the SDK location for Android. For example, C:\Users\username\AppData\Local\Android\Sdk
  • Set the Path system environment variable to include the platform-tools and tools folder locations for Android. For example, C:\Users\username\AppData\Local\Android\Sdk\platform-tools and C:\Users\username\AppData\Local\Android\Sdk\tools.

Build standard AEM Forms app

Once you have saved the adobe-lc-mobileworkspace-src-<version>.zip file on the local file system and set the environment variables, build standard AEM Forms Android app using any of the following options:

Build AEM Forms app using Android Studio

Perform the following steps to build AEM Forms app using Android Studio:

  1. Launch the Android Studio application on your machine.

  2. Click Open an existing Android Studio project. If the dialog box to open an existing project does not appear automatically, select File > Open.

  3. Navigate to adobe-lc-mobileworkspace-src-<version>.zip/android on the local file system and click OK.

    The android option is displayed in the left pane.

    android_folder_studio

  4. Select android from the left pane and click Run > Run ‘android’.

  5. Select the Android device from the Connected Devices section on the Select Deployment Target dialog box and click OK.

    Once you have built the development environment successfully, you can now apply customizations on the app. Use the following articles to customize the app:

    After applying appropriate customizations to your app, you can generate the .apk file for distribution.