Error: The chosen folder is not a valid Android SDK.

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

Post Reply
Gambiteer
Posts: 10
Joined: Sat Jun 28, 2014 4:17 am

Error: The chosen folder is not a valid Android SDK.

Post by Gambiteer » Sat Jun 28, 2014 4:39 am

I am trying to configure LiveCode for Android support by selecting the "Location of Android development SDK root" under the "Mobile Support" tab in "Preferences". Here is my file path for the SDK:

C:\Program Files (x86)\Android\android-sdk

But I get an error that says "The chosen folder is not a valid Android SDK. Please ensure you have installed it correctly, and enabled support for Android 2.2 (Froyo)." I have installed the 2.2 packages so that's not the problem (I think). There was a related thread in the Android section of the forums (http://forums.livecode.com/viewtopic.php?f=53&t=15215) but most of the discussion took place 9 or so months ago and I don't know if anything has changed. The two most recent replies, which are from today (June 27th), are asking specifically in regard to Linux, but I am developing on Windows.

Any ideas on how to get LiveCode to recognize the valid SDK?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Error: The chosen folder is not a valid Android SDK.

Post by Simon » Sat Jun 28, 2014 4:46 am

Hi Gambiteer,
Welcome to the forum! :)

Just a check... you are just highlighting the folder android-sdk and not opening it right?
And you installed the Java sdk?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Gambiteer
Posts: 10
Joined: Sat Jun 28, 2014 4:17 am

Re: Error: The chosen folder is not a valid Android SDK.

Post by Gambiteer » Sat Jun 28, 2014 4:33 pm

Thank you :)

I have installed the JDK and, yes, the folder I am selecting is the "android-sdk" folder itself, not anything inside it.

Tribblehunter
Posts: 78
Joined: Wed Apr 10, 2013 9:08 pm

Re: Error: The chosen folder is not a valid Android SDK.

Post by Tribblehunter » Sun Jun 29, 2014 9:00 am

Getting the same problem here. it happened after updating the android SDK manager.

have posted in windows section as well
Returning to try to learn livecode again.

But much greyer at the temples than the last time.

keram
Posts: 340
Joined: Fri Nov 08, 2013 4:22 am

Re: Error: The chosen folder is not a valid Android SDK.

Post by keram » Sun Jun 29, 2014 9:34 am

Tribblehunter wrote:it happened after updating the android SDK manager
Updating to which version?
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit

Tribblehunter
Posts: 78
Joined: Wed Apr 10, 2013 9:08 pm

Re: Error: The chosen folder is not a valid Android SDK.

Post by Tribblehunter » Sun Jun 29, 2014 8:25 pm

the latest. Just removed all android sdk and loaded latest from android. Same problem.

there are some references to this problem on here and on dev sites I am led to believe.
Returning to try to learn livecode again.

But much greyer at the temples than the last time.

Gambiteer
Posts: 10
Joined: Sat Jun 28, 2014 4:17 am

Re: Error: The chosen folder is not a valid Android SDK.

Post by Gambiteer » Sun Jun 29, 2014 10:26 pm

After some looking around, I believe this problem is present in revisions 22 and 23 (the latest) of the SDK, but not in 21.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Error: The chosen folder is not a valid Android SDK.

Post by Simon » Sun Jun 29, 2014 10:44 pm

Hi Gambiteer,
The ver 22 error was fixed in liveCode version 6.2 I think.
I'm on win 7 and running Android sdk manager 22.6.3

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Gambiteer
Posts: 10
Joined: Sat Jun 28, 2014 4:17 am

Re: Error: The chosen folder is not a valid Android SDK.

Post by Gambiteer » Mon Jun 30, 2014 4:49 pm

I am using Livecode Community 6.6.2 and the error persists

Tribblehunter
Posts: 78
Joined: Wed Apr 10, 2013 9:08 pm

Re: Error: The chosen folder is not a valid Android SDK.

Post by Tribblehunter » Mon Jun 30, 2014 8:08 pm

same here.

version 6.6.2 livecode commercial

SDK manager 23.0

Windows 8.1

Anyone else out there got this problem??
Returning to try to learn livecode again.

But much greyer at the temples than the last time.

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Error: The chosen folder is not a valid Android SDK.

Post by LCNeil » Tue Jul 01, 2014 11:12 am

Hi Everyone,

Thank you for bringing this to our attention.

We now have a bug report on the issue and out dev team will be looking to put a fix out asap-

http://quality.runrev.com/show_bug.cgi?id=12719

What seems to have happened it the required zipalign file, which was previously present in "sdk/tools" is now present in "sdk/build-tools/<version>/". If you wish to workaround this issue until we have resolved the issue, please copy the zipalign file (emphasise copy :) ) from its new location to the tools directory.

Once you have done this, you should be able to link the SDK to LiveCOde with no error being thrown.

Kind Regards,


Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
——

Tribblehunter
Posts: 78
Joined: Wed Apr 10, 2013 9:08 pm

Re: Error: The chosen folder is not a valid Android SDK.

Post by Tribblehunter » Tue Jul 01, 2014 9:11 pm

Thanks guys. Work around works around...

Onwards with the challenge! (Livecode beginner, but catching up fast)
Returning to try to learn livecode again.

But much greyer at the temples than the last time.

Post Reply