SDK Not Found

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

gaubatzsBUS9han
Posts: 10
Joined: Thu Sep 06, 2012 7:38 pm

SDK Not Found

Post by gaubatzsBUS9han » Fri Oct 12, 2012 10:41 pm

I am on a PC. I have downloaded Android SDK 20.0.3. I am using LC 5.5.3. When I go into Edit>Preferences>Mobile Support and try to find the location of the SDK root, I can't find it. I have tried C:\Program Files (x86)\Android\android-sdk and it tells me that the folder is not a valid Android SDK. I try to go to another level and there are about 5 more levels and I am not seeing anything that looks like a root. What should I be looking for? The documentation says something like android-sdk-windows but I am not seeing anything that looks like that. Am I using wrong versions? HELP!

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

Re: SDK Not Found

Post by jacque » Sat Oct 13, 2012 5:23 am

When you downloaded the SDK, you'll get a folder containing all the Android stuff (if it's zipped, unzip it.) Wherever you put it on your hard drive, the path to that folder is the "root" android folder.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

gaubatzsBUS9han
Posts: 10
Joined: Thu Sep 06, 2012 7:38 pm

Re: SDK Not Found

Post by gaubatzsBUS9han » Sat Oct 13, 2012 4:53 pm

Thanks, Jacque. I have the path C:\Program Files\Android\android-sdk but I get the "The chosen folder is not a valid Android SDK. Please ensure you have installed it correctly and enabled support for Android 2.2 (Froyo)." When I go to the next level I get add-ons, tools, platforms, sources, etc. so I don't know which of those folders to open if I go to the next level. Maybe I should enable support for Android 2.2 but I don't know what that means. I appreciate any help you can give.

Thanks.

Steve

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

Re: SDK Not Found

Post by jacque » Sat Oct 13, 2012 7:29 pm

The files you downloaded are just a shell that doesn't include all the packages and files required for a working installation. You need to launch it and have it download all the supplementary files it needs. It will give you a choice of different SDKs to download and enable; LiveCode requires 2.2 but you should download everything it recommends, though it's fine to skip some of the higher versions if you want and also some of the device-specific files. It's a lengthy process the first time. To start, go to your Android root folder -> Tools and launch the file "android".

This lesson describes in detail how to do the install:

http://lessons.runrev.com/s/lessons/m/2 ... er-on-a-pc
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

gaubatzsBUS9han
Posts: 10
Joined: Thu Sep 06, 2012 7:38 pm

Re: SDK Not Found

Post by gaubatzsBUS9han » Mon Oct 15, 2012 7:49 pm

Thanks again.

gaubatzsBUS9han
Posts: 10
Joined: Thu Sep 06, 2012 7:38 pm

Re: SDK Not Found

Post by gaubatzsBUS9han » Tue Oct 16, 2012 8:40 pm

I have successfully gotten past the sdk problem and am now trying to test. However I get "Unable to build app for testing. Could not generate package manifest." Any idea why this occured or what I need to do to get around it?

Thank you.

Steve

gaubatzsBUS9han
Posts: 10
Joined: Thu Sep 06, 2012 7:38 pm

Re: SDK Not Found

Post by gaubatzsBUS9han » Tue Oct 16, 2012 9:16 pm

Never mind. I solved it. In the standalone setup, I had specified an icon with a jpeg. I removed the icon and it worked.

Steve

SimpleLife
Posts: 15
Joined: Sat Jul 28, 2012 6:48 pm

Re: SDK Not Found

Post by SimpleLife » Mon May 27, 2013 11:39 am

I am also getting
"Unable to build app for testing. Could not generate package manifest."

I had pngs as my images, I removed all images.

Livecode 6.1
I have tried android 2.2 and 2.3.3
THERE IS CONFUSION here. It still says use froyer 2.2, but a forum thread here said use 2.3.3 or livecode 5.5+ won't work.
Why is the error message out of sync? Which is correct?

I've updated all the google sdks.

The oddity, i used to run livecode 5.5 (commercial) and my android sdk path was
C:\Program Files (x86)\Android\android-sdk\
now it won't accept that as valid now :-(

Also how do I change the java path?
It says it has 1.7
and that is not even on my system.
I have javas
jre6
jre7
jre1.5.0_21
jdk1.6.0_32

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: SDK Not Found

Post by sturgis » Mon May 27, 2013 1:03 pm

The only problem with 2.2 is with the emulator (unless I missed something new) where there is an issue with how sensors are handled. It often leads to a black screen when trying to test in a 2.2 emulator. 2.3.3 solves this issue, but actually testing on a 2.2 device works fine. Its only the emulator that is a problem, and only 2.2

Not sure what is up with the other issues. In my case i've been lucky on all versions of lc, all versions of the sdk. (both windows and mac) Not sure how to fix a problem I haven't yet run into, but i'm sure it'll hit me at some point.

SimpleLife
Posts: 15
Joined: Sat Jul 28, 2012 6:48 pm

Re: SDK Not Found

Post by SimpleLife » Mon May 27, 2013 2:27 pm

OK one potential issue

I am running 64 bit windows 7

That creates a folder
program files (x86)
in addition to
program files.

By default (on my system) livecode goes to x86
My android was already in x86
But re-installing java 7 goes in to program files (as this is a 64 bit version)

This SHOULD be really easy!

livecode fails to see any java at all and I can not manually set it. Add expletive.
livecode refuses to set the android sdk folder as valid any more and I can not manually tyoe it in. Add expletive.

I thought using hard coded environments paths was bad programming 101 ?

Anyway, what do I do now I can't set android or sdk or java any more ?

BTW I only just re-installed java 7.
I tried to force livecode to go in program files, using the CUSTOM install. Same results.

How is livecode "supposed" to handle the x86 folder issue?

Peter

SimpleLife
Posts: 15
Joined: Sat Jul 28, 2012 6:48 pm

Re: SDK Not Found

Post by SimpleLife » Mon May 27, 2013 2:35 pm

OK I see in this thread
http://forums.runrev.com/viewtopic.php?f=53&t=15215

the no android sdk may be a google update incompatibility upgrading to version 22

Just trying that.

SimpleLife
Posts: 15
Joined: Sat Jul 28, 2012 6:48 pm

Re: SDK Not Found

Post by SimpleLife » Mon May 27, 2013 3:49 pm

OK I downgraded the google sdk manager to the previous version.

I can now get my SDK path accepted as C:/program files (x86)/android/android-sdk/

And it finding the 64 bit java in
C:/program files/java/jdk1.7.0_21/
again it's choosing the latest version - I have no control.

I've set the android options to DEV SIGNED

but I'm still getting
"unable to build the app for testing: could not generate package manifest"

I have set no icons as per the remedy above.

Any ideas?

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

Re: SDK Not Found

Post by Simon » Mon May 27, 2013 9:39 pm

Not sure if this helps but you are running 32 bit android and 64 bit java.
Mine is working at C:\Program Files (x86)\Java\jdk1.6.0_38

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

SimpleLife
Posts: 15
Joined: Sat Jul 28, 2012 6:48 pm

Re: SDK Not Found

Post by SimpleLife » Tue May 28, 2013 9:05 am

@simon Many thanks for replying.

yes the 64 bit versioning is a great point!

But I'm not sure how to set that, as livecode seems to decide some how.
Any ideas?

If I remove 64 bit java from my system, other usages will complain.

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

Re: SDK Not Found

Post by Simon » Tue May 28, 2013 10:21 am

Here is the last one I downloaded:
http://www.oracle.com/technetwork/java/ ... 77406.html
Mine is: dk-6u38-windows-i586.exe

I'm not suggesting that it will fix your problem or that removing your 64 bit will not cause other problems. Just that Android is working on my system (MS Win 7 Home Premium with Android Rev 21.1).

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

Post Reply

Return to “Android Deployment”