android sdk [SOLVED]

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm
Location: Italy

android sdk [SOLVED]

Post by Samuele » Fri Nov 05, 2021 10:25 am

hi i've installed the android sdk to save my stack as a standalone but it doesn't work because it saysan error 8you can see in the attachment), do you know what to do?
thanks
Attachments
Screen Shot 2021-11-05 at 01.51.45.png
Screen Shot 2021-11-05 at 01.51.55.png
Last edited by Samuele on Fri Nov 12, 2021 9:54 am, edited 1 time in total.
Samuele.

Klaus
Posts: 13820
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: android sdk

Post by Klaus » Fri Nov 05, 2021 1:48 pm

Buongiorno Samuele,

do this:
1. open "Android Studio"
2. Go to its "Preferences" and click "SDK"
3. Then check "Show Package Details" at the bottom right of that window.
4. Check all "Android SDK platform xxx" and "Sources for Android xxx".

5. Click "SDK Tools" and check all neccessary tools, see screenshot

6. Wait for the download to be finished, quit "Android Studio" and try again
to set the SDK folder in LC.

See screenshots...
That has worked for me on my Mac.

Best

Klaus
Attachments
sdks.jpg
sdks1.jpg
sdks2.jpg

Klaus
Posts: 13820
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: android sdk

Post by Klaus » Fri Nov 05, 2021 1:59 pm

Will move this thread to the Android forum...

Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm
Location: Italy

Re: android sdk

Post by Samuele » Sat Nov 06, 2021 8:17 pm

thank you very much! It worked
Samuele.

Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm
Location: Italy

Re: android sdk

Post by Samuele » Sat Nov 06, 2021 9:33 pm

hi! sorry to bother, but now when i try to save it as a standalone it gives me this error: "there was an error while saving the standalone application could not compile service support class"
what is the problem?
thanks.
Attachments
Screen Shot 2021-11-06 at 21.42.35.png
Screen Shot 2021-11-06 at 21.41.58.png
Screen Shot 2021-11-06 at 21.37.17.png
Samuele.

Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm
Location: Italy

Re: android sdk

Post by Samuele » Sat Nov 06, 2021 9:50 pm

and this.
Screen Shot 2021-11-06 at 21.49.08.png
Samuele.

Klaus
Posts: 13820
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: android sdk

Post by Klaus » Sat Nov 06, 2021 10:40 pm

Not sure, but in the "Standalone Application Settings" for "Android" you have selected "Sign with my key"
but you did not select a key file.

If you don't have any certificate or key file(s) select "Sign for development only" from that menu.

Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm
Location: Italy

Re: android sdk

Post by Samuele » Sun Nov 07, 2021 12:10 am

i tried and it gives me me the same error.
Samuele.

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

Re: android sdk

Post by jacque » Sun Nov 07, 2021 5:12 pm

Did you include all the SDK tools? Your Android Studio screenshot only shows the SDK platforms. The second tab is the SDK Tools and you need those to build a standalone. See the last image Klaus posted.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm
Location: Italy

Re: android sdk

Post by Samuele » Sun Nov 07, 2021 7:35 pm

yes I've downloaded what's shown in the last image that klaus posted, like 31.0.0 ... are there others i need to download that are not shown in the image?
thamks.
Samuele.

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

Re: android sdk

Post by jacque » Sun Nov 07, 2021 8:56 pm

What version of Java did you install? You need Java 8.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm
Location: Italy

Re: android sdk

Post by Samuele » Thu Nov 11, 2021 4:38 pm

thanks to y'all i've found the problem! (For Mac)
the sdk was all right as Klaus posted in previous posts, the problem was the jdk, although livecode's website redirects you to the newest jdk, you shall not download the newest jdk (17... at the time of this post) but you'll need to install this version: jdk-8u251-macosx-x64.dmg
thanks!
Samuele.

Jim Mac
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 54
Joined: Wed Jun 28, 2006 9:22 pm

Re: android sdk [SOLVED]

Post by Jim Mac » Wed Dec 29, 2021 3:32 am

My 2¢ and a new wrinkle.
Have Android testing working.
Installed jdk-8u311-macosx-x64
Installed Android Studio per Klaus' recommendation.
Works BUT.... the JDK path does not show in the Mobile Support pane.

If this happens to you... don't worry about it?
More details: viewtopic.php?f=53&t=25703&start=45#p211563

Post Reply

Return to “Android Deployment”