Page 1 of 1
Could not compile service support class
Posted: Thu Oct 17, 2019 7:36 am
by eranr
Hi,
My daughter started programming in LiveCode. We are now trying to compile her first standalone application for Android.
Yesterday I downloaded and installed on a 'clean' windows 10, 64bit computer: android studio, jdk, and LiveCodeCommunity
Under: Edit --> Preferences --> Mobile Support --> Android SDK we configured the path to "C:\Users\eranr\AppData\Local\Android\Sdk" - seems to work.
We now get an error message: "there was an error while saving the standalone application could not compile service support class"
I looked at numerous threads about this error message but non of the answers was relevant for us.
Can someone please assist?
Thanks,
Eran
Re: Could not compile service support class
Posted: Thu Oct 17, 2019 10:00 am
by sphere
Hi Eran,
could you give us some version nr's?
LC x.x.x ?
Which JDK? 8.x.x (version 9 will be supported in a next version of LC)
And did you install the minimum Android SDK 4.1.2 (if i'm correct) in Android Studio? The correct minimum is given in LC preferences when not the correct one is installed. API level 15 or 16, and also i have API 28 installed. And i have the SDK tool 26.1.1 and SDK platformtools 29.x.x installed.
And if you have them installed then sometimes building again does work.
Is this when building the APK or when pushing to a test device or emulator?
Re: Could not compile service support class
Posted: Thu Oct 17, 2019 11:12 am
by eranr
Hi sphere,
Thanks for your reply.
When I try to write my versions as numbers, it says I'm trying to post something external to this domain. Anyway, here are my versions:
LC nine five zero
JDK thirteen zero one
Android SDK three five one
I have all SDKs installed from four zero three (API fifteen) up to ten zero (API twenty nine), and also two two (API eight) because I read some old thread that said it worked with that.
I have SDK tools twenty six one one and SDK platform-Tools twenty nine zero four and Android emulator twenty nine two one, and Android SDK Build-tools.
I get the same "could not compile service support class" error both when I try file --> save as standalone application, as well as when I connect my S8 phone and use that as a test target.
Thanks,
Eran
Re: Could not compile service support class
Posted: Thu Oct 17, 2019 12:45 pm
by sphere
So if i read it correctly you have installed Oracle or Open Java JDK 13.0.1 ? Uninstall it
This should be JDK 8.x ( Java SE Development Kit 8u231) get it from here
https://www.oracle.com/technetwork/java ... 33151.html
For the Android SDK's in Android Studio, you only need the platform sdk's like:

- sdk.JPG (8.48 KiB) Viewed 5898 times
unless you want to run emulators
and the platform tools:

- tools.JPG (11.13 KiB) Viewed 5898 times
The version of Android Studio itself is not important (you can also install the sdk's via command line).
I guess it is due to your installed JAva version.
And perhaps you need to add the Java Path to Windows Environment, if not already, then reboot.
Oh, and your phone needs to have developers permissions, but maybe you already did that.
Strange that you could not enter numbers, maybe it works with spaces in between instead of points.
For attachments you need to have at least 10 posts on this forum.
edit: you don't need to install anything for ARMv6, it is not supported anymore.
Re: Could not compile service support class
Posted: Thu Oct 17, 2019 1:09 pm
by bogs
eranr wrote: ↑Thu Oct 17, 2019 11:12 am
When I try to write my versions as numbers, it says I'm trying to post something
external to this domain.
sphere wrote: ↑Thu Oct 17, 2019 12:45 pm
Strange that you could not enter numbers, maybe it works with spaces in between instead of points.
For attachments you need to have at least
10 posts on this forum.
For some reason, currently the board is treating anything with periods(.) as part of a url, as evidenced by the "external to this domain" message.
There are many workarounds for this problem, such as using commas (6,5,2) or underscores(6_5_2) or dashes, spaces, whatever you like. You don't have to spell out each number.
When you hit 10 posts as sphere points out, this will cease to be an issue for attachments, urls, etc.
Re: Could not compile service support class
Posted: Thu Oct 17, 2019 4:54 pm
by eranr
Hi Sphere,
The JDK version 8 worked! Thanks for your help!
Eran
Re: Could not compile service support class
Posted: Thu Oct 17, 2019 5:06 pm
by sphere
Great!
Have fun
