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.

Accept the license agreement (1) and download for Mac OS X x64 (2). Install the dmg file and go back to /Library/Java/JavaVirtualMachines/ to confirm it is now present.

Downloading Android Tools

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 28.0.1. Scroll down and uncheck any other packages which are selected by default. Click "install 2 packages".

Select each package (1) and click Accept (2) under the license. Once both licenses are accepted, click Install (3).

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.

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


Sky Willmott

I experienced some hiccups with installing the Android SDKs that mostly occurred when I got to the dialogs that ask to accept the licenses... There is sometimes a significant delay before it is possible to click on the package in the left panel, and it appears to have hung... However, waiting until it does eventually allow selecting the package then it is possible to click 'Accept' and then the 'Install' button.

The Android SDK package installer sometimes takes several attempts to work properly. It frequently crashes...

I am using macOS Catalina.

Once successfully installed, the LCFM compiler works well though, so if installation of the Android SDK initially fails, then keep trying!

Add your comment

E-Mail me when someone replies to this comment