Well I'm obviously doing well because I can't even get the SDK to work...
This is what I've done:
Went to the website, downloaded the executable version of the SDK.
Went to install it, was told I needed the Java JDK.
Installed Java JDK.
Installed the SDK and a command prompt opens for all of two seconds, closes and leaves me going... whatttt!??!
So I did a search, and have tried to do the following (in no particular order):
Step #1: Open up a command prompt.
Step #2: Use the cd command to move to wherever you installed your Android SDK.
Step #3: Run tools\android.
I get the following message:
'SearchForJava' is not recognized as an internal or external command, operable program or batch file.
WARNING: Java not found. In order to properly use the Android Developer Tools, you need a suitable version of Java JDK installed on your system.
We recommend that you install the JDK version of Java SE, available here:
http://www. oracle.com/techwork/java.javase/downloads
You can find the complete Android SDK requirements here:
http://developer.android.com/sdk/requirements.html.
So I don't really understand why it says it can't find it if I obviously have it installed and it wouldn't have let me install the SDK without verifying I did indeed have the JDK.
I did more searching and then decided to do this:
edit \tools\android.bat
find "%jar_path%;%swt_path%\swt.jar"
modify to "%tools_dir%\%jar_path%;%tools_dir%\%swt_path%\swt.jar"
save, and run SDK Manager.exe again
Again, nothing.
I then tried resetting the path.
Select Computer from the Start menu
Choose System Properties from the context menu
Click Advanced system settings > Advanced tab
Click on Environment Variables, under System Variables, find PATH, and click on it.
In the Edit windows, modify PATH
I deleted everything that was there and put the path to the java files(?) C:\program files\java\jdk1.7.0_02\bin
I tried running the SDK again and got nothing.
I then downloaded the zip version of the SDK tried all of the above and didn't work.
I then read somewhere that if you just make a new user account and install the SDK exe file that it would work, but it didn't.
So anyone have any idea about what I can do? I'm so lost and frustrated! Would it help if I installed Eclipse? (is it a way to bypass Java? it's driving me nuts)
Thank you so much!
So
Well... now I have a different error haha. Here's what I did:
I uninstalled everything, the java jdk and jre and all of that. I uninstalled the Android SDK.
I reinstalled the Java programs, reinstalled Android SDK, that didn't work
I then went and modified the path again, deleted all of the other stuff and put C:\program files\java\jdk1.7.0_02\bin
That didn't work.
I then went and edited the android.bat (as above) that didn't work, I then did a cd in the command prompt, typed: tools/android and got this error message:
Error: Unable to access jarfile lib\achrquery.jar
'xcopy' is not recognized as an internal or externam command, operable program or batch file.
Error: SWT folder ' ' does not exist.
Please set Android_SWT to point to the folder containing swt.jar for your platform
So now what?
Er
Did you put a ; before and after the java path?
I did that now, but still the same error
I then went and modified the path again, deleted all of the other stuff and put C:\program files\java\jdk1.7.0_02\bin
Click to expand...
Click to collapse
This is bad, now your comp does not find basic programs like xcopy so it sure won't work, get back your PATH variable as it was, then at the add a";" and the path to your jdk/bin folder, it should work. if not post again and we'll try to help.
I went to my other computer, copied what I had in the path, put it on this computer and this is the error message:
Error: Unable to access jarfile lib\archquery.jar
Invalid number of parameters
ERROR: SWT folder ';C:\Program Files\Android\tools\lib\x86_64;' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo
rm.
I've also downloaded a new swt.jar in case the one I had was corrupt or something
Well, I managed to get the SDK to work.. I installed it on another computer 0_o hahaha
I'll try and figure out what went wrong if anyone's interested but yeah.. that was a pain!
Related
To start off, yes I am a complete noob to this, so bear with me. I have been trying for hours to get the adb info to install on my computer so I can root with the new 2.2 method. I have Vista/32 bit and I have tried multiple ways to install, from guides here and you-tube and nothing will recognize the adb in cmd.exe. I have copied the sdk info into a tools folder like I'm supposed to, I think, and followed the instructions and all I get is that it is not recognized or not an executable file or whatever.... Can someone please offer some help here?? Thanks in advance
did you try to run abd from the /android-sdk/tools folder in the command prompt? and did you add the path to the enviroment variables?
I have tried to run it from the folder, and I thought I had it added but I'll double check...
OK, it's in the path now, but I still get a 'not recognized as an internal or external command, operable program or batch file.' I'm stuck in the mud, spinning my wheels....
I get the same thing with win7 I can get the command prompt android tools folder hit enter and it said 'not recognized as an internal or external command, operable program or batch file
Ooooh...I got it...had the cmd info in wrong folder...needed it in the same tools folder...thanks folks
Yeah, getting adb into your path is kinda hard the first few times. I add it to both of my Paths and then reboot. If you follow the documentation on the Android site, it usually works after a reboot.
To make sure its just a path issue, you go to your sdk folder and navigate to tools (in the command prompt, of course, which is done by "cd \path\to\sdk\tools\") and then typing adb. If that works, then you type adb devices and make sure your phone is found. If that works, then all you need to do is finish the path installation and reboot. That's usually how I get it. Once on your path, you can adb shell from any location on your computer, which is nice when you want to push files to your phone.
Can anyone help? Ive installed the SDK, ive installed the Java stuff, but when I try to open the SDK Manager it opens and closes instantly. I try running through command line and nothing happens.
Am I missing something? On 32 bit windows XP
Assuming you have admin rights on the machine...
Have you tried installing to a different location - like the root of C:
When you d/l the files, did you click properties, and in the bottom of the pane, did it indicate the files were blocked and did you unblock them?
Have you tried uninstalling the current, d/l them again and reinstalling?
Not sure how much this will help, but when I tried running SDK I ended up finding out after doing lots of research, getting some help and everything that it wasn't working properly because I downloaded the wrong version for my PC. Be sure you downloaded the correct SDK for your PC because that will play a big role in the program running correctly.
Re: Installed Android SDK, wont work!
If you used the exe then you need to run your advanced commands from "platform-tools" not the normal "tools" folder. You will see adb files in the currect folder.
/programfiles/android-adk-windows/platform-tools
It will me something like that
I'm not at the point where I can run advanced commands, I can't get the application to open AT ALL so I can't even download any versions of the Android OS etc.
DroidHam said:
but when I try to open the SDK Manager it opens and closes instantly.
Click to expand...
Click to collapse
...be more specific.
when you try to open the SDK manager, I assume you mean in Eclipse?
are you following these directions?
http://developer.android.com/sdk/installing.html
Im not using Eclipse, I just want to open the Android Emulator. I had done this before in windows without much hassle but now I cant get it to open
DroidHam said:
Im not using Eclipse, I just want to open the Android Emulator. I had done this before in windows without much hassle but now I cant get it to open
Click to expand...
Click to collapse
well you have to use eclipse to create an AVD (android virtual device).
Just follow the directions On the link I gave you. once you got eclipse all set up.
[[ this is the eclipse i'm running 3.6.1 classic: http://www.eclipse.org/downloads/do....6.1-201009090800/eclipse-SDK-3.6.1-win32.zip ]]
Click on WINDOW->Android SDK and AVD Manager.
Create a New AVD. Give it a name (something simple, short, all lowercase is best. I named the latest one gingerbread) and select the target (api version)
set an SD card, resolution, etc...etc....
once its created, you have to launch emulator from a command prompt and the AVD switch to specify an android virtual device.
in dos, navigate to the SDK\tools directory, and run
emulator -avd gingerbread
or whatever you named your avd. got it?
ill give it a shot, thanks
So I have no idea why my G2 isn't being found with the htc sync but its not. I followed this thread here (http://forum.xda-developers.com/showthread.php?t=865685) I made sure i had the platform-tools installed before changing the path. I think this is the problem I am having. There are 2 paths that appear; One in user variables and then one in system variables. I have tried altering both but I am having no luck. Does anyone have any clue to what is going on?
HTC Sync will install the correct USB drivers for your G2. Although you cannot actually *run* HTC Sync with your G2 unless it is running a Sense (Desire Z) ROM. So just install it but don't try to actually run it or sync with it.
It's the System Variables path that you want to change, to add the appropriate directories. This just lets you run adb from any directory on your PC. Even if you haven't got it added, it should still work if you "cd" to the directory where adb resides (in which case you will need to put any files into there that you wish to "push" to your phone).
What is the problem you're having, is it saying "no internal command" or similar ?
DressedUpPanda said:
So I have no idea why my G2 isn't being found with the htc sync but its not. I followed this thread here (http://forum.xda-developers.com/showthread.php?t=865685) I made sure i had the platform-tools installed before changing the path. I think this is the problem I am having. There are 2 paths that appear; One in user variables and then one in system variables. I have tried altering both but I am having no luck. Does anyone have any clue to what is going on?
Click to expand...
Click to collapse
The PATH issue, relates to ADB, if you are running into errors like:
'adb' is not recognized as an internal or external command
Click to expand...
Click to collapse
When executing ADB commands that is your issue, it can be resolved by adding the path where ADB lives to either your user or system PATH in Windows. The PATH is irrelevant if you are running ADB from the folder where the ADB files live.
The other (common) issue is drivers, where ADB is working but won't see your device. Do you see an "ADB Device" or similar with a yellow icon in your device manager when your phone is connected to your PC? If so you don't have the correct driver loaded. The only reason you install HTC Sync is to load this driver but the driver can also be loaded separately.
Sorry to hi-jack this thread, and since I'm new to adb I might as well use this.
I have adb running, did the file paths and everything. I'm just trying to test it out, since I'm already rooted using visionaryr13 as well as s-off. Went back and gfree over that, and I've also verified through terminal emulator on my phone, but I'm just testing my skills with adb and failing miserably. I Have d/l the verify file, and unzipped in a folder inside my downloads folder I might add.
When it says:
"
VERIFY (using "gfree_verify")
Now you can try using a new SIM card to verify that it worked.
In addition you can use gfree_verify to verify the state of your locks.
Download gfree_verify.zip from gfree_verify_v01.zip
ON YOUR PC:
Unzip gfree_verify_v01.zip to a place on your computer. Navigate to where the file is on your computer, and type:
$ adb push gfree_verify /data/local
"
I'm having a problem with the navigate to where the file is on your computer and type. I have cmd open, and have tried everyway but the right way to push this through. This is the error I'm getting.
cannont stat 'gfree_verify': no file or directory
EDIT: I got it and I'm sure everyone is laughing at this idiot. So in the cmd prompt you have to navigate to where you put the folder, then push the file to your phone, DUH!
OK, stupid question number two, since I answered number 1.
When you are in a adb shell in your cmd, how do you get out of it besides exiting cmd?
mrbmg said:
When you are in a adb shell in your cmd, how do you get out of it besides exiting cmd?
Click to expand...
Click to collapse
Type "exit".
ty ty.
Ok so I updated something in adb and it's not working. LOL, well restarted, and now the sdk manager is updating some more stuff so hopefully that is the reason I was not getting in.
EDIT: everything is working now.
Ty stevie, really appreciate all your hard work helping us noobies man!
steviewevie said:
HTC Sync will install the correct USB drivers for your G2. Although you cannot actually *run* HTC Sync with your G2 unless it is running a Sense (Desire Z) ROM. So just install it but don't try to actually run it or sync with it.
It's the System Variables path that you want to change, to add the appropriate directories. This just lets you run adb from any directory on your PC. Even if you haven't got it added, it should still work if you "cd" to the directory where adb resides (in which case you will need to put any files into there that you wish to "push" to your phone).
What is the problem you're having, is it saying "no internal command" or similar ?
Click to expand...
Click to collapse
Ya my problem is that when I finally get to do the commands it tells me that "adb is not recognized as an internal or external command.
@raitchison- I checked my device manager and it says that i have the most current driver for the phone. Unfortunately it doesn't say anything about 'adb' it shows my 'portable devices' then into my 'E:/' drive and in the details there it stats 'Android phone'
DressedUpPanda said:
Ya my problem is that when I finally get to do the commands it tells me that "adb is not recognized as an internal or external command.
@raitchison- I checked my device manager and it says that i have the most current driver for the phone. Unfortunately it doesn't say anything about 'adb' it shows my 'portable devices' then into my 'E:/' drive and in the details there it stats 'Android phone'
Click to expand...
Click to collapse
You just need to add the correct directories onto the end of the path in System Variables. Go right to the end of the path, and then separated by semi-colons (do not put spaces in) add the two pathnames of the tools and platform-tools folder of the Android SDK. If you have done that and it is still not working, copy and paste the path variable up here and we can try checking it.
As I said, you could "cd" to the folder with adb in it, and then run "adb devices" from there, and it should work. But setting up the path will make it more convenient.
steviewevie said:
You just need to add the correct directories onto the end of the path in System Variables. Go right to the end of the path, and then separated by semi-colons (do not put spaces in) add the two pathnames of the tools and platform-tools folder of the Android SDK. If you have done that and it is still not working, copy and paste the path variable up here and we can try checking it.
As I said, you could "cd" to the folder with adb in it, and then run "adb devices" from there, and it should work. But setting up the path will make it more convenient.
Click to expand...
Click to collapse
Ok well here is the path that i have set up.
- C:\AndroidSDK\tools;C:\AndroidSDK\platform-tools
I saved the file right to my "C" drive so thats why i didn't go to the program files. I also changed the name of the folder so it was easier to type.
Edit: I got it to finally recognize my device. I went back to my path and found that i had spaced in between my ';' and 'C:/' so thank you very much Stevie on making me double check it!!!
hey y'all
I'm currently having issues installing Android SDK to my laptop (running Windows 7 32-bit)
I've downloaded Android SDK program but I try to install it says "Java SE Development Kit (JDK) not found", prompting me to download the kit from java.oracle.com
So off to Java, I download the kit under link ' jdk-6u25-windows-i586.exe'
Install the kit successfully and try to install Android SDK again...but same error message
Android SDK Tools: installer_r11-windows.exe
Java JDK: jdk-6u25-windows-i586.exe
I've even uninstalled and re-installed HTC Sync, copied the HTC_Driver_32 & extract in C:drive...
I've been following the instructions from these links:
How to install adb windows 7 32 and 64 and should work on XP
Workaround for HTC Hero Sync Problem in Windows 7
How To: Set Up ADB/USB Drivers for Android Devices
HELP!
herb1 said:
hey y'all
I'm currently having issues installing Android SDK to my laptop (running Windows 7 32-bit)
I've downloaded Android SDK program but I try to install it says "Java SE Development Kit (JDK) not found", prompting me to download the kit from java.oracle.com
So off to Java, I download the kit under link ' jdk-6u25-windows-i586.exe'
Install the kit successfully and try to install Android SDK again...but same error message
Android SDK Tools: installer_r11-windows.exe
Java JDK: jdk-6u25-windows-i586.exe
I've even uninstalled and re-installed HTC Sync, copied the HTC_Driver_32 & extract in C:drive...
I've been following the instructions from these links:
How to install adb windows 7 32 and 64 and should work on XP
Workaround for HTC Hero Sync Problem in Windows 7
How To: Set Up ADB/USB Drivers for Android Devices
HELP!
Click to expand...
Click to collapse
It's a known issue. If you have JDK when you install SDK and get that error juck click back and then forward.
'adb' is not recognized...
new problem...managed to follow laie's method to install adb up till the step where I must type adb devices
I get this error (attached):
'adb' is not recognized as an internal or external command, operable program or batch file.
MORE HELP?!
herb1 said:
new problem...managed to follow laie's method to install adb up till the step where I must type adb devices
I get this error (attached):
'adb' is not recognized as an internal or external command, operable program or batch file.
MORE HELP?!
Click to expand...
Click to collapse
Check the ../platform-tools in stead of ../tools directory.
In my tools directory, I noticed a txt file (adb_has_moved)
Open it and it says:
'The adb tool has moved to platform-tools/
If you don't see this directory in your SDK, launch the SDK and AVD Manager (execute the android tool) and install "Android SDK Platform-tools"
Please also update your PATH environment variable to include the platform-tools/ directory, so you can execute adb from any location.'
So I open Android SDK and AVD Manager, it immediately starts to look for updates and gives me this error message:
'Failed to fetch URL http://dl-ssl.google.com/android/repository/repository.xml, reason: Connection timed out: connect'
What now?
Even tried open Manager from cmd (using android.bat from tools directory), didn't immediately look for updates but eventually it did & gave same error!
HELP?
herb1 said:
In my tools directory, I noticed a txt file (adb_has_moved)
Open it and it says:
'The adb tool has moved to platform-tools/
If you don't see this directory in your SDK, launch the SDK and AVD Manager (execute the android tool) and install "Android SDK Platform-tools"
Please also update your PATH environment variable to include the platform-tools/ directory, so you can execute adb from any location.'
So I open Android SDK and AVD Manager, it immediately starts to look for updates and gives me this error message:
'Failed to fetch URL http://dl-ssl.google.com/android/repository/repository.xml, reason: Connection timed out: connect'
What now?
Even tried open Manager from cmd (using android.bat from tools directory), didn't immediately look for updates but eventually it did & gave same error!
HELP?
Click to expand...
Click to collapse
It should update. Don't you have some firewall that precludes it to download updates ?
Edit: If you are using windows don't install Android SDK into the Program Files directory. You need special permissions to modify that folder so that's why you might have problems in the future. What you have reported first is a connection problem which has to be firewall related.
paul.c said:
It should update. Don't you have some firewall that precludes it to download updates ?
Click to expand...
Click to collapse
I think so (using work's PC)...any other way, maybe using my HTC?
herb1 said:
I think so (using work's PC)...any other way, maybe using my HTC?
Click to expand...
Click to collapse
Disable the firewall.
paul.c said:
Disable the firewall.
Click to expand...
Click to collapse
managed to download it via wireless on my HTC...thanks pal
when i tried to run sdk , got this error
C:\>android-sdk-windows\tools
'android-sdk-windows\tools' is not recognized as an internal or external command
,
operable program or batch file.
C:\>
can somebody help me to solve this error
i am on windows xp
what do you want to do?if you want to use the program inside the tools folder you should enter the folder. you can make a shortcut file by make a new txt file in tools folder, type cmd.exe then save the file. change the extension to *bat. in this way anytime you open the *bat file you'll enter tools folder in cmd automatically.
The folder you cd should have adb in it. Otherwise it won't work
Sent from my GT-S5360 using XDA
Define more clearly !
The error you have mentioned isn't from sdk, its a cmd error & is trying to inform you that the command you entered isn't an executable(script or binary), its just a simple path to which you can cd not execute.
You can just find the windows executable(like *.exe, *.bat, *.cmd,.. etc) you are trying to execute & double click
Like the default location for Sdk Manager : "C:\Program Files\Android\android-sdk\SDK Manager.exe"
yup...thats right. but the *exe command only work if executed from cmd. he has solve this problem anyway. mod can close it now.
He didn't mentioned about gui or command-line. So replied that way.
That's not sdk error,....
Sent from my Nexus One using Tapatalk