Page 1 of 1

SDK folder is not valid?

Posted: Fri Feb 02, 2018 11:19 am
by Peter@multidesk.se
Suddenly, the path for Android SDK is missing in my settings.

When I try to choose the same SDK that worked the other day I get:

"The chosen folder is not a valid Android SDK. Please ensure you have installed it correctly.
and enabled support for Android 4.0.3 (API 15)"

I used this SDK two days ago when I last updated my app on Google Play, and now this?

I have not done any updates or installations, so what might have happened, and how do I fix the problem?
Ideally without having to reinstall the entire SDK, If it happened once it can happen again.

I'm on a MAC using LC 9.0.0 (dp11)


///Peter

Re: SDK folder is not valid?

Posted: Tue Feb 13, 2018 7:42 pm
by ameguira@gmail.com
Hi Peter
I am facing the same problem.
I have installed Android latest version and it seems that LC could be not compatible with it.
I think that we should downgrade the version.
Hope somebody got the solution for us.
Good luck

Re: SDK folder is not valid?

Posted: Mon Apr 16, 2018 2:12 pm
by batmanandjoker
I also had the hassle of "the chosen listing is not a valid domestic for Android SDK", even when I had updated SDK. (I had an eclipse installation already, that become outdated) as soon as I ran Android Studio with admin rights, i was capable of set the Android SDK path to the sdk folder in my eclipse instalation that I up to date. – Xilconic may 30 'thirteen at 20:thirteen
Admin rights do not solve this hassle. One has to absolutely uninstall and reinstall Android Studio! –
ShowBox Kodi

Re: SDK folder is not valid?

Posted: Wed Feb 20, 2019 6:07 am
by adxsoft
I'm having exactly the same problem on Mac OSX 10.11.5, tried LC 8.1.8, LC 9.0.0 and 9.02. Worked yesterday and haven't changed anything overnight so this a major issue for me. Hopefully the cause and solution will be found asap.
Allan

Re: SDK folder is not valid?

Posted: Wed Feb 20, 2019 6:23 am
by adxsoft
I solved this for my situation hopefully will work for others.

I noticed that the error message I got said the Android version API 26 was not present. Went into Android Studio, Preferences, Appearance & Behaviour, System Settings,Android SDK and saw Android Version for API 26 was not ticked. I ticked that and clicked the download icon (on the left) and the API 26 version was downloaded automatically.

Once I had the API 26 version of the Android SDK installed I was able to to go to Livecode, Preferences, Mobile Support and set the the location of Android SDK successfully.

So it seems the older version of the Android SDK I was using API 19 (Kitkat) is no longer supported by Livecode.

Can one of LC support team confirm this is the case.

Cheers
Allan

Re: SDK folder is not valid?

Posted: Mon Feb 25, 2019 3:45 pm
by LiveCode_Panos
Hello all,

Yes, I confirm you now need to download Android API 26, either using the SDK Manager if you have downloaded only the Android Tools, or as Allan describes if you use Android Studio.

This is a new requirement from Google Play Store.

Hope this helps.

Kind regards,
Panos
--

Re: SDK folder is not valid?

Posted: Mon Apr 22, 2019 10:22 am
by seoking
batmanandjoker wrote:
Mon Apr 16, 2018 2:12 pm
I also had the hassle of "the chosen listing is not a valid domestic for Android SDK", even when I had updated SDK. (I had an eclipse installation already, that become outdated) as soon as I ran Android Studio with admin rights, i was capable of set the Android SDK path to the sdk folder in my eclipse instalation that I up to date. – Xilconic may 30 'thirteen at 20:thirteen
Admin rights do not solve this hassle. One has to absolutely uninstall and reinstall Android Studio! –
just wasted a whole lot of time on this problem. My work station is running IntelliJ Ultimate 11 on Windows 7 64-bit. I was setting up my first Android project. Therefore, no SDKs were configured. First I selected the JDK, which was a no-brainer (C:\ProgramFiles (x86)\Java\jdk1.6.0_30). Next comes the part where you need to specify the Android SDK. First you click the elipsis ("...") and then click "Add New". Now here's the kicker... If you look carefully at the dialog box, you'll notice that "Configure new JSDK" is highlighted by default. What you need to do is change the selection to "Android SDK". Now you can select the directory of your Android SDK and you won't get that stupid error message.

I literally wasted about a half an hour before I realized why the app kept telling me "This is not a valid SDK directory." Hopefully this will help someone else having the same problem.

Don here: I had the same trouble in Windows 64 with 11.1.2 and 64bit java. found that only by clicking on the left window could I register my Android SDK

Re: SDK folder is not valid?

Posted: Mon Apr 22, 2019 1:45 pm
by bogs
I think this is the first time I've seen what I believe to be a bot, quoting another of what I believe to be a bot. Interesting times we live in :D

Re: SDK folder is not valid?

Posted: Mon Apr 22, 2019 4:16 pm
by sphere
haha yes, something like that.
The English gramatic was for me very strange to follow, that i quickly stopped reading it.

Re: SDK folder is not valid?

Posted: Fri May 17, 2019 11:09 am
by modandroidapk
adxsoft wrote:
Wed Feb 20, 2019 6:23 am
I solved this for my situation hopefully will work for others.

I noticed that the error message I got said the Android version API 26 was not present. Went into Android Studio, Preferences, Appearance & Behaviour, System Settings,Android SDK and saw Android Version for API 26 was not ticked. I ticked that and clicked the download icon (on the left) and the API 26 version was downloaded automatically.

Once I had the API 26 version of the Android SDK installed I was able to to go to Livecode, Preferences, Mobile Support and set the the location of Android SDK successfully.

So it seems the older version of the Android SDK I was using API 19 (Kitkat) is no longer supported by Livecode.

Can one of LC support team confirm this is the case.

Cheers
Allan
Works just fine, thank you so much Hlowe! : D

Re: SDK folder is not valid?

Posted: Sat Mar 14, 2020 4:24 pm
by cchatmon
Same issue I had it working with community, I got the license update and then boom SDK issue. I have reinstalled Android Studio and live code over and over and over and over again. This "check" system seems to have a serious flaw if I'm looking at the sdk folder, installed the complete sdk packages for the requirements, and even went so far as a fresh os install. Same issue. Time wasted.

Re: SDK folder is not valid?

Posted: Mon Jul 03, 2023 5:51 am
by alishakihn
Hi! I had this problem, select SDK folder (NOT SDK->sources or SDK-platforms)

Re: SDK folder is not valid?

Posted: Mon Jul 03, 2023 8:29 pm
by jacque
alishakihn wrote:
Mon Jul 03, 2023 5:51 am
Hi! I had this problem, select SDK folder (NOT SDK->sources or SDK-platforms)
Make sure you have installed the latest SDK tools and build tools. Here is a lesson:

Code: Select all

https://lessons.livecode.com/m/2571/l/625198-livecode-and-android-studio