Unable to deploy app to Android

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
NebulousBee
Posts: 5
Joined: Wed Nov 05, 2014 8:47 pm

Unable to deploy app to Android

Post by NebulousBee » Mon Mar 27, 2017 1:34 am

Hi all,
I'm somewhat new at this. I've had this working on another of my laptops but now need to setup on a new machine. I'm stuck & need help please.

- Windows 10 (64-bit) laptop with LiveCode 8.1.2 installed and running just fine
- I installed the Java SDK 1.8.0.121 (64-bit) today to its default path: C:\Program Files\Java\jdk1.8.0_121
- I then installed Android Studio 2.2 to my chosen path: C:\bat\Android\sdk (not just the CLI tools, because I do also intend to do Android-only development)
- I ran Android Studio then and then Android SDK Manager.
- It shows the SDK is installed at: C:\bat\Android\sdk
- I installed the updates as recommended on the Android lesson, and then rebooted my computer.
ss-000121.png
- I go into LC 8, go to Edit > Preferences > Mobile Support.
- I select the SDK path above and multiple variations of it, and always get this message:

"The chosen folder is not a valid Android SDK. Please ensure ..."

Help, please. I have read many other forum posts and the "LiveCode and Android Studio" page and nothing has yet helped me past this.

As a side bar, why can't that error message be more specific? I wish it would report the error details which I assume are being thrown somewhere deep undercover so I'd have a clue what's missing / wrong with my installation.

Thanks for any assistance.

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 864
Joined: Fri Feb 06, 2015 4:03 pm

Re: Unable to deploy app to Android

Post by LiveCode_Panos » Mon Mar 27, 2017 1:39 pm

Hi NebulousBee,

Which version of the "SDK Tools" have you installed?

I have Android SDK Tools 24.4.1 and Android SDK Platform-tools 23.1.

Best,
Panos
--

NebulousBee
Posts: 5
Joined: Wed Nov 05, 2014 8:47 pm

Re: Unable to deploy app to Android

Post by NebulousBee » Tue Mar 28, 2017 3:38 am

Hi Panos,
I have the SDK Tools v25.3.1 installed.

I have the SDK Platform Tools v25.0.4 installed.

Is that good or bad or neither?

Thanks

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 864
Joined: Fri Feb 06, 2015 4:03 pm

Re: Unable to deploy app to Android

Post by LiveCode_Panos » Tue Mar 28, 2017 9:58 am

Hi NebulousBee,

If I remember correctly, a user in the past had a similar problem, which was resolved once she installed an older version of SDK Tools and SDK Platform-tools, so you could probably try to install SDK Tools 24.4.1 and Android SDK Platform-tools 23.1. (since this is a working combination, at least for me).

Another thing I noticed is the location of the installation.

In the lesson (and in my machine) the android sdk is installed in C:\Users\<username>\AppData\Local\Android\sdk, whereas you have installed it in C:\bat\Android\sdk.

It shouldn't make any difference, but you could probably install it in the same location as the lesson does, to see if this works.

Best regards,
Panos
--

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Unable to deploy app to Android

Post by Klaus » Tue Mar 28, 2017 10:55 am

Hi Panos,

I think it would not hurt to update the lesson "How to become an Android developer" on "lessons.livecode.com".
Things (screenshots) look a bit different nowadays than in that old webpage. :D


Best

Klaus

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 864
Joined: Fri Feb 06, 2015 4:03 pm

Re: Unable to deploy app to Android

Post by LiveCode_Panos » Tue Mar 28, 2017 12:58 pm

Hi Klaus,

Which particular lesson(s) and screenshot(s) are you referring to? We recently added a lesson "LiveCode and Android Studio" (http://lessons.livecode.com/m/2571/l/62 ... oid-studio) which seems to be up to date. I guess this is the lesson NebulousBee is referring to.

Regarding the old lessons "How do I become an Android Developer on Linux/PC/Mac", I had a quick look and they seem up to date to me (with some minor exceptions, e.g. in the Linux lesson the screenshot showing the LC menubar is from LC 6/7).

Best,
Panos
--

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Unable to deploy app to Android

Post by Klaus » Tue Mar 28, 2017 6:33 pm

Hi Panos,

sorry, my fault, looks like I did not take a look at the mentioned webpage for a long time! :oops:


Best

Klaus

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 864
Joined: Fri Feb 06, 2015 4:03 pm

Re: Unable to deploy app to Android

Post by LiveCode_Panos » Wed Mar 29, 2017 9:44 am

No worries :)

Post Reply