i put all the components of APK into the sdk tools folder, i run script.bat and it's fine.
i placed my .apk inside the place-here--for-modding folder and i got back to where the script.bat and run it. once i hit 22, select my project and press 1 to extract, the script just closes. i don't know what the problem is but here's the log:
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b07)
Java HotSpot(TM) 64-Bit Server VM (build 17.0-b17, mixed mode)
1.2.8.apk==None was unexpected at this time.
Apk manager problem
I have the same problem..
I also got this error.
any one has a solution?
i tried with apk_manager ver 4.9 and ver 5.0.2
Solution found:
1. make sure file and folder has no spaces
2. make sure adb.exe is running from cmd, you can add adb.exe path to windows Environment Variable - Path
Enjoy...
Related
guys i really need help installing SDK, for some reason it cannot detect "adb" command after installation
That's most likely because you haven't added the install location to either to path (windows xp) or envoirnment variable (win vista/7). What OS do you run?
mstrk242 said:
That's most likely because you haven't added the install location to either to path (windows xp) or envoirnment variable (win vista/7). What OS do you run?
Click to expand...
Click to collapse
window 7dsfsdfdsf
The platform tools folder under where android sdk installed (depends on where you chose when you setup), needs to be added to the envoirnment variables under windows 7. Go to the control panel, system properties, and advanced. On the bottom is where you'll see the envoirnment variables. Add the directory to the local path, and then you should be good. (Provided all other install steps were successful, of course.)
mstrk242 said:
The platform tools folder under where android sdk installed (depends on where you chose when you setup), needs to be added to the envoirnment variables under windows 7. Go to the control panel, system properties, and advanced. On the bottom is where you'll see the envoirnment variables. Add the directory to the local path, and then you should be good. (Provided all other install steps were successful, of course.)
Click to expand...
Click to collapse
ok i found it but not sure what to add, i install everything under c: drive (c:/android-sdk-windows)
EDIT: nvm got it thanks!
G1_enthusiast said:
ok i found it but not sure what to add, i install everything under c: drive (c:/android-sdk-windows)
Click to expand...
Click to collapse
Ok, on the envoirment variables page, on the bottom, scroll down to path
then edit
do not delete what's already in there, add
;c:\android-sdk-windows\platform-tools;
right at the end of it (so it's ;, the path... i believe it's under the folder platform-tools. you might want to check the folder to make sure the adb file is in there. I haven't done it on windows in a while though, but that should be the folder.)
You'll have to close and re-open any command prompts you have open after making this change, so the new path takes affect. Just open a command prompt and type adb. If you get command not found it's not correct.
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!
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