LiveCode and Android Studio

Although we recommend downloading the Android SDK on its own if you already have Android Studio installed this article will show you how to use LiveCode and Android Studio together for Android Development.

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.

How do I Become an Android Developer on a PC?

How do I Become an Android Developer on a Mac?

How do I become an Android developer on Linux?

 

Opening the SDK Manager

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

Installing the required packages

The Android SDK Manager lets you select the packages you would like to install in you 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

Configuring LiveCode for Android Support

By now, you should have successfully installed the required software in you 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

How do I Become an Android Developer on a PC?

How do I Become an Android Developer on a Mac?

How do I become an Android developer on Linux?

 

0 Comments

Add your comment

E-Mail me when someone replies to this comment