Build standard AEM Forms app
-
Perform the following steps to set up a project in Android™ Studio and provide a signing identity:
Log in to a machine that has Android™ Studio installed and configured.
-
Copy the downloaded
adobe-lc-mobileworkspace-src-<version>.zip
archive to:For MAC users:
[User_Home]/Projects
For Windows® users:
%HOMEPATH%\Projects
NOTE
For Windows®, it is recommended that you keep the android project in the system drive. -
Extract the archive in the following directory:
For MAC users:
[User_Home]/Projects/[your-project]
For Windows® users:
%HOMEPATH%\Projects\[your-project]
NOTE
It is recommended, that you keep the extracted android project in the system drive before importing the project into Android Studio. -
Launch Android™ Studio.
For MAC users: Update the
local.properties
file present in the[User_Home]/Projects/[your-project]/android
folder and point thesdk.dir
variable toSDK
location on your desktop.For Windows® users: Update the
local.properties
file present in the%HOMEPATH%\Projects\[your-project]\android
folder and point thesdk.dir
variable toSDK
location on your desktop. -
Click Finish to build the project.
The project is available in the ADT Project Explorer.
-
In Android™ Studio, select Import Project (Eclipse ADT, Gradle, Etc.).
-
In the project explorer, select the root directory of the project that you want to build in the Root Directory text box:
For Mac users: [User_Home]/Projects/MobileWorkspace/src/android
For Windows® users: %HOMEPATH%\Projects\MobileWorkspace\src\android
-
After the project is imported, a pop-up appears with option to update the Android™ plugin Gradle. Click the appropriate button depending on your requirement.
-
After successful gradle build, the following screen appears. Connect the appropriate device or emulator with the system and click Run Android™.
-
Android™ Studio displays the connected devices and available emulators. Select the device on which you want to run the application and then click OK.
After you have built the project, you can choose to install the app using Android™ Debug Bridge or Android™ Studio.
Using Android™ Debug Bridge
You can install the application on an Android™ device via the Android™ Debug Bridge with the following command:
For MAC users: adb install [User_Home]/Projects/[your-project]/adobe-lc-mobileworkspace-src-[version]/android/build/outputs/apk/android-debug.apk
For Windows® users: adb install %HOMEPATH%\Projects\[your-project]\adobe-lc-mobileworkspace-src-[version]\android\build\outputs\apk\android-debug.apk