Hi,
i had problems with some Modder Tools using windows 8. And after i didn't find solutions i decidet to post my one here.
So i had problems with some signing tools and the ddms from adb to take screenshots.
When starting i get some errors like install java but i still installed it. To solve try this:
edit the bat causing the error. I take for example ddms.bat.
search for Java and you'll find this part:
rem Check we have a valid Java.exe in the path.
set java_exe=
call lib\find_java.bat | < here you see that the bat is searching with find_java.bat in the lib folder for java. So we will edit this file.
if not defined java_exe goto :EOF
So if you now looking in this folder and search for java you'll find this part:
set java_exe=
for /D %%a in ( "%ProgramW6432%\Java\*" ) do call :TestJavaDir "%%a"
if defined java_exe goto :EOF
rem Check for the "default" 32-bit version
:Check32
echo Checking if it's installed in %ProgramFiles%\Java instead.
set java_exe=
for /D %%a in ( "%ProgramFiles%\Java\*" ) do call :TestJavaDir "%%a"
if defined java_exe goto :EOF
So here is the problem the folders where it looks for Java doesn't exist for Windows 8.
For me java is installed in Program Files (x86).
So add this part:
set java_exe=
for /D %%a in ( "C:\Program Files (x86)\Java\*" ) do call :TestJavaDir "%%a"
if defined java_exe goto :EOF
and save. You can now open cmd, browse to adb folder and type in "ddms.bat" you'll now get the same error, but you can ignore it. Additionaly you'll get an other error. to fix this open System control, System, System, advanced system settings,
enviroment Variable.
At the User Variables select new and type for name java and value C:\Program Files (x86)\Java\jre7\bin\java.exe.
Please notice that the value can change if you have a newer Version. The cmd should get you the right value. Save it and repeat the command "ddms.bat" it will give you the same errors but after a while the ddms will open and you can use it. I haven't try it for the signing tool but i'm sure this will work for these, too.
I'm sorry for bad english, maybe someone can "translate" this in better english.
Related
I followed this
(Setting up the Android SDK
Download the file from above
Unzip to your desktop
Take the "android-sdk-windows" folder and move it to the root of your hard drive (C:\)
Right click on My Computer and click properties
Select the Advanced Tab or Advanced System Setting (Vista/Windows 7)
Select Environment Variables...
Press New
For Variable Name type: adb
For Variable Value type: C:\android-sdk-windows\tools)
and when I try to do this
(1. Run SDK Setup.exe
2. If it gives you an error go to settings and click on "Force http//....."
3. Select all options and let it download and install)
I have issues cause I dont have the SDK Setup.exe I have searched for it and can not find it, please help thanks Davey
also I installed the windows version
http://developer.android.com/sdk/index.html
If you've added the tools folder to your path, you don't need to install anything, just type "adb <command>" in the cmd prompt and you're good to go.
if you talking about this
For Variable Name type: adb
For Variable Value type: C:\android-sdk-windows\tools)
yes i have done it and it still wont work. I have my phone is debugging and on charge only and when i open the cmd and type in adb it gives me is not recoginzied as an internal or external command, operable program or batch file,
then when i type (android-sdk-windows\tools) it gives me the system cannot find the path specified. I am lost
ok So on my other computer I got some progress, I opened sdk manager and got it all updated and the only real problem i am having now is (this is dumb) but I dont know my sdk name, like when it says
cd C:\**your sdk name**\tools (Press Enter)
I have been trying C:\android-sdk-windows\tools
thanks for the help! Davey
thank you I got it running now!!!!!! I did what you said and added it to the path not just a new varibable, thank you very much!!!
So I'm reading through the guide "ADB For Noobs" and I'M STUCK. I can't figure out this one part... it says
Find the "Path" variable in the list of variables that it shows (you might need to scroll), and then double-click on that entry to edit it. Add the full path of the "tools" and "platform-tools" folders of the SDK to your path. e.g. if the SDK has been installed in "c:\Program Files\android-sdk-windows", then add to your Path "c:\Program Files\android-sdk-windows\tools;c:\Program Files\android-sdk-windows\platform-tools"
I'm confused what I'm supposed to add.... Can someone direct me please?
I'm using windows xp btw.
Hey so if anyone knows how to test roms on android sdk emulator with your pc please help me!
I found a really old guide from modaco and the problem I first enountered was that it wouldn't give me some ID number or something on cmd.
So a step-by-step guide would be great!
I have the same problem too...
what can we do?
Old topic but my answer would help for people using search button or google
1. Download the Android SDK (which includes the emulator) from here.
2. Extract the downloaded zip.
3. Run a command prompt, and change to the 'tools' directory of the SDK (or add the tools directory to your path).
4. Type 'android list target'
5. Note the 'id' number of the '1.5' target (in my case it's '2')
6. Type 'android create avd -n enhanced -t 2' (substitute 2 with the target number determined above if required)
7. You will be prompted to create a hardware profile. This is optional, but I selected 'yes' and accepted the defaults for everything except RAM, where I gave it 256MB. wink.gif
8. Download and unzip THIS image file.(in this step you can just use your own rom)
9. Copy the above file to the location of the enhanced.avd directory ('C:\Documents and Settings\<user>\.android\enhanced.avd' on Windows XP, and 'C:\Users\<user>\.android\enhanced.avd' on Windows Vista).
10. You're ready! Type 'emulator -avd enhanced' to run! Note: inital boot may take a few minutes!
If you get Java errors, you need to download the JDK for your system from here!
Mac OSX
1. Download the Android SDK (which includes the emulator) from here.
2. Extract the downloaded zip.
3. Run Terminal, and change to the 'tools' directory of the SDK (or add the tools directory to the path settings in ~/.profile).
4. Type './android list target'
5. Note the 'id' number of the '1.5' target (in my case it's '2')
6. Type './android create avd -n enhanced -t 2' (substitute 2 with the target number determined above if required)
7. You will be prompted to create a hardware profile. This is optional, but I selected 'yes' and accepted the defaults for everything except RAM, where I gave it 256MB. wink.gif
8. Download and unzip this image file.(again, here is where you can use your custom rom)
9. Copy the above file to ~/.android/avd/enhanced.avd/system.img (e.g. if you saved it to and unzipped it to downloads enter 'cp ~/Downloads/system.img ~/.android/avd/enhanced.avd/system.img')
10. You're ready! Type './emulator -avd enhanced' to run! Note: inital boot may take a few minutes!
If you get Java errors, you need to download the JDK for your system from here!
Help me please........
I've downloaded the android studio & sdk tool separately (both from official website)
Now my question is : can I use them together??......if yes.....then tell me the process
Why do u people just copy and paste the stuff from other websites?
Pls. Do specify in ur own way or pls make a video on this!!
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
Hello Friends ,
Check Out these Post where you Find how to set path of Java in Windows ?
path is required to be set for using tools such as javac, java etc...
If you are saving the java source file inside the jdk/bin directory,path is not required to be set because all the tools will be availablein the current directory.
But If you want to run your java file outside the jdk/bin folder, it is necessary to set path of JDK.
Types Of Path in JAVA :
[*]Temporary[*]Permanent Here i will explain how to set JAVA path Permanently ...
Just Follow the steps :
Step 1:Go to MyComputer properties
Step 2:Advanced tab
Step 3:Environment variables
Step 4:Now edit the system variables Path
Step 5: Now go to the java bin folder ,and copy the path .
(For example: C:\Program Files\Java\jdk1.8.0\bin)
Step 6: write path of bin folder in variable value (if there many path then add ";" and then paste the path
(For example: ;C:\Program Files\Java\jdk1.8.0\bin))
Step 7: ok -> ok -> ok
Done You Successfully set path of java , Now you can Run java program from any folder