Hi all. I'm brand new to Android deployment. I tried over the last few days to get LC to build for Android, but when I tried to "Set the Location of Android Development SDK Root:, I kept getting the error telling me that the folder wasn't valid. After some poking around I more or less have it working, so I thought I'd share for any other newbies who wander by. This is for Mac, but I expect it should work for Windows too.
First off, here's my setup:
15 Inch Macbook Pro, mid-2010
OSX Yosemite v. 10.10.5
LiveCode Community 8.1.3
(I also tried it on a 64 bit Windows 7 machine with LC9, with the same error)[/indent]
The main problem seems to be that I was trying to install Android Studio. For whatever reason, the SDK folder for the latest build of Android Studio (2.3) is not recognized by LC when you try to set it.
So, here's what worked for me:
(PS - sorry I can't give you direct URLs - My account won't let me post them yet)
First, I installed Legacy Java 6 because of the OS version I'm using. More info here: Search for "Download Java for OS X 2015-001"
Next, I installed the latest JDK from Oracle: Find it at the Oracle site.
And then, I downloaded an Android installer. HOWEVER, I went back a few versions for the Android SDK that I installed. Specifically, I installed Version 24.3.3, which I got here: android-sdk[dot]en[dot]uptodown[dot]com/mac/download/265821 . The reason for this is the current version of Android tools that you can get from the Android site no longer installs the SDK.
In order to install and configure, I followed the directions in this excellent video that LiveCode provides: Search Youtube for "Android Setup LiveCode"
That's it! I hope this saves someone some time. One caveat: for whatever reason, I can't test to the emulator, even though I have it running. However, I am able to build an .APK file and run it on my device, so that's all I need for now.
Good luck!
M-A Kuttner
Installing Android SDK on Mac
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 50
- Joined: Mon Apr 03, 2017 3:55 pm
Installing Android SDK on Mac
Hypertalk developer on and off since the days of SuperCard. Currently using LC to do rapid prototyping for a new kids' toy.
-
- Livecode Staff Member
- Posts: 864
- Joined: Fri Feb 06, 2015 4:03 pm
Re: Installing Android SDK on Mac
Hi M-A Kuttner,
Thank you for sharing this. The current version of Android Studio does not work with LiveCode (the SDK is not recognised). This happens because LiveCode looks for a file named "<root>/tools/lib/sdklib.jar"
but the current version of Android Studio includes "<root>/tools/lib/sdklib-25.3.0.jar".
There is a bug report about this issue (http://quality.livecode.com/show_bug.cgi?id=19509), I suggest adding your email in the cc list so as you get notified when the bug is fixed.
Best,
Panos
--
Thank you for sharing this. The current version of Android Studio does not work with LiveCode (the SDK is not recognised). This happens because LiveCode looks for a file named "<root>/tools/lib/sdklib.jar"
but the current version of Android Studio includes "<root>/tools/lib/sdklib-25.3.0.jar".
There is a bug report about this issue (http://quality.livecode.com/show_bug.cgi?id=19509), I suggest adding your email in the cc list so as you get notified when the bug is fixed.
Best,
Panos
--
-
- Posts: 50
- Joined: Mon Apr 03, 2017 3:55 pm
Re: Installing Android SDK on Mac
Thanks for the tip!
Hypertalk developer on and off since the days of SuperCard. Currently using LC to do rapid prototyping for a new kids' toy.
Re: Installing Android SDK on Mac
Thanks M-A for sharing! It would have been difficult to manage without your post. I just now published my first app on Google Play 
Have a nice weekend!

Have a nice weekend!