Page 4 of 7

Re: Common Android Deployment issues

Posted: Sun Feb 10, 2019 7:36 pm
by sphere
The ARM is still useless slow. So when the 901DP1 will be ready it will support the x86. Then you can use the x86 Android emulator which is really fast.
Meep Meep....pyaaaaauuung :mrgreen:

Re: Common Android Deployment issues

Posted: Sun Feb 10, 2019 7:46 pm
by jacque
That's good news. (You mean 9.0.2, right?) Then I can test on devices I don't own. Yay!

Re: Common Android Deployment issues

Posted: Sun Feb 10, 2019 8:03 pm
by sphere
No sorry 9.1.0DP1--i mixed up the 1 and 0 https://github.com/livecode/livecode-ide/milestone/97 seems almost ready

Re: Common Android Deployment issues

Posted: Fri Feb 15, 2019 8:18 pm
by thatkeith
I'm new to Android development but not new to LiveCode. I am absolutely stumped (and rather annoyed) by how difficult it is to set up the Android SDK and get LiveCode to recognise it. Basically, I have utterly failed to do it.

I have a support contract so I can get help, which I will do if I must – but it's Friday evening now so I presume that help wouldn't be available for a while. Anyway, I just want to find some instructions that are simple, clear and up-to-date! Does this exist?

LiveCode 9.0.2
Mac OS X 10.14 (Mojave)

k

Re: Common Android Deployment issues

Posted: Fri Feb 15, 2019 8:30 pm
by simon.schvartzman
Sorry
I just want to find some instructions that are simple, clear and up-to-date! Does this exist?
I never found such a jewel. If you do please share...

Re: Common Android Deployment issues

Posted: Fri Feb 15, 2019 9:20 pm
by thatkeith
Now I feel like I'm being trolled. In the https://livecode.com/resources/support/ page, down in the Setup section, there are four items: Download LiveCode, Activating LiveCode, iOS Setup, and Android Setup. Each has its own button designed, I presume, to take the user to the appropriate part of the site. Except...
The buttons for Activating LiveCode, iOS Setup, and Android Setup all point to https://livecode.com/download – which is where I can see my current LC licenses and download installers. It is NOT where any of the promised instructions are. I don't even know if those destinations even exist! :? :cry:

Re: Common Android Deployment issues

Posted: Fri Feb 15, 2019 9:27 pm
by Klaus
Hi Keith,

maybe you mean these pages http://lessons.livecode.com/m/4069?

Best

Klaus

Re: Common Android Deployment issues

Posted: Fri Feb 15, 2019 10:18 pm
by thatkeith
THANK YOU Klaus! :!:
That page did help me get everything set up. I am deeply grateful.

Right, time for me to try Android! :D

EDIT: I spoke too soon:
"There was an error while saving the standalone application
could not compile service support class"
Image
:oops:

Re: Common Android Deployment issues

Posted: Fri Feb 15, 2019 10:40 pm
by Klaus
I don't develop for mobile, don't even own any cellphone or tablet, but maybe this helps:
search.php?keywords=could+not+compile+s ... port+class :D

Re: Common Android Deployment issues

Posted: Fri Feb 15, 2019 11:14 pm
by thatkeith
It helped very much, thanks.

The problem turned out to be what someone else in one of those threads experienced: an incomplete removal of a newer Java install in /Library/Java/JavaVirtualMachines. LiveCode's automatic finding of the JDK path had picked up the newer one. Once I deleted that and re-picked the Android SDK the JDK path was remade to the correct one.

Phew! I've now built a test .apk successfully. I am DEEPLY grateful Klaus, and I hope others find it helpful too.

k

Re: Common Android Deployment issues

Posted: Sun Feb 17, 2019 1:18 pm
by simon.schvartzman
Hi Keith I want to apologize if it was my answer that made you "feel being trolled".

My answer was a consequence of my frustration with the lack of good documentation regarding Android installation. It took me several interactions (and I don't know how to reproduce the path) to get it working, as a matter of fact I still can't test on the Android simulators, just on real devices.

Regards

Re: Common Android Deployment issues

Posted: Sun Feb 17, 2019 1:33 pm
by bogs
simon.schvartzman wrote:
Sun Feb 17, 2019 1:18 pm
Hi Keith I want to apologize if it was my answer that made you "feel being trolled".
I don't think he was referring to your answer Simon. From his post, I think he feels the 'trolling' is due to the way the various links he lists all point to the same page, which wasn't helpful (modified quote from Keith) :wink:
thatkeith wrote:
Fri Feb 15, 2019 9:20 pm
Now I feel like I'm being trolled. In the https://livecode.com/resources/support/ page, down in the Setup section, there are four items: Download LiveCode, Activating LiveCode, iOS Setup, and Android Setup. Each has its own button designed, I presume, to take the user to the appropriate part of the site. Except...
The buttons for Activating LiveCode, iOS Setup, and Android Setup all point to https://livecode.com/download

Re: Common Android Deployment issues

Posted: Tue Feb 26, 2019 3:20 pm
by thatkeith
simon.schvartzman wrote:
Sun Feb 17, 2019 1:18 pm
Hi Keith I want to apologize if it was my answer that made you "feel being trolled".
bogs wrote:
Sun Feb 17, 2019 1:33 pm
I don't think he was referring to your answer Simon.
Absolutely right Bogs! :)
Simon, it was purely the frustrating experience of having paths consistently lead me to dead ends that felt like trolling, not your input at all.
I'm delighted to see the incorrect links have been fixed. Thank you to whoever implemented that. :)

Re: Common Android Deployment issues

Posted: Tue Feb 26, 2019 3:38 pm
by bogs
thatkeith wrote:
Tue Feb 26, 2019 3:20 pm
I'm delighted to see the incorrect links have been fixed. Thank you to whoever implemented that. :)
I just love happy endings Image

Re: Common Android Deployment issues

Posted: Tue Dec 28, 2021 9:13 pm
by Jim Mac
Somewhere I think I read that getting Android setup w/Livecode would either be easy or the most frustrating thing in the world.... I'm in the latter boat.
LC 9.6.6 (RC-1) & 9.6.5; Big Sur 16.2, Android Studio (Arctic Fox 2020.3.1 Patch 4), JDK jdk-8u311-macosx-x64

I've followed (I think) all the various instructions (see below) and still have no joy.
In the Mobile Support pain (no pun intended)... I can set the Android SDK path without errors BUT I get no JDK entry and...
Screen Shot 2021-12-28 at 11.53.40 AM.png
I can't for the life of me figure out what I'm doing wrong.
As an interesting side note... I can open a simulator from Android Studio and Livecode sees it as a test platform and loads the app and it "works".

I just don't see the JDK entry.

I'm tempted to not care but I'm afraid it will bite me later on...
If this is the best course of action... I'm all for it... on to the next things.

-------------
My next issues will be why fullscreen effects are not working in the simulator, why there seem to be random "clicks" happening (it's like mouseEnter is triggering a mouseUp) and why I can't connect to a physical device I have for testing,
-------------

1) Installed Android Studio (Arctic Fox 2020.3.1 Patch 4)
2) Selected SDK Platforms (based on Klaus post recommendation from November '21)
Android API 32 >Android SDK Platform 32
Android 12.0 (S)>Android SDK Platform 31
>Sources for Android 31
Android 11.0 (R) >Android SDK Platform 30
>Sources for Android 30
>Google APIs Intel x86 Atom System Image
Android 10.0 (Q) >Android SDK Platform 29
>Sources for Android 29
>Google APIs Intel x86 Atom System Image
3) Selected SDK Tools as follows:
Android SDK Build-Tools 32> 32.0.0
> 31.0.0
> 30.0.3
> 29.0.3
> 28.0.3
> 27.0.3
> 26.0.3
4) Installed Java 8 using jdk-8u311-macosx-x64.dmg