i cant get Android sdk or avd to work

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

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: i cant get Android sdk or avd to work

Post by mwieder » Wed Aug 08, 2012 4:02 pm

Also... in the android-sdk directory (one level up from the tools directory) is a text file named "SDK Readme.txt".
You might try starting there.
If all you've done is install the bare-bones sdk then you still have more configuring to do.
If the sdk isn't working on its own, it's not going to work in the LiveCode IDE.

jesterous86
Posts: 18
Joined: Mon Aug 06, 2012 10:22 pm

Re: i cant get Android sdk or avd to work

Post by jesterous86 » Wed Aug 08, 2012 5:31 pm

so i did the cmd prompt idea, didnt seem to get any errors. i did c:\program files\android\android-sdk\tools then typed dir and did see android.bat in the list.

i tried posting what it said here but it wont allow me to

i then did the cd.. then sdkman~1.exe and all it did was bring up c:\program files\android\android-sdk>
i tried mwieders way also and looked in tools but did not see android.bat anywhere.
i saw android.bat on the list in cmd prompt though. could my java path be wrong? i dont know how to check that. the only time i get error msg launching sdk is when i go into tools folder then lib folder then click on sdk icon there, says failed to execute tools\android.bat. any other sdk\avd icon just does the black window with no msg. btw im on win xp, if that makes a difference

jesterous86
Posts: 18
Joined: Mon Aug 06, 2012 10:22 pm

Re: i cant get Android sdk or avd to work

Post by jesterous86 » Wed Aug 08, 2012 5:34 pm

Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-win32-3550 or
swt-win32 in swt.library.path, java.library.path or the jar file

theres more but t wont allow me to post it

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: i cant get Android sdk or avd to work

Post by mwieder » Wed Aug 08, 2012 6:16 pm

Looks like the jdk (at least) isn't installed or isn't installed correctly. Do you have it in C:\Program Files\java\? Should be a directory there named jdkNNNN where NNNN is the version.
From a command prompt type "set" and see if JAVA_HOME is among the environment variables. It should have a line like
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_29

If that fails, you might try uninstalling the jdk if you find it in the control panel (it will say something like "JAVA SE Development Kit"), then download it from

http://www.oracle.com/technetwork/java/ ... 91156.html

and reinstall. You'll probably have to reboot afterwards to get the environment variables set properly (it's been a while, so I don't remember).

jesterous86
Posts: 18
Joined: Mon Aug 06, 2012 10:22 pm

Re: i cant get Android sdk or avd to work

Post by jesterous86 » Wed Aug 08, 2012 6:56 pm

update- i finaly got sdk to open and im instaling some packages now, androd sdk tools is updating from 15 to 20 and sdk platform tools is installed. the others on the list are not installed and says im mising api 15,13,11,10,8. did i miss something or do i need to get those from somewhere?

jesterous86
Posts: 18
Joined: Mon Aug 06, 2012 10:22 pm

Re: i cant get Android sdk or avd to work

Post by jesterous86 » Wed Aug 08, 2012 6:57 pm

i used zip file instead of suggested link to android site

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: i cant get Android sdk or avd to work

Post by mwieder » Wed Aug 08, 2012 7:20 pm

says im mising api 15,13,11,10,8. did i miss something or do i need to get those from somewhere?
Depends on the device you're targeting. For example, I don't have API 11 installed because I'm not targetting the XOOM device. I *think* you need to have API 8 (Android 2.2) installed for the LiveCode connection to the simulator to work, but I could be wrong about that. But if the simulator doesn't work, try installing API 8 (just the SDK platform).

jesterous86
Posts: 18
Joined: Mon Aug 06, 2012 10:22 pm

Re: i cant get Android sdk or avd to work

Post by jesterous86 » Wed Aug 08, 2012 7:33 pm

I keep closing it after each install and it gives me alot more options when i open it again. It looks like im on the right path now. i think i saw 2.2 on the list now. Ill update here when it finishes installing what it has now. I did notice that mine dosnt look like the screen shot from lesson but maybe that will change with update it gave me.

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

Re: i cant get Android sdk or avd to work

Post by sturgis » Wed Aug 08, 2012 9:23 pm

Grats on getting things fired up! Would have been back sooner to check but had to do the town thing.

jesterous86
Posts: 18
Joined: Mon Aug 06, 2012 10:22 pm

Re: i cant get Android sdk or avd to work

Post by jesterous86 » Thu Aug 09, 2012 12:39 am

so now i have a new issue, go figure huh. i instaled alot of the stuff but not all of it. im pretty sure i got 4.1 taken care of and a couple others. the last thing i recall installing was 2.2, but i had to leave so i closed the program for time being. when i try to open it back up it says C:\DOCUME~\myname\Desktop\ANDROI~2\ANDROI~1\tools\lib\find_java.exe is not a valid Win32 application. befor that error started popping up i opened it an closed it couple times befor downlading and installing more stuff, but somehow it wont do it this time. i extracted my zip file again to start over and it let me open that one. did i download and install something that changed how it opens? and if so what part was it so i can try to skip that one. also, befor i delete the one that gives the error is there a way to fix it (it took forever to get what i was able to)

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

Re: i cant get Android sdk or avd to work

Post by sturgis » Thu Aug 09, 2012 1:24 am

Um.. Mark? Thoughts?

Almost makes me wonder if you have some other hardware/software issue going on. But then again, I don't know enough about java to have a clue.

jesterous86
Posts: 18
Joined: Mon Aug 06, 2012 10:22 pm

Re: i cant get Android sdk or avd to work

Post by jesterous86 » Thu Aug 09, 2012 2:36 am

I installed from zip file again and got sdk open as befor. I installed the tools an the option under it, platform maybe. I closed it an it opened. I installed the 4.1 stuff onlu and now its a error like befor. Im thinking the document part of the install is whats doing it because of what error starts with plus the document part seemed to lag ptetty good while getting it. Ill try again without any getting any documents an see what happens, i dont read those anyhow. This is starting to become a life goal for me lol

jesterous86
Posts: 18
Joined: Mon Aug 06, 2012 10:22 pm

Re: i cant get Android sdk or avd to work

Post by jesterous86 » Thu Aug 09, 2012 2:37 am

Ugh, why does this have to be so complicated...

jesterous86
Posts: 18
Joined: Mon Aug 06, 2012 10:22 pm

Re: i cant get Android sdk or avd to work

Post by jesterous86 » Thu Aug 09, 2012 7:37 pm

so far it seems to be working ok. i reinstalled sdk and skipped over downloading the documents for now an havnt had a issue. i do still have other things to install but im taking my time while it works for now. thanks for the help guys, hopefully im on my way now

Post Reply