LiveCode for FM Guide Ben Lui

Installing the Android SDK


In order to deploy an app for Android, LCFM Native connects to the Android Software Development Kit. You will need to install this on your computer before you begin. You also need to install the Java JDK, which is required by this SDK.

Installing Java 8

LCFM Native currently requires Java 8, and only Java 8, to be installed on your computer.  If you have a later version of Java, you will need to uninstall it, and then install Java 8. To do this:

1. Go to the Finder and in the top Finder menubar choose Go -> Go to Folder

2. Enter /Library/Java/JavaVirtualMachines/ and press Go

3. You are now in /Library/Java/JavaVirtualMachines/ and you should see a folder named for example "jdk-10.0.2.jdk".

Delete this folder.

4. Download and install "JDK 8u181" from Oracles website, here.

Download for Mac OS X x64. When you click on download you will be asked to agree to the software license, click agree. Install the dmg file and go back to /Library/Java/JavaVirtualMachines/ to confirm it is now present.

Downloading Android Studio

You now need to download and install Android Studio, which you can find here:

After installing Android Studio, open it.

Click on the 3 dots at the top right, and choose SDK Manager

Write down the "Android SDK Location" path. The LiveCode for FM Tool automatically detects this path, but in some cases you might have to tell LiveCode for FM Tool where to look for this.

Now you'll need to install some additional packages.

In the "SDK" Platforms tab, make sure you have checked "Android 11.0 (R)"

In the "SDK Tools" tab, ensure "Show Package Details" is checked at the bottom right. Then, check "30.0.3" under the section "Android SDK Build-Tools"

Then click OK. This will install the selected packages. Click yes in the dialog that will appear and ask you to confirm your choice.

When the additional components are installed, click on Finish button to close the dialog:

You should now have successfully installed all the required Android SDK additional components for use with LiveCode for FM.

Downloading Android Tools (deprecated)

You now need to download the Android Tools SDK, which you can do here:

Create a new folder and name it "android-sdk-v25.2.5". Move your zipped download file into this folder and unzip it - this ensures that when you unzip it, you don't lose sight of the Tools folder it unzips to, which can happen if your downloads are sorted in date order.

You should now have a folder named "android-sdk-v25.2.5" (1) with a tools folder in it (2), and the zip file(3), which you can now move to trash.

Open the Tools folder, and right click on "android". You will see a dialog asking if you want to open it. Click open. You need to right click to get this dialog, otherwise you may be denied permission to open the file.

You now have the Android SDK Manager open. Check the boxes next to Platform-tools and Build-tools for 29.x. Scroll down and uncheck any other packages which are selected by default. Click "install 2 packages".

Select each package in turn (1) and click Accept (2) under the license. You will see the red "x" next the package disappear when the license has been accepted. Once both licenses are accepted, click Install (3). Do not proceed to install until you have clicked both packages to accept their licenses. Note: it can take a while for the licenses to be accepted and installation to begin. If nothing seems to be happening, wait a few minutes and you should be able to proceed with the install.

Once they have finished installing, click "close".

Scroll down in the Android SDK Manager to find Android 10 (API 29). Select this and click "Install one package". Again you need to accept the software license. Note: it can take a while for the licenses to be accepted and installation to begin. If nothing seems to be happening, wait a few minutes and you should be able to proceed with the install.

Close the Android SDK Manager. You should now have successfully installed the required Android SDK for use with LCFM Native.

Previous Article Extracting Data Without Sync
Next Article Buying your first license