The chosen folder is not a valid SDK

Want to move your code and projects to LiveCode but don't know where to start?

Moderators: FourthWorld, heatherlaine, Klaus, robinmiller

Post Reply
TheRedLord
Posts: 12
Joined: Mon Dec 03, 2018 8:51 pm

The chosen folder is not a valid SDK

Post by TheRedLord » Fri Feb 07, 2020 9:58 am

Hi, so I was trying to give the path of the android sdk folder to Livecode but it says that the folder is not valid android SDK, I checked on the android sdk and the path was correct I checked if API 15 installed like Livecode requires and it was, but though the path and the installed API was correct it still give me an error. :|

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7210
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: The chosen folder is not a valid SDK

Post by jacque » Fri Feb 07, 2020 7:15 pm

Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

TheRedLord
Posts: 12
Joined: Mon Dec 03, 2018 8:51 pm

Re: The chosen folder is not a valid SDK

Post by TheRedLord » Mon Feb 17, 2020 8:26 pm

not so, in his problem he can put the path of the android sdk manager, in my case I cant even give LC the SDK path, it's keep saying that the choesn folder is not a valid SDK, can it be because outdated LC version? I didnt check my LC version but I think it is the latest because I downloaded it not a long time ago. or may it be because outdated android SDK? however, I checked and my jdk is the latest. but I am not sure about my SDK manager.

paulrichards999
Posts: 19
Joined: Thu Sep 04, 2014 3:32 pm

Re: The chosen folder is not a valid SDK

Post by paulrichards999 » Tue Mar 10, 2020 2:49 pm

Hi,

Did you ever get this resolved? I am doing a fresh installation and Android Studio installed with the correct API required for 9.5, (i've tried installing SDK to multiple locations) But I select the correct path in Livecode (as per Android Studio) but it just says chosen folder is not a valid Android SDK and to ensure 9.0 API28 is installed... WHich is most definitely installed, and I can build an app in Android Studio against this API. SOmething so simple is now cost me 3 days and still not working.

Cheers

asayd
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 107
Joined: Mon Apr 10, 2006 7:02 pm
Location: Provo, Utah, USA
Contact:

Re: The chosen folder is not a valid SDK

Post by asayd » Thu Mar 19, 2020 4:01 am

There is something definitely wrong with this. I spent most of the afternoon trying to get LiveCode 9.5.1 to recognize the Android SDK with no success. I completely uninstalled and reinstalled both JDK 1.8 (jdk-8u241) for Mac OS, and Android Studio and SDK (v. 3.6). I still get the error message "The chosen folder is not a valid Android SDK. Please ensure you have installed it correctly, and enabled support for 9.0 (API 28)".

The SDK 9.0 is definitely installed.

The JDK path in the LiveCode Mobile Support preference pane is empty, and I don't know how that gets populated. I'm starting to wonder if the latest updates to JDK and/or Android Studio broke something. I've configured Android SDK tools dozens of times in LiveCode and never had this much trouble.

Yes, Jacque, I did read the thread you posted, but it didn't shed any light on the situation.

Image

Devin
Devin Asay
Learn to code with LiveCode University
https://livecode.com/store/education/

matthiasr
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 190
Joined: Sat Apr 08, 2006 7:55 am
Location: Lübbecke, Germany
Contact:

Re: The chosen folder is not a valid SDK

Post by matthiasr » Thu Mar 19, 2020 4:05 pm

I´ve setup my Mac from scratch again in January this year.

I have here currently JDK 8u241 installed
https://www.oracle.com/java/technologie ... loads.html

2020-03-19_15-55-50.png




I´ve downloaded and installed the following Android Studio version
https://dl.google.com/dl/android/studio ... 48-mac.dmg



In Android Studio i´ve installed the following SDK platforms.
2020-03-19_15-57-13.png

As you can see in the screenshot above, both the JDK and the Android SDKs are correctly detected/accepted by LC 9.5.1 and 9.6.0

HTH

Matthias

asayd
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 107
Joined: Mon Apr 10, 2006 7:02 pm
Location: Provo, Utah, USA
Contact:

Re: The chosen folder is not a valid SDK

Post by asayd » Thu Mar 19, 2020 4:31 pm

Curious. My setup is the same, except I have v. 3.6 of Android Studio. I'm going to try dropping back to 3.5.3 and see what happens.

Thanks, Matthias!
Devin Asay
Learn to code with LiveCode University
https://livecode.com/store/education/

asayd
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 107
Joined: Mon Apr 10, 2006 7:02 pm
Location: Provo, Utah, USA
Contact:

Re: The chosen folder is not a valid SDK

Post by asayd » Thu Mar 19, 2020 10:39 pm

Success! It appears that LiveCode Android mobile support is not compatible with Android Studio 3.6. I uninstalled 3.6 and reinstalled 3.5.3 and it works now!

I'll file a bug report. I'd be surprised if I'm the only person having this problem.
Devin Asay
Learn to code with LiveCode University
https://livecode.com/store/education/

asayd
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 107
Joined: Mon Apr 10, 2006 7:02 pm
Location: Provo, Utah, USA
Contact:

Re: The chosen folder is not a valid SDK

Post by asayd » Fri Mar 20, 2020 3:00 pm


asayd
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 107
Joined: Mon Apr 10, 2006 7:02 pm
Location: Provo, Utah, USA
Contact:

Re: The chosen folder is not a valid SDK

Post by asayd » Fri Mar 20, 2020 11:09 pm

UPDATE: Panos posted a workaround to the bug report linked in the previous post, which lets you use Android Studio 3.6 with LiveCode for Android development. Basically v. 3.6 no longer installs the Android command line tools by default, as previous versions did. You have to install them manually.
Devin Asay
Learn to code with LiveCode University
https://livecode.com/store/education/

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9801
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: The chosen folder is not a valid SDK

Post by FourthWorld » Fri Mar 20, 2020 11:53 pm

asayd wrote:
Fri Mar 20, 2020 11:09 pm
UPDATE: Panos posted a workaround to the bug report linked in the previous post, which lets you use Android Studio 3.6 with LiveCode for Android development. Basically v. 3.6 no longer installs the Android command line tools by default, as previous versions did. You have to install them manually.
Is the Lesson on how to setup Android development kept current with things like this?
http://lessons.livecode.com/m/4069/l/98 ... oid-studio
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

asayd
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 107
Joined: Mon Apr 10, 2006 7:02 pm
Location: Provo, Utah, USA
Contact:

Re: The chosen folder is not a valid SDK

Post by asayd » Fri Mar 20, 2020 11:58 pm

Yes, he is going to see that the lesson gets updated.
Devin Asay
Learn to code with LiveCode University
https://livecode.com/store/education/

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9801
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: The chosen folder is not a valid SDK

Post by FourthWorld » Sat Mar 21, 2020 12:17 am

asayd wrote:
Fri Mar 20, 2020 11:58 pm
Yes, he is going to see that the lesson gets updated.
Super - thanks!
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Converting to LiveCode”