[Q] Not able to install the SDK packages, coz SDK blinks for a sec and then closes. - General Questions and Answers

So, I am sorry, if this is a stupid question, I am novice here. I am trying to run SDK manager on windows 7, 32-bit os. It's already installed. Whenever I try running SDK manager, It flashes for a sec and disappears. When I tried executing android.bat from tools, what I got was :
C:\Program Files\Android\tools>android
[INFO] Starting Android SDK and AVD Manager
'xcopy' is not recognized as an internal or external comman
operable program or batch file.
No command line parameters provided, launching UI.
See 'android --help' for operations from the command line.
Exception in thread "main" java.lang.NoClassDefFoundError:
ts/Display
at com.android.sdkmanager.Main.showMainWindow(Main.
at com.android.sdkmanager.Main.doAction(Main.java:2
at com.android.sdkmanager.Main.run(Main.java:99)
at com.android.sdkmanager.Main.main(Main.java:88)
I have java 6 up date 25 already installed and the path is already added to environ var. Also I am interested in developing for android, If anybody is interested in showing me how, I wud be very greatfull. Thanks in advance. Plzzzzzzz........ HELP.
Currently Using : HTC Desire Z.
And yes, I am having eclipse 3.2 already installed on my system. PLzz help................................., somebody......................, anybody.

General tip
If you double click some techie program on Windows and see it just appear and disappear like that, it usually means that this program is meant to be run in a command line window.
So go to All Programs -> Accessories -> Command Prompt and open that
Then go to wherever that program is installed and run it from there.
Oh, and note that Android development needs the JDK, not the JRE version of Java, The JDK contains all the extra parts needed for Java software development in general, including key parts needed by the Android SDK.
While the JRE can be downloaded from www java com , the JDK is only available from java.sun.com .
P.S.
Sorry for not making proper links, but I have not made enough posts to allow them yet.

Related

[Q] xoom official 3.2.2 lte update "help root"

Hi, trust me i have digged and digged, and couldn't find any threads about if the xoom can be rooted if never rooted and now on xoom 3.2.2 lte
i have seen walk throughs for if you already have device rooted and how to install rom on sd and go through that way, but nothing that shows what to do from square 1 and on the latest 3.2.2 lte update.
if there's simply a link, please reply with it.
Thank you!
It took me 30 seconds to find and copy link:
http://forum.xda-developers.com/showthread.php?t=1242241
i found this too, but its missing step 1
1. Setting up adb & fastboot
Coming Soon! (If you want to write this section for me and pm me it, thats fine !)
adb set up:
http://forum.xda-developers.com/showthread.php?t=1249798
(assuming you have windows PC)
here is a quick tip for you:
http://forum.xda-developers.com/showpost.php?p=17494128&postcount=53
westsidekino said:
i found this too, but its missing step 1
1. Setting up adb & fastboot
Coming Soon! (If you want to write this section for me and pm me it, thats fine !)
Click to expand...
Click to collapse
ADB and fastboot are part of the android SDK... And you'll need Java as a pre-req...
I'm not sure where there is an exact guide or complete step by step... but I was able to figure it out by just grabbing the required apps and installing them, so hopefully this will get you started...
For Java, visit -> http://www.oracle.com/technetwork/java/javase/downloads/index.html and use the link for Java SE to download the appropriate installer for your computer (I downloaded/used jdk-7-windows-x64.exe on my 64bit Win7 Ultimate rig). Stepping through the installer is pretty self explanatory.
For the Android SDK, the Windows installer EXE is located at -> http://developer.android.com/sdk/index.html and I got/used the installer_r12-windows.exe. Again, Stepping through the installer is pretty self explanatory. I usually change the install path to C:\AndroidSDK. And after the install is complete you'll want it to install/update all android packages (which brings down ADB, fastboot, usb drivers, etc..). Its been a while since I did it, so I don't remember all the screens and stuff.
After the Android SDK is installed you'll want to add its "TOOLS" and "Platform-Tools" folders to the Windows path... (so you can execute ADB and Fastboot commands from anywhere.)
In Windows 7, right click on Computer, from the pop-up select Properties. In the window that opens, along the upper left, click on Advanced System Settings. Next click the Environment Variables button. In the lower section (System Variables), scoll and find PATH. Highlight it and click the Edit button. At the end of the line (use the right arrow to get there), add the location of your Tools and Patform-Tools folders, separated by semi-colon..
Example: If you told the Android SDK to install at c:\androidSDK... then add this to the end of your path...
;C:\AndroidSDK\platform-tools;C:\AndroidSDK\tools;
My path variable on my laptop now looks like.... %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Lenovo\Access Connections\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\AndroidSDK\platform-tools;C:\AndroidSDK\tools;
Hope that helps.
KidJoe said:
ADB and fastboot are part of the android SDK... And you'll need Java as a pre-req...
I'm not sure where there is an exact guide or complete step by step... but I was able to figure it out by just grabbing the required apps and installing them, so hopefully this will get you started...
For Java, visit -> http://www.oracle.com/technetwork/java/javase/downloads/index.html and use the link for Java SE to download the appropriate installer for your computer (I downloaded/used jdk-7-windows-x64.exe on my 64bit Win7 Ultimate rig). Stepping through the installer is pretty self explanatory.
For the Android SDK, the Windows installer EXE is located at -> http://developer.android.com/sdk/index.html and I got/used the installer_r12-windows.exe. Again, Stepping through the installer is pretty self explanatory. I usually change the install path to C:\AndroidSDK. And after the install is complete you'll want it to install/update all android packages (which brings down ADB, fastboot, usb drivers, etc..). Its been a while since I did it, so I don't remember all the screens and stuff.
After the Android SDK is installed you'll want to add its "TOOLS" and "Platform-Tools" folders to the Windows path... (so you can execute ADB and Fastboot commands from anywhere.)
In Windows 7, right click on Computer, from the pop-up select Properties. In the window that opens, along the upper left, click on Advanced System Settings. Next click the Environment Variables button. In the lower section (System Variables), scoll and find PATH. Highlight it and click the Edit button. At the end of the line (use the right arrow to get there), add the location of your Tools and Patform-Tools folders, separated by semi-colon..
Example: If you told the Android SDK to install at c:\androidSDK... then add this to the end of your path...
;C:\AndroidSDK\platform-tools;C:\AndroidSDK\tools;
My path variable on my laptop now looks like.... %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Lenovo\Access Connections\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\AndroidSDK\platform-tools;C:\AndroidSDK\tools;
Hope that helps.
Click to expand...
Click to collapse
@OP--you should thank rohit3192 and kidjoe. They did for you what you could have done so easily. Check the Xoom Heaven thread in General for links and explanations for just about anything you need. Searching is not easy from the xda app, but from a browser, it actually works. People here are super helpful, but you have to help yourself too.
rohit3192 said:
adb set up:
http://forum.xda-developers.com/showthread.php?t=1249798
(assuming you have windows PC)
here is a quick tip for you:
http://forum.xda-developers.com/showpost.php?p=17494128&postcount=53
Click to expand...
Click to collapse
thank you so much
---------- Post added at 11:17 PM ---------- Previous post was at 10:33 PM ----------
KidJoe said:
ADB and fastboot are part of the android SDK... And you'll need Java as a pre-req...
I'm not sure where there is an exact guide or complete step by step... but I was able to figure it out by just grabbing the required apps and installing them, so hopefully this will get you started...
For Java, visit -> and use the link for Java SE to download the appropriate installer for your computer (I downloaded/used jdk-7-windows-x64.exe on my 64bit Win7 Ultimate rig). Stepping through the installer is pretty self explanatory.
For the Android SDK, the Windows installer EXE is located at -> and I got/used the installer_r12-windows.exe. Again, Stepping through the installer is pretty self explanatory. I usually change the install path to C:\AndroidSDK. And after the install is complete you'll want it to install/update all android packages (which brings down ADB, fastboot, usb drivers, etc..). Its been a while since I did it, so I don't remember all the screens and stuff.
After the Android SDK is installed you'll want to add its "TOOLS" and "Platform-Tools" folders to the Windows path... (so you can execute ADB and Fastboot commands from anywhere.)
In Windows 7, right click on Computer, from the pop-up select Properties. In the window that opens, along the upper left, click on Advanced System Settings. Next click the Environment Variables button. In the lower section (System Variables), scoll and find PATH. Highlight it and click the Edit button. At the end of the line (use the right arrow to get there), add the location of your Tools and Patform-Tools folders, separated by semi-colon..
Example: If you told the Android SDK to install at c:\androidSDK... then add this to the end of your path...
;C:\AndroidSDK\platform-tools;C:\AndroidSDK\tools;
My path variable on my laptop now looks like.... %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Lenovo\Access Connections\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\AndroidSDK\platform-tools;C:\AndroidSDK\tools;
Hope that helps.
Click to expand...
Click to collapse
i have the same os as you except its professional, i installed the java jdk 7 win 64, but when i try and install the android installer it says cannot detect java sdk
westsidekino said:
thank you so much
---------- Post added at 11:17 PM ---------- Previous post was at 10:33 PM ----------
i have the same os as you except its professional, i installed the java jdk 7 win 64, but when i try and install the android installer it says cannot detect java sdk
Click to expand...
Click to collapse
If its 64 bit pro... make sure your file name was jdk-7-windows-x64.exe
I didn't run into any problems, i don't recall if I rebooted between installing Java and trying to install the android SDK (I don't think i rebooted first) but...
Consider the suggestion in the thread link rohit3192 posted about adb setup... especially where it says...
okantomi said:
...Note: If the Android SDK complains that the Java Dev Kit can't be found, just press Back and then Next again. Wierd, but that seems to do the trick ... go figure....
Click to expand...
Click to collapse
its worth a shot..
KidJoe said:
If its 64 bit pro... make sure your file name was jdk-7-windows-x64.exe
I didn't run into any problems, i don't recall if I rebooted between installing Java and trying to install the android SDK (I don't think i rebooted first) but...
Consider the suggestion in the thread link rohit3192 posted about adb setup... especially where it says...
its worth a shot..
Click to expand...
Click to collapse
well i feel silly, thanks, you rock! the back and next did it.

SDK manager failed to install

Im trying my best to install 4.04 on my Galaxy Nexus because Verizon is taking their sweet time with the update. It says I have to install SDK manager to do this. I have it opened and am trying to download the sdk tools and the google usb drivers but it gives me an error message stating that
The following processes
cmd.exe
java.exe
are locking the following directory
C:/android-sdk-windows/tools
Please close these applications so the installation can continue
I use ctl + alt + del and end the process but it closes the installer
any ideas?
Still an issue? I am seeing the same on Win8 64bit -- I am not surprised as I have an unholy total of eight adb.exe files on my system. Trying to thin them out and keep all of them quiet and dormant while I try to update to v19.
No one device is the same, hence my reason to have more than one adb.exe --

can't load/run android sdk

Win7-64
Cannot seem to load the android sdk. I have downloaded the Java SDK SE 7u5 and the JRE 7u5 and installs seem ok. But when I try to execute the android sdk (installer_r20.0.1-windows.exe) I get the error "Java SE Development Kit (JDK) not found. Error: Failed to find Java version for 'c:\windows\system32\java.exe'"
I then added a path in the environment variables as JAVA_HOME to point to this c:\windows\system32\java.exe' but still refuses to load.
Have tried reset, reboot and no go. I have also searched the FAQ but did not locate an answer.
My intent is to work with the Android system for the Google Nexus 7 tablet.
Can anyone please point me to a resolution? Thanks!
caprock said:
Win7-64
Cannot seem to load the android sdk. I have downloaded the Java SDK SE 7u5 and the JRE 7u5 and installs seem ok. But when I try to execute the android sdk (installer_r20.0.1-windows.exe) I get the error "Java SE Development Kit (JDK) not found. Error: Failed to find Java version for 'c:\windows\system32\java.exe'"
I then added a path in the environment variables as JAVA_HOME to point to this c:\windows\system32\java.exe' but still refuses to load.
Have tried reset, reboot and no go. I have also searched the FAQ but did not locate an answer.
My intent is to work with the Android system for the Google Nexus 7 tablet.
Can anyone please point me to a resolution? Thanks!
Click to expand...
Click to collapse
First, make sure that the file java.exe is in this folder "C:\WINDOWS\system32\".
If this file is there, try to run "C:\WINDOWS\system32\java.exe -version" and make sure that you see the message java version "1.7.0_05"
If not - just reinstall java
PlanetInPocket said:
First, make sure that the file java.exe is in this folder "C:\WINDOWS\system32\".
If this file is there, try to run "C:\WINDOWS\system32\java.exe -version" and make sure that you see the message java version "1.7.0_05"
If not - just reinstall java
Click to expand...
Click to collapse
Thanks - This works:
java version "1.7.0_5"
Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
Java HotSpot(TM) 64-bit Server VM (build 23.1-b03, mixed mode)
if the problem hasn't been solved yet just try to install 32-bit version java (before remove 64-bit version)
caprock said:
Win7-64
Cannot seem to load the android sdk. I have downloaded the Java SDK SE 7u5 and the JRE 7u5 and installs seem ok. But when I try to execute the android sdk (installer_r20.0.1-windows.exe) I get the error "Java SE Development Kit (JDK) not found. Error: Failed to find Java version for 'c:\windows\system32\java.exe'"
I then added a path in the environment variables as JAVA_HOME to point to this c:\windows\system32\java.exe' but still refuses to load.
Have tried reset, reboot and no go. I have also searched the FAQ but did not locate an answer.
My intent is to work with the Android system for the Google Nexus 7 tablet.
Can anyone please point me to a resolution? Thanks!
Click to expand...
Click to collapse
Your JAVA_HOME should never point to /system32, otherwise you messed up the Java installation. Download the Java JDK from Oracle, and install it to its own folder.

[Q] eclipse problems

Not sure if this is the right spot for this post. I am trying to open ecplise for the first time and i am getting an error "SDK Platform Tools component is missing! Please use the SDK Manager ti install it.
I have sdk installed but don't understand how to get the sdk platform tools installed nor do i know where to place them after they are installed.
Any help would be greatly appreciated.
This is probably because the platform tools downloaded were corrupt or invalid. Its not a serious issue and can be amended quite easily. Just follow the steps below
Open the folder where you have the sdk
Open sdk manager
Wait for the packages to load
Select platform tools
Select Install 1 package
Reopen eclipse
Voila! All done
ZTE Blade | Asus Transformer TF300T

[Guide] Windows RT 8.1 Kits

This is a guide to setting up Windows Kits on Windows 8.1 RT. While it itself is a set of debugging & testing tools that Microsoft publishes officially for Windows 8.1 RT, I haven't looked at them in detail and possibly there are tools in it that are useful for you.
Mandatory Warning
This is a set of development tools and should not be toyed around with if you don't know what you are doing.
Disclaimer
These tools were provided by Microsoft Corporation and this guide only points you out to the tools I've found.
There is no warranty, express or implied for these tools, either from me or from Microsoft.
Includes
ARM Kits Policy (Needed to run development binaries on Windows 8.1 RT) Info here (MSDN)]
ARM Debugging Tools (WinDbg, Gflags) Download here (Source)
ARM App Certification Kit Info and Download here
ARM Windows Performance Toolkit (included with above)
Guide
Make sure you are sane enough and you need to install these.
Download the ARM Windows App Certification Kit (third in the list above) and install.
Go to C:\Program Files\Windows Kits\8.1\bin\arm\SecureBoot. Open InstallKitsPolicy.cmd with an Admin CMD Prompt.
This will install the Kits Policy (other tools will not work without this). After rebooting, use Volume Down to select "Install" in the black screen that appears, and press the Windows button on your RT Device to proceed.
After it boots, try to run C:\Program Files\Windows Kits\8.1\bin\arm\dxcapsviewer.exe and see if it runs. If it does, your Kits Policy is now installed. Download the ARM Debugging Tools from above.
Install it. It'll also install to C:\Program Files\Windows Kits\8.1. The Debugger is located at \Debuggers, other useful binaries are around in \bin\arm. They also install Start Menu entries.
Notes
If the Kits Policy fails to install (black screen does not show up on next boot), try running the commands manually in an elevated command prompt. It failed to work for me in the first few tries, maybe due to a repeated command in the .bat file provided by MS. Running it manually should allow you to ignore that error.
jimmielin said:
ARM Debugging Tools (WinDbg, Gflags) Download here (Source)
Click to expand...
Click to collapse
Thanks for the info's. Any chance someone can mirror this, MEGA does not work for readers with certain browsers and security settings.
http://www.datafilehost.com/

Categories

Resources