Exporting standalone

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: Klaus, FourthWorld, heatherlaine, kevinmiller

Quinton B.
Posts: 108
Joined: Mon Mar 20, 2017 5:13 am

Exporting standalone

Post by Quinton B. » Mon Oct 15, 2018 3:18 am

I've been at this for days. I've been trying to export my file as a standalone. Under preferences were you find the folder path for for the Android sdk, I've tried every folder, including appdata, but I still cannot get the jdk path either. I'm screwing up somewhere. Please help me with this.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5155
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Exporting standalone

Post by jacque » Mon Oct 15, 2018 10:25 pm

Where did you save the SDK on your computer? On my Mac the folder name is "android-sdk-macosx" and that's what I selected. If you are on Windows I assume the folder will be similarly named.

Also, did you download only the commandline tools, or did you download Android Studio?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Quinton B.
Posts: 108
Joined: Mon Mar 20, 2017 5:13 am

Re: Exporting standalone

Post by Quinton B. » Tue Oct 16, 2018 1:59 am

It's quite similar. Here is one of the paths that I've tried: C:/Users/quint/AppData/Local/Android/Sdk.
It didn't work. It still gives me the error: "There was an error while saving the standalone application could not compile service support class". Still, don't understand what I'm doing wrong. I even uninstalled android studio and redownloaded all the supported 4.0.3 & 8.0 os.
Attachments
Untitled.png

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5155
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Exporting standalone

Post by jacque » Tue Oct 16, 2018 2:25 am

You need the command line tools. I don't use Studio but I believe it has that option in a popdown menu. Did you download those?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5155
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Exporting standalone

Post by jacque » Tue Oct 16, 2018 4:05 pm

I just noticed that you don't have Java installed, or at least LC can't find it. You need to install Java 8.x.
https://www.oracle.com/technetwork/java ... 33151.html

There's more info here:
http://lessons.livecode.com/m/2571/l/27 ... er-on-a-pc
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Quinton B.
Posts: 108
Joined: Mon Mar 20, 2017 5:13 am

Re: Exporting standalone

Post by Quinton B. » Wed Oct 17, 2018 4:03 am

Cool beans. I downloaded the software and followed the guide attached. I still remain to receive the following error: "There was an error while saving the standalone application could not compile service support class".
I had java on this computer prior to your message, but I did not have your version of java which livecode couldn't find.
Attachments
Untitled1.png

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5155
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Exporting standalone

Post by jacque » Wed Oct 17, 2018 8:11 pm

I'm running out of ideas. Did you completely delete the other Java package? Also, you may need to restart LC if you haven't already.

On my setup I have the Android SDK installed (command line tools only , no Studio,) and Java 1.8.0_171 jdk. That's all it took to get a successful Android compile. I'd think your 191 jdk should work okay too, LiveCode only specifies incompatibility with Java 9 and 10.

If you search the forums for "could not compile service support class" you'll get dozens of posts, it's the most common error and you may find an answer I haven't thought of.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Quinton B.
Posts: 108
Joined: Mon Mar 20, 2017 5:13 am

Re: Exporting standalone

Post by Quinton B. » Wed Oct 17, 2018 11:45 pm

I had uninstalled the previous version of java, and reinstalled it, along with livecode and android studio. I looked at some other posts without prevail.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5155
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Exporting standalone

Post by jacque » Thu Oct 18, 2018 12:54 am

What LC version? I think that's the only question I haven't asked yet.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Quinton B.
Posts: 108
Joined: Mon Mar 20, 2017 5:13 am

Re: Exporting standalone

Post by Quinton B. » Thu Oct 18, 2018 8:05 pm

Livecode: 9.0 Community edition
Android Studio: 3.2.1
Java JDK 191
What else is going on?

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5155
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Exporting standalone

Post by jacque » Thu Oct 18, 2018 8:40 pm

That should work. The only thing I can think of is to have you duplicate my setup, which doesn't include Studio. But since I'm on a Mac and you're on Windows, there may be slightly different ways of accessing the SDK.

Look inside the Android SDK and see if you can find a file named "android" inside a Tools folder. If so, double-click it to launch the Java app which will display the available packages. You should have the latest SDK Tools, SDK Build Tools, and SDK Platform-tools installed, as well as at least packages 4.0.3 and maybe a few newer ones.

The screnshots below show some of the build tools I have installed (there are some years-worth in there) and also a couple of the packages. You don't really need all the extra junk in the packages, I usually only install the SDK Platform for each.

Maybe this will help, if you want to experiment.
Attachments
Screen Shot 2018-10-18 at 2.36.57 PM.png
Screen Shot 2018-10-18 at 2.36.21 PM.png
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Quinton B.
Posts: 108
Joined: Mon Mar 20, 2017 5:13 am

Re: Exporting standalone

Post by Quinton B. » Thu Oct 18, 2018 9:42 pm

I already have every platform and sub-platform files downloaded.

Quinton B.
Posts: 108
Joined: Mon Mar 20, 2017 5:13 am

Re: Exporting standalone

Post by Quinton B. » Thu Oct 18, 2018 9:55 pm

I just looked at the LiveCode site, it said it supported LiveCode: LiveCode 8.1.5, not 9.0.
I'm about to see if it works.

Quinton B.
Posts: 108
Joined: Mon Mar 20, 2017 5:13 am

Re: Exporting standalone

Post by Quinton B. » Thu Oct 18, 2018 10:07 pm

It didn't work.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5155
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Exporting standalone

Post by jacque » Fri Oct 19, 2018 1:19 am

I was just compiling an Android app today, I'm using LC 9.0.1, so I know that works. I think we need a Windows user to chime in, I've used up all my ideas. Wish I could tell you more. :(
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”