LiveCode and Android Studio - 8.1.5 onwards
As of LiveCode 8.1.5 you can use Android Studio with LiveCode to set up Android deployment.
In this lesson we assume you have the Java SDK installed, if you have not done this yet please follow the steps in the relevant lesson.
Opening the SDK Manager
Begin by starting up Android Studio.
LiveCode requires the Android 4.0.3 (API 15) Package to be installed. To open the SDK Manager, which allows additional packages to be installed select SDK Manager from the Configure menu on the Android Studio opening screen.
Installing the required packages
The Android SDK Manager lets you select the packages you would like to install in your Android development environment. By default, only a few packages are selected. From this version of the SDK I would recommend keeping the default selection.
LiveCode requires the Android 4.0.3 (API 15) Package to be installed. Select Android 4.0.3 (IceCream Sandwich) in the list and click the Apply button to install the package.
Note: you can see the Android SDK location at the top of the Window, take a note of this as you will need it in the next step.
Configuring LiveCode for Android Support
By now, you should have successfully installed the required software in your development environment. The next step is to launch LiveCode and configure it to interface with the Android SDK.
Launch the LiveCode IDE and select Edit -> Preferences to launch the Preferences menu. Then select Mobile Support and you are presented with the dialog shown in this step.
This dialog allows you to configure the path to the Android SDK root, which you should already have installed. Select ... under Android SDK and choose the folder containing the Android SDK root.
Validation checks are made once you specify the location of the Android SDK root. This ensures that you have selected a valid location and have the required Android components installed.
The following error message may be raised if something is wrong with your set up:
The chosen folder is not a valid Android SDK. Please ensure you have installed it correctly, and enabled support for Android 4.0.3.
This indicates that the path you specified is not pointing at the Android SDK root. You may have to navigate one level deeper into the folder hierarchy to access the root folder. The root folder may look something like: ...android-sdk-windows.
Deploying to an Android device
Now you have your LiveCode Android preferences set up you can deploy to an Android device or emulator.
You can find a description of these setups in the following lessons