Page 1 of 1
android sdk [SOLVED]
Posted: Fri Nov 05, 2021 10:25 am
by Samuele
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
Re: android sdk
Posted: Fri Nov 05, 2021 1:48 pm
by Klaus
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
Re: android sdk
Posted: Fri Nov 05, 2021 1:59 pm
by Klaus
Will move this thread to the Android forum...
Re: android sdk
Posted: Sat Nov 06, 2021 8:17 pm
by Samuele
thank you very much! It worked
Re: android sdk
Posted: Sat Nov 06, 2021 9:33 pm
by Samuele
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.
Re: android sdk
Posted: Sat Nov 06, 2021 9:50 pm
by Samuele
Re: android sdk
Posted: Sat Nov 06, 2021 10:40 pm
by Klaus
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.
Re: android sdk
Posted: Sun Nov 07, 2021 12:10 am
by Samuele
i tried and it gives me me the same error.
Re: android sdk
Posted: Sun Nov 07, 2021 5:12 pm
by jacque
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.
Re: android sdk
Posted: Sun Nov 07, 2021 7:35 pm
by Samuele
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.
Re: android sdk
Posted: Sun Nov 07, 2021 8:56 pm
by jacque
What version of Java did you install? You need Java 8.
Re: android sdk
Posted: Thu Nov 11, 2021 4:38 pm
by Samuele
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!
Re: android sdk [SOLVED]
Posted: Wed Dec 29, 2021 3:32 am
by Jim Mac
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