failed to follow the tutorial

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

kodkodd
Posts: 12
Joined: Mon Apr 08, 2019 2:41 am

failed to follow the tutorial

Post by kodkodd »

I just tried livecode, and the tutorial that I follow doesn't work well. I followed this tutorial.

and failed when I tried it on my device. I'm interested in livecode syntax, but I tried the basic thing, HelloWorld and failed. can you help me? :cry:
Attachments
Capture3.PNG
Capture2.PNG
Capture1.PNG
kodkodd
Posts: 12
Joined: Mon Apr 08, 2019 2:41 am

Re: failed to follow the tutorial

Post by kodkodd »

Next post images.
I followed this tutorial.

[url]http://lessons.livec*ode. com/m/4069/l/27733-the-basics-how-do-i-create-hello-world-on-android[/url]
[url]http://lessons.livec*ode. com/m/4069/l/985962-livecode-and-android-studio[/url]
Attachments
Capture7.PNG
Capture7.PNG (11.4 KiB) Viewed 18790 times
Capture5.PNG
Capture4.PNG
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: failed to follow the tutorial

Post by jacque »

Livecode needs ARM architecture but your emulator is set to use x86. If you change the VM to use ARM it should work, everything else looks good.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
kodkodd
Posts: 12
Joined: Mon Apr 08, 2019 2:41 am

Re: failed to follow the tutorial

Post by kodkodd »

I'm frustrated using livecode for android.
can we use it without creating a virtual device?
ARM architecture is very heavy on my computer
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: failed to follow the tutorial

Post by bogs »

I can't say for sure, but I seem to remember one of my friends whom I pointed to Lc saying he skipped the virtual device altogether for testing, and would load it directly onto his device.
Image
Lagi Pittas
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 372
Joined: Mon Jun 10, 2013 1:32 pm

Re: failed to follow the tutorial

Post by Lagi Pittas »

Hi,

This thread will give you 5 ways to run an APK on Android (including a comfy pillow)

https://forums.livecode.com/viewtopic.p ... pk#p144605

Also (to save me typing) check this out
https://www.greenbot.com/article/245798 ... ablet.html

Lagi
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: failed to follow the tutorial

Post by jacque »

The fastest way now is to load the apk directly to the phone. I used to transfer via Dropbox but that's more steps.
  • Make sure standalone settings has Android selected and that your mainstack has focus. Use the charging cable to connect the phone to the computer.
  • Look in the Development menu - > Test Target and you should see the phone ID listed there. Select it.
  • Chose Test from the Development menu, or click the Test button in the top panel.
LC will build the apk, install it directly on the phone, and launch it.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
Lagi Pittas
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 372
Joined: Mon Jun 10, 2013 1:32 pm

Re: failed to follow the tutorial

Post by Lagi Pittas »

Thanks Jacque,

I should RTFM (Read the Fine Manual) - I read it in the release notes probably a year ago even though it was added to in version 7.1.2 nearly three years ago - I only moved from 6 series about a year ago - skipped 7 and 8. - I have "Comfortable shoes" syndrome, and if it ain't broke why fix it until it is?

The Problem is if I don't use a new feature while fresh in the old noggin it seems to go to the Bitbucket - Not this time though thanks to you.

Thanks again Jacque

Lagi
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: failed to follow the tutorial

Post by jacque »

I'm afflicted with the same syndrome, but bug fixes and new features keep pushing me forward. It is, however, the main reason I haven't learned LCB yet. :-)
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
kodkodd
Posts: 12
Joined: Mon Apr 08, 2019 2:41 am

Re: failed to follow the tutorial

Post by kodkodd »

can someone confirm that I can build an android application without an android virtual manager??
I have followed the above method but it still fails.
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: failed to follow the tutorial

Post by jacque »

kodkodd wrote: Fri May 10, 2019 5:55 am can someone confirm that I can build an android application without an android virtual manager??
I have followed the above method but it still fails.
Yes, I do it multiple times per day. If you describe what is going wrong, maybe we can help.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
kodkodd
Posts: 12
Joined: Mon Apr 08, 2019 2:41 am

Re: failed to follow the tutorial

Post by kodkodd »

I have followed the method but failed..My first post has explained how I did it. Until now I have not succeeded. Can you give the right step. So that I can use it on Android
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: failed to follow the tutorial

Post by jacque »

We need to know how it fails. Do you see an error message? Does LC complete the build but fails to open the emulator? Does it open the emulator but does not open the app? What exactly fails?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
kodkodd
Posts: 12
Joined: Mon Apr 08, 2019 2:41 am

Re: failed to follow the tutorial

Post by kodkodd »

my bad.

I succeeded after using Ubuntu to build Livecode. Thanks for your support
kodkodd
Posts: 12
Joined: Mon Apr 08, 2019 2:41 am

Re: failed to follow the tutorial

Post by kodkodd »

jacque wrote: Sat May 11, 2019 6:44 pm We need to know how it fails. Do you see an error message? Does LC complete the build but fails to open the emulator? Does it open the emulator but does not open the app? What exactly fails?
why i always fail when save standalone for android using Windows. After run apk in my android phone. my apk can't open. But if i build using ubuntu. my apk running. I have tried all the tutorials but have not succeeded
Post Reply