Unable to deploy app to Android
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 5
- Joined: Wed Nov 05, 2014 8:47 pm
Unable to deploy app to Android
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.
- 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.
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.
- 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 Staff Member
- Posts: 864
- Joined: Fri Feb 06, 2015 4:03 pm
Re: Unable to deploy app to Android
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
--
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
--
-
- Posts: 5
- Joined: Wed Nov 05, 2014 8:47 pm
Re: Unable to deploy app to Android
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
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 Staff Member
- Posts: 864
- Joined: Fri Feb 06, 2015 4:03 pm
Re: Unable to deploy app to Android
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
--
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
--
Re: Unable to deploy app to Android
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.
Best
Klaus
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.

Best
Klaus
-
- Livecode Staff Member
- Posts: 864
- Joined: Fri Feb 06, 2015 4:03 pm
Re: Unable to deploy app to Android
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
--
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
--
Re: Unable to deploy app to Android
Hi Panos,
sorry, my fault, looks like I did not take a look at the mentioned webpage for a long time!
Best
Klaus
sorry, my fault, looks like I did not take a look at the mentioned webpage for a long time!

Best
Klaus
-
- Livecode Staff Member
- Posts: 864
- Joined: Fri Feb 06, 2015 4:03 pm
Re: Unable to deploy app to Android
No worries 
