Page 1 of 1

Installation Livecode community 8.1.3 and Android 2.3.1

Posted: Mon May 08, 2017 7:31 am
by Deva
Hi! Everyone,
I'm new to livecode and started to try some basic tutorial and i have problem configure location of android development.
anyone can help me ? appeciate it..
Thanks.. :-)

C:\users\STS\Appdata\local\android\sdk <-- my path to android development sdk


========
Error msg:
========

" the chosen folder is not a valid android sdk..."

Pc spec:
window 7 home premium
livecode community 8.1.3
android studio 2.3.1

Re: Installation Livecode community 8.1.3 and Android 2.3.1

Posted: Mon May 08, 2017 9:54 am
by Klaus
Hi Deva,

1. welcome to the forum! :D

2. Please check this thread, maybe that will help you:
http://forums.livecode.com/viewtopic.php?f=53&t=29054

And also check other threads in the "Android" forum.


Best

Klaus

Re: Installation Livecode community 8.1.3 and Android 2.3.1

Posted: Mon May 08, 2017 10:20 am
by LiveCode_Panos
Hi Deva,

Welcome to the forum.

For Android Development you need to install either Android Studio or just the Android SDK tools.

Unfortunately, the newest versions of both the Android Studio and the SDK tools do not work with LiveCode.

On the good news:

- We will fix this problem shortly.
- You can still use an older version of the SDK tools, which do work as expected. Just follow the instructions of this lesson:

http://lessons.livecode.com/s/lessons/m ... er-on-a-pc

The older versions of Android SDK tools are a bit difficult to be found, but you should be able to download them directly using those links:

(here XX is the version number, e.g. 23 should be fine)

http://dl.google.com/android/repository ... ux_x86.zip
http://dl.google.com/android/repository ... indows.zip
http://dl.google.com/android/repository ... macosx.zip

Since you are developing on Windows, use this link:

http://dl.google.com/android/repository ... indows.zip

Moreover, you can track the progress on making the newest Android Studio to work with LiveCode in this bug report:

http://quality.livecode.com/show_bug.cgi?id=19509

Best regards,
Panos

Re: Installation Livecode community 8.1.3 and Android 2.3.1

Posted: Tue May 09, 2017 7:29 am
by Deva
Hi! LiveCode_Panos, Klaus

Thank you for the link you send me. :-) This give me some idea how the livecode and android installation works on windows.

As suggested by panos, i did try install the old version of Android SDK but have problem during install the package
with error message "Package android tv intel x86 atom system image. android API 25, revision 3' depends on missing sdk platform android, API 25"

How to install the missing SDK platform android, API 25?

Thanks.

Re: Installation Livecode community 8.1.3 and Android 2.3.1

Posted: Tue May 09, 2017 9:50 am
by LiveCode_Panos
Hi Deva,

You can install additional packages using the SDK Manager:

Inside the sdk/tools/lib folder you will find the files "AVD Manager.exe" and "SDK Manager.exe". Copy these files and place them in the sdk folder.

So then launch the Android SDK Manager and select the packages you would like to install in your Android development environment.

Note that LiveCode requires the Android 4.0.3 (API 15) Package to be installed. Select Android 4.0.3 (API 15) in the list and click the Install button to install the package.

Best,
Panos
--

Re: Installation Livecode community 8.1.3 and Android 2.3.1

Posted: Tue May 09, 2017 1:16 pm
by Deva
Hi! Panos,

I did run the sdk manager and selected the android 4.0.3 to install the package but when i click install it goes to another dialog box to asking me to agree on the android license after selected agree the install button still disable.


Description or message saying:
"Package android tv intel x86 atom system image. android API 25, revision 3' depends on missing sdk platform android, API 25
:|

Re: Installation Livecode community 8.1.3 and Android 2.3.1

Posted: Tue May 09, 2017 3:02 pm
by LiveCode_Panos
Hi Deva,

If the "Install" button is still disabled, it means that there are more licenses you have to "Accept".

Once you accept all licenses, you should see **only** green ticks in the left pane (and not red Xs).

See screenshots:

Not accepted all licenses:
Screen Shot 2017-05-09 at 14.56.33.png
After accepting all licenses:
Screen Shot 2017-05-09 at 14.56.51.png
Hope this helps,
Panos
--

Re: Installation Livecode community 8.1.3 and Android 2.3.1

Posted: Thu May 11, 2017 4:49 am
by Deva
Hi! Panos,

Thanks for reply so quickly, apperciate it..
Yes, i did run the SDK Manager and agree all the license but it still not install with
grey colour [install] button disable.

as for now im still using LVC 8.1.3 with Android SDK R23 (I uninstall android 2.3.1)

any help or suggestion is appreciate ..
2.png
button disable
1.png
log when run sdk manager

Re: Installation Livecode community 8.1.3 and Android 2.3.1

Posted: Thu May 11, 2017 6:42 am
by SparkOut
The last line (in the actual app window, not the list field) shows an error which is why the button is disabled. Deselect the Android TV Intel x86 Atom System Image and see if it lets you install then.

Re: Installation Livecode community 8.1.3 and Android 2.3.1

Posted: Thu May 11, 2017 11:27 am
by richmond62
Thank you such a lot for this: this explains
why I made such a bosh trying to set up for Android a few weeks ago.

Re: Installation Livecode community 8.1.3 and Android 2.3.1

Posted: Thu May 11, 2017 12:10 pm
by SparkOut
Nae borra Richmond

Re: Installation Livecode community 8.1.3 and Android 2.3.1

Posted: Fri May 12, 2017 1:52 am
by Deva
hi! Sparkout,

Thanks for the infor, it seem not all the default package will be allowed to install i guess unless you reject it. for my case i uncheck the 25 API from the package then the install button is enable. now still trying to download the android 4.0.3 as it was interrupted few time, will update if everthing goes smoothly...

sorry for the long post guys.. im complete beginner.. :D

Re: Installation Livecode community 8.1.3 and Android 2.3.1

Posted: Sun May 21, 2017 3:16 am
by Deva
Hi! Guys , just want to update you guys that now my installation is okay now and started build simple Praise and Worship song with lyric using ;

============================
Livecode community 8.1.3
Android sdk tools 24.4.1
Android sdk platform-tools 23.0.1
Android 4.0.3 (API 15) ==> still downloading some package
Windows 7 Home Premium 32bit

=========================================================

Question: i have some problem with the program im doin now, i have created a button goin to next card but even i click the background i still can go to next card. Anybody can help me or can give me link to solve this. appreciate it very much . thanks...
Thanks. :wink:

Re: Installation Livecode community 8.1.3 and Android 2.3.1

Posted: Sun May 21, 2017 5:22 pm
by Klaus
Hi Deva,
Deva wrote:...
Question: i have some problem with the program im doin now, i have created a button goin to next card but even i click the background i still can go to next card. Anybody can help me or can give me link to solve this. appreciate it very much . thanks...
hm, sure there is no other "mouseup" handler somewhere on your card?
Maybe a group or the card script or the stack script?
Otherwise this should not happen.

Best

Klaus

Re: Installation Livecode community 8.1.3 and Android 2.3.1

Posted: Fri May 26, 2017 1:48 am
by Deva
Hi!Klaus :) ,

Thanks for the quick klaus reply, appreciate it, i think you're right .. :lol: i dont how i can add handler inside the stack card :wink:
now its working, im closer to develop my first simple android software.

Dave.