Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old November 24th, 2009, 02:48 PM   #1 (permalink)
Senior Member
 
mrqs's Avatar
 
Join Date: Sep 2009
Location: Suomi Finland Perkele
Posts: 1,440
 
Device(s): htc sensation nokia n8 samsung galaxy (broken - waterdamage)
Thanks: 46
Thanked 91 Times in 77 Posts
Question problem with sdk installation

Quote:
Originally Posted by cmd prompt
C:\softa\android_sdk\tools>android
'java' is not recognized as an internal or external command,
operable program or batch file.
Starting Android SDK and AVD Manager
SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.
running the sdk setup does absolutely nothing

my path variable has this:
Quote:
*otherstuff*;c:\softa\android_sdk\tools;c:\softa\j dk\bin
using win 7 x64, installed java_ee_sdk-5_08-jdk-6u17-windows


so where's my problem?

__________________
All the best bands are affiliated with Satan - Bart Simpson
mrqs is offline  
Last edited by mrqs; December 1st, 2009 at 02:39 AM. Reason: x64, not x86 - typo
Reply With Quote
The Following User Says Thank You to mrqs For This Useful Post:
saravana (March 2nd, 2010)
Sponsors
Old November 30th, 2009, 05:04 PM   #2 (permalink)
New Member
 
verakot's Avatar
 
Join Date: Nov 2009
Posts: 6
 
Device(s): Motorola Droid
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I got the same issue running "SDK Setup.exe" from \tools folder. This app just quits without any message or UI. When I run android.bat from the same folder, it gives me :

SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo
rm.


I use Windows XP SP3, Eclipse Galileo, JAVA SDK 1.7.
verakot is offline  
Reply With Quote
Old December 1st, 2009, 02:38 AM   #3 (permalink)
Senior Member
 
mrqs's Avatar
 
Join Date: Sep 2009
Location: Suomi Finland Perkele
Posts: 1,440
 
Device(s): htc sensation nokia n8 samsung galaxy (broken - waterdamage)
Thanks: 46
Thanked 91 Times in 77 Posts
Default

i thought i already edited my post with this, but i did get it working... sort of

the sdk setup nor android.bat still don't do anything, but the "android sdk and avd manager" started when launched from eclipse and i was able to add my targets there as well as create and build a project (hello world) in eclipse
mrqs is offline  
Reply With Quote
Old December 1st, 2009, 10:00 AM   #4 (permalink)
New Member
 
verakot's Avatar
 
Join Date: Nov 2009
Posts: 6
 
Device(s): Motorola Droid
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by mrqs View Post
i thought i already edited my post with this, but i did get it working... sort of

the sdk setup nor android.bat still don't do anything, but the "android sdk and avd manager" started when launched from eclipse and i was able to add my targets there as well as create and build a project (hello world) in eclipse
I tried Eclipse however when you create a new Android project, it requires a target which is not setup dues not a problem running the android command:

android create avd --target 2 --name my_avd

How did you resolve it


PS Here is what I get exactly when running the command:

C:\Android\tools>android create avd --target 2 --name my_avd
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/a
rchquery/Main (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknow n Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo
rm.
verakot is offline  
Last edited by verakot; December 1st, 2009 at 10:05 AM. Reason: Update
Reply With Quote
Old December 1st, 2009, 01:29 PM   #5 (permalink)
Senior Member
 
mrqs's Avatar
 
Join Date: Sep 2009
Location: Suomi Finland Perkele
Posts: 1,440
 
Device(s): htc sensation nokia n8 samsung galaxy (broken - waterdamage)
Thanks: 46
Thanked 91 Times in 77 Posts
Default

don't create a new project, go to window -> android sdk and avd manager

from available packages, grab what you need; they'll appear in installed packages at some point

in virtual devices create a new virtual device (emulator). be sure to use a sd card size large enough to make sense, but small enough that your computer has enough ram to run it (took me a while of head scratching after setting the sd card size @ 8 gigs with only 4 gigs of ram on my comp )

now you should be able to create a project (might need to restart eclipse / comp)
mrqs is offline  
Reply With Quote
Old December 1st, 2009, 03:03 PM   #6 (permalink)
New Member
 
verakot's Avatar
 
Join Date: Nov 2009
Posts: 6
 
Device(s): Motorola Droid
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Got is working this way, thanks!
verakot is offline  
Reply With Quote
Old December 30th, 2009, 09:56 AM   #7 (permalink)
New Member
 
Join Date: Dec 2009
Posts: 5
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I'm having the same problem described above. I'm not currently developing for Android, I'm just trying to find a way to install the USB drivers that are compatible with the Droid. I've downloaded and extracted the sdk, but the USB drivers aren't included with it as they were in previous versions. Everything I can find says that I need to run the android.bat file to start the update tool that will let me download the drivers, but when I do so I'm getting the error above. Any help would be appreciated!
Davest is offline  
Reply With Quote
Old December 30th, 2009, 02:09 PM   #8 (permalink)
New Member
 
verakot's Avatar
 
Join Date: Nov 2009
Posts: 6
 
Device(s): Motorola Droid
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Davest View Post
I'm having the same problem described above. I'm not currently developing for Android, I'm just trying to find a way to install the USB drivers that are compatible with the Droid. I've downloaded and extracted the sdk, but the USB drivers aren't included with it as they were in previous versions. Everything I can find says that I need to run the android.bat file to start the update tool that will let me download the drivers, but when I do so I'm getting the error above. Any help would be appreciated!
If you use Eclipse, you do not need to run android.bat since Eclipse has internal mechanism to load updates and USB drivers. Try it and let us know if this worked for you.
verakot is offline  
Reply With Quote
Old January 4th, 2010, 01:20 PM   #9 (permalink)
Junior Member
 
Join Date: Dec 2009
Posts: 32
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hello ,
I have problem installing Android SDK 2.0 on Windows behind proxy requiring authentication because "Android SDK and AVM Manager" is not letting me to specify the user and the password for the company proxy server.

The problem is similar with Joko Sastriawan: Workaround on installing Android SDK 2.0 behind proxy requiring authentication

Can you help me ?I have to mention that I was not able to find a proxy server for windows to use the workaround proposed for ubuntu.
Thanks!
emilianm is offline  
Reply With Quote
Old January 12th, 2010, 07:57 AM   #10 (permalink)
New Member
 
Join Date: Jan 2010
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Guys (and emilianm),

For those who are having trouble installing google Android SDK under Windows and networks which require authentication through a proxy server, here is a trick.

Following Joko Sastriawan tips, we can also install squid under windows from the site Acme Consulting -Società di Consulenza e Formazione Informatica - Torino, which maintains a Windows port from squid.

After downloading, installing and following the basic configuration from AcmeConsulting's site, write the following directives to c:\squid\etc\squid.conf

----cut----
http_port 8080
acl all src 0.0.0.0/0.0.0.0

http_access allow all
icp_access allow all

cache_peer YOUR_PROXY_SERVER parent YOUR_PROXY_PORT 0 no-query default login=YOUR_USERNAME:YOUR_PASSWORD
never_direct allow all
----cut-----

After that, start squid using the command line (remember to add c:\squid\bin and c:\squid\sbin into your PATH environment variable):

squid -z

(to start the cache directories) and then

squid

(to start squid)

Now, in the AVD manager, setup the proxy server as LOCALHOST and the proxy port as 8080. Also, check the "force HTTPs to HTTP" (something like this, I don't remember...) Doing this, squid will talk to your company's proxy using authentication and the android setup will tak to your proxy (at localhost) without authentication.

Good luck!

Bolha
bolhoso is offline  
Reply With Quote
Sponsors
Old January 13th, 2010, 07:26 AM   #11 (permalink)
Junior Member
 
Join Date: Dec 2009
Posts: 32
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by bolhoso View Post
Guys (and emilianm),

For those who are having trouble installing google Android SDK under Windows and networks which require authentication through a proxy server, here is a trick.

Following Joko Sastriawan tips, we can also install squid under windows from the site Acme Consulting -Società di Consulenza e Formazione Informatica - Torino, which maintains a Windows port from squid.

After downloading, installing and following the basic configuration from AcmeConsulting's site, write the following directives to c:\squid\etc\squid.conf

----cut----
http_port 8080
acl all src 0.0.0.0/0.0.0.0

http_access allow all
icp_access allow all

cache_peer YOUR_PROXY_SERVER parent YOUR_PROXY_PORT 0 no-query default login=YOUR_USERNAME:YOUR_PASSWORD
never_direct allow all
----cut-----

After that, start squid using the command line (remember to add c:\squid\bin and c:\squid\sbin into your PATH environment variable):

squid -z

(to start the cache directories) and then

squid

(to start squid)

Now, in the AVD manager, setup the proxy server as LOCALHOST and the proxy port as 8080. Also, check the "force HTTPs to HTTP" (something like this, I don't remember...) Doing this, squid will talk to your company's proxy using authentication and the android setup will tak to your proxy (at localhost) without authentication.

Good luck!

Bolha
Thank you very much bolhoso.I will try your solution !.. theoretically this should work.In my case until now I used a workaround.I Installed the SDK on a machine without proxy and I copied every file from that machine to my proxy protected computer.
emilianm is offline  
Reply With Quote
Old March 2nd, 2010, 03:11 PM   #12 (permalink)
New Member
 
Join Date: Feb 2010
Posts: 2
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks mate
its working
saravana is offline  
Reply With Quote
Old March 3rd, 2010, 05:11 PM   #13 (permalink)
New Member
 
Join Date: Nov 2009
Posts: 14
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

When I try to install the ADK plug-in's to Eclipse I get the following error:
Cannot complete the install because one or more required items could not be found.
Software being installed: Android Development Tools 0.9.5.v200911191123-20404 (com.android.ide.eclipse.adt.feature.group 0.9.5.v200911191123-20404)
Missing requirement: Android Development Tools 0.9.5.v200911191123-20404 (com.android.ide.eclipse.adt.feature.group 0.9.5.v200911191123-20404) requires 'org.eclipse.gef 0.0.0' but it could not be found

Is this a problem on my computer or something broke on the download site?

Edit:
I might add I have tried installing from the ADT9.5 zip as well but I get the same error.
murky024 is offline  
Last edited by murky024; March 3rd, 2010 at 08:37 PM.
Reply With Quote
Old March 4th, 2010, 06:26 AM   #14 (permalink)
New Member
 
Join Date: Nov 2009
Posts: 14
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I got it fixed. The issue ended up being Java Console problems.
murky024 is offline  
Reply With Quote
Old August 6th, 2010, 07:08 AM   #15 (permalink)
New Member
 
Join Date: Aug 2010
Location: Curitiba - Brazil
Posts: 1
 
Device(s): Samsung Galaxy S
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I know this is kind of old, but I got here from google searching for problems installing the sdk under windows xp.
My problem was when I tried to run 'SDK Setup.exe' nothing happend. Console window would popup and vanquish without a message.
What I did to solve it was to manually create the folders 'add-ons' and 'platforms' under android-sdk root, and then 'SDK Setup.exe' worked just fine.
Cheers!
Gobain is offline  
Reply With Quote
Old August 11th, 2010, 03:37 AM   #16 (permalink)
New Member
 
Join Date: Aug 2010
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Even easier: You can use fidder (Fiddler Web Debugger - A free web debugging tool) with the "Streaming" option enabled.
carlosk is offline  
Reply With Quote
Old October 28th, 2010, 04:02 PM   #17 (permalink)
New Member
 
Join Date: Oct 2010
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Gobain View Post
I know this is kind of old, but I got here from google searching for problems installing the sdk under windows xp.
My problem was when I tried to run 'SDK Setup.exe' nothing happend. Console window would popup and vanquish without a message.
What I did to solve it was to manually create the folders 'add-ons' and 'platforms' under android-sdk root, and then 'SDK Setup.exe' worked just fine.
Cheers!
Hi Gobian,

I am still having the issue. I have 'add-ons' and 'platforms' already under android-sdk root. But my SDK Setup.exe keeps disappearing. I am having windows 7 . Do any one know whats the issue.

Thanks,
Vikas
vikassharma121 is offline  
Reply With Quote
Old January 24th, 2011, 08:09 AM   #18 (permalink)
New Member
 
Join Date: Jan 2011
Location: Tatabanya, Hungary
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

What worked for me: check java version in the command line (java -version). Mine was showing 1.3 as an old Oracle 9.2 entry was also in the path (with its own jre folder). After checking the entire path variable, and deleting those old references leaving just the newly installed jdk1.6.0_23 there, the SDK Manager now works.

P
petyusz is offline  
Reply With Quote
Old March 3rd, 2011, 06:58 PM   #19 (permalink)
New Member
 
Join Date: Mar 2011
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi
many thanks to bolhoso for his post.
moprama is offline  
Reply With Quote
Old April 7th, 2011, 09:23 AM   #20 (permalink)
New Member
 
Join Date: Apr 2011
Posts: 2
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Unhappy

Quote:
Originally Posted by emilianm View Post
Thank you very much bolhoso.I will try your solution !.. theoretically this should work.In my case until now I used a workaround.I Installed the SDK on a machine without proxy and I copied every file from that machine to my proxy protected computer.

I Tried the Squid as you advised.. for me in the AVD manager it keeps on loading...I've also tried the "test connection" option and it says it is available but cannot use on dowloading the contents. Is there any way i could get the platform-tools offline ?
sunil_511 is offline  
Last edited by sunil_511; April 7th, 2011 at 09:44 AM.
Reply With Quote
Sponsors
Old August 3rd, 2011, 02:54 PM   #21 (permalink)
New Member
 
Join Date: Aug 2011
Location: Monterrey
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

muchas gracias bolhoso... trate de instalarlo y no lo lograba,
no sabia como configurar el login

debe de quedar asi,

cache_peer PROXY parent PORT 0 no-query default login=MYUSER:MY PASS

y después me generaba los siguientes errores..

FATAL: ipcache_init: DNS name lookup tests failed.
Squid Cache (Version 2.7.STABLE8): Terminated abnormally.


esto se soluciona corriendo

squid -D

muchas gracias..
juanv01 is offline  
Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application Installation Problem Holydoc Android Applications 3 October 21st, 2011 02:44 AM
Problem on installation PabloEscobar Application Development 0 September 3rd, 2010 12:13 PM
Android SDK installation problem andyandroid3 Android Lounge 3 August 10th, 2010 12:01 AM
problem with Installation femo4ever Android Lounge 1 July 25th, 2010 04:31 PM
installation problem rahish Developer 101 0 June 30th, 2010 09:28 AM



All times are GMT -5. The time now is 02:15 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo