Could not compile service support class

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
eranr
Posts: 3
Joined: Thu Oct 17, 2019 7:24 am

Could not compile service support class

Post by eranr » Thu Oct 17, 2019 7:36 am

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

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: Could not compile service support class

Post by sphere » Thu Oct 17, 2019 10:00 am

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?

eranr
Posts: 3
Joined: Thu Oct 17, 2019 7:24 am

Re: Could not compile service support class

Post by eranr » Thu Oct 17, 2019 11:12 am

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

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: Could not compile service support class

Post by sphere » Thu Oct 17, 2019 12:45 pm

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
sdk.JPG (8.48 KiB) Viewed 4809 times
unless you want to run emulators

and the platform tools:
tools.JPG
tools.JPG (11.13 KiB) Viewed 4809 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.

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Could not compile service support class

Post by bogs » Thu Oct 17, 2019 1:09 pm

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.
Image

eranr
Posts: 3
Joined: Thu Oct 17, 2019 7:24 am

Re: Could not compile service support class

Post by eranr » Thu Oct 17, 2019 4:54 pm

Hi Sphere,

The JDK version 8 worked! Thanks for your help!

Eran

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: Could not compile service support class

Post by sphere » Thu Oct 17, 2019 5:06 pm

Great!
Have fun :)

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”