Common Android Deployment issues

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Common Android Deployment issues

Postby heatherlaine » Mon Oct 26, 2015 12:17 pm

Dear folks,

When building for Android there are various steps you need to take, and a number of known issues which come up frequently. Before seeking assistance, it is helpful to check these lessons:

http://lessons.runrev.com/m/2571/c/11956

Read this blog post:

https://livecode.com/how-to-deploy-apps ... d-devices/

and view this video:

https://www.youtube.com/watch?v=83qrKr9bR3M

If you are still stuck - post away! We're all here to help :)

Regards,

Heather
Customer Services Manager
LiveCode Ltd.
heatherlaine
Site Admin
Site Admin
 
Posts: 302
Joined: Thu Feb 23, 2006 7:59 pm

Re: Common Android Deployment issues

Postby felixyonathan » Fri Jan 06, 2017 10:15 am

Hi guys. I've been using LiveCode for several days. I deployed my app successfully for testing on Android. However, after asking to install, the app doesn't appear to be installed. It passed through the screen and nothing happened.

Thank you for your help.
Attachments
Screenshot_2017-01-06-16-12-36-223_com.google.android.packageinstaller.png
felixyonathan
 
Posts: 1
Joined: Fri Jan 06, 2017 10:03 am

Re: Common Android Deployment issues

Postby jacque » Fri Jan 06, 2017 6:07 pm

If the app was previously installed and you haven't changed the build number of the new version, you will get the behavior you describe. It will appear to install but the old copy remains. There are two ways to avoid this.

1. Uninstall the old copy before installing the new one.
2. Change the build number in the Android pane of standalone settings before compiling the standalone.

If you have the phone attached by cable to the computer and are using the Test button in LC's toolbar, you don't need to worry about it, LC manages the uninstall /reinstall for you.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 3597
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN

Re: Common Android Deployment issues

Postby simon.schvartzman » Wed Feb 01, 2017 10:03 pm

I'm experiencing the following problems to get the setup working and will appreciate the usual help from the community

1- the link referenced @ How do I Become an Android Developer on a Mac? to download the Android SDK

http://developer.android.com/sdk/index.html

gets redirected to Download Android Studio instead

https://developer.android.com/studio/index.html

2 - I downloaded it, installed all the SDKs as instructed

sdk.jpeg


but I can't find/setup the location on LC Preferences

sdk2.jpeg


3 - I've also downloaded the JAVA SDK but I don't see how to define its location on LC Preferences

sdk3.jpeg
Simon
simon.schvartzman
 
Posts: 102
Joined: Tue Jul 29, 2014 12:52 am

Re: Common Android Deployment issues

Postby jacque » Wed Feb 01, 2017 10:28 pm

You don't need Studio, I'd delete it. Go back to the Android SDK download page and scroll all the way to the bottom where you can "Get just the command line tools". Install for your OS (which looks like Mac from the screenshots.) Put the folder in an accessible location. Many people use Documents. I have created a Developer folder expressly for it.

Double-click on the android file ("android-sdk-macosx/tools/android") to launch the command line tools in Terminal, which will open the SDK manager. Check that the correct files are installed.

Re-launch LC. In LC preferences, point the SDK root path to the "android-sdk-macosx" folder (or the equivalent if you aren't on Mac.) LC should find the JDK Path entry by itself. Mine says "JDK Path: /Library/Java/JavaVirtualMachines/1.6.0.jdk". It used to be that you needed the 1.6.0 java engine for Mac, which I'm still using, but I'm not sure if LC has changed to allow a newer version.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 3597
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN

Re: Common Android Deployment issues

Postby AxWald » Thu Feb 02, 2017 10:21 am

Hi,

as Jacque said, you don't need the full Studio, the SDK manager is all that's required. But if you have the studio already, it works, too!

What you need to enter in the LC preferences/ Mobile support is the correct path to the installed SDK, and this can be tricky and confusing. Android creates a bunch of folders all over the system, and many of them hidden ...
For me on Win (with full Studio) it's: "C:\Users\myName\AppData\Local\Android\sdk". On another computer with only the raw SDK it's: "C:\Users\myName\AppData\Local\Android\android-sdk"

In any case it's the one that is shown in the header line of the SDK manager (Your first pict, the selected entry at "Android SDK Location:")

Select the correct SDK folder in the LC preferences, make sure it's the same as shown in the SDK manager, and you should be done. The JDK path should be there then, too. Automagically.

Hope this helped, have fun!
Livecode programming until the cat hits the fan ...
AxWald
 
Posts: 276
Joined: Thu Mar 06, 2014 2:57 pm

Re: Common Android Deployment issues

Postby simon.schvartzman » Thu Feb 02, 2017 4:49 pm

@Jacke and @AxWald, many thanks to both of you for your inputs.

I tried Jacke's and worked (at least now I see LC properly pointing out to where the Android SDK).

Next goal to successfully compile my first Android App.

Regards
Simon
simon.schvartzman
 
Posts: 102
Joined: Tue Jul 29, 2014 12:52 am

Re: Common Android Deployment issues

Postby IanMcK » Mon Apr 17, 2017 11:55 am

Hi

I too am having installation issues on Windows 10 with LC 8.1.3 Indy. I have installed and re-installed Android SDK a number of times, tried the SDK tools approach a number of times - all with the same result.

In the end I went for the Studio Option. I know its not really needed but all the modules (tools, platform etc) were there.
I installed the SDK in a folder in my Documents folder, ran LC and attempted to link to the SDK. However, I continually get this message whatever I do.

"The chosen folder is not a valid Android SDK. Please ensure you have installed it correctly, and enabled support for Android 4.0.3 (API15)"
The folder contents are shown in here

AndroidSDK Folder Contents.png


Now the folder location in LC is exactly as it appears in location box in the SDK window.
D:\IanM\Documents\AndroidSDK
Android 4.0.3 has been installed as has Java Version 8 Update 121.

Can anyone suggest what I am doing wrong?

Many thanks
IanMcK
 
Posts: 13
Joined: Mon Jul 05, 2010 10:47 am

Re: Common Android Deployment issues

Postby AxWald » Mon Apr 17, 2017 1:32 pm

Hi,

after updating to the most recent Studio my LC didn't recognize it anymore, too. I had to remove it & install something older (found a SDK manager Rev. 24.2.1, don't remember where) - this works as before.

LC seems to be quite picky with newer SDK's, I decided not to update it (the SDK) anymore.

Have fun!
Livecode programming until the cat hits the fan ...
AxWald
 
Posts: 276
Joined: Thu Mar 06, 2014 2:57 pm

Re: Common Android Deployment issues

Postby IanMcK » Wed Apr 26, 2017 3:17 pm

Just to provide an update. I downloaded the SDK package and installed it again using the terminal. Everything now works as it should. Brilliant.
Thanks for the help.
IanMcK
 
Posts: 13
Joined: Mon Jul 05, 2010 10:47 am


Return to Android Deployment

Who is online

Users browsing this forum: No registered users and 1 guest