SDK Manager won't start - IDEs, Libraries, & Programming Tools

Hi, i'm having troubles to open the SDK manager. I have Windows 7 64-bit and i Installed de jdk 1.7.0_25 64-bit. This are the solutiones i've tried but with no success:
Installing SDK in c:\
Adding JAVA_HOME enviroment variable to the system pointing to jdk1.7.0_25
Adding JDK_HOME pointing the same place...
adding c:\program files.....jdk...\bin; to Path in enviroment variables
Editing few lines of android.bat file like:
Code:
set java_exe=
call lib\find_java.bat
if not defined java_exe goto :EOF
to
Code:
set java_exe="c:\Program Files\Java\jdk1.7.0_25\bin\java.exe"
Downloading the version that comes with eclipse... same results..
Finally i tried with Android Studio but when i try to open SDK Manager inside this program it comes an error that say:
ERROR: No suitable Java 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 JavaSE, available here:
http://www.oracle.com/technetwork/java/javase/downloads
If you already have Java installed, you can define the JAVA_HOME environment
variable in Control Panel / System / Avanced System Settings to point to the
JDK folder.
You can find the complete Android SDK requirements here:
http://developer.android.com/sdk/requirements.html

As it writes you this
ERROR: No suitable Java found. In order to properly use the Android Developer
Click to expand...
Click to collapse
maybe it wants 32-bit Java for you 64-bit system anyway?
Like an obvious hint: Try 32-bit Eclipse 32-bit Java and 32-bit ADT plugin in you system. It should work.

Related

JDK driving me mad!! please help

Ok so i ran into some problems today after updating eclipse and JDK.
when opening sdk manager i get told java not found in your path then it finds it in program files and tells me to reflect this in user variables path which i already have. what is going someone please helpme before i put my fist through the comp screen!!
I am running win7 home premium 32bit
I also tried the zip sdk revision 8 and still get the same message seem ok going into sdk manager but on exit it gives me this message
cyberpedz said:
Ok so i ran into some problems today after updating eclipse and JDK.
when opening sdk manager i get told java not found in your path then it finds it in program files and tells me to reflect this in user variables path which i already have. what is going someone please helpme before i put my fist through the comp screen!!
I am running win7 home premium 32bit
I also tried the zip sdk revision 8 and still get the same message seem ok going into sdk manager but on exit it gives me this message
Click to expand...
Click to collapse
Control Panel -> System -> Advanced -> Environment Variables
Make sure your Path= has the JDK directory in it.... odds are your old one is still there and its not pointing to the new JDKs folder. (Just saying it again even though you said you already did).
Remove all traces of old java installs and try again -- including adding it to the path..... Sometimes the JDK can be a real PITA, but usually most of the issues occur in 64bit versions.
Did you uninstall Java JREs you had installed before the JDK as well?

Getting Android source in Eclipse on Windows 7 [solved]

Hi all, I'm just starting getting into App development and I want to attach the Android source code into Eclipse so that I can reference it locally. Is there anyone here who has experience doing this on Windows who is willing to walk me through it?
Alternatively, I'll go it on my own if someone could help me get past this one roadblock. Thus far I've installed Python and msysGit (and updated my PATH variable accordingly) so that I can use git and repo. Something isn't working however and repo runs into an error that I can't seem to figure out. I'm contemplating uninstalling all that and starting from scratch with Cygwin.
Here's a tutorial on setting up Eclipse on windows (albeit over a year old so no guarantees) link
personally I would dual boot linux... it was a breeze setting it up and there's plenty of tutorials for that.
You could install ubuntu (i think) side by side with win7 using wubi, as if it were a program or something. That way you're not messing with partitions.
I already have Eclipse set up. This is not the problem. I'm having trouble downloading the Android source code - NOT the SDK - on my Windows PC. Specifically, I always run into errors when I try to use "repo init -u blah blah" as instructed on the android source page. If someone has successfully done this on Windows, I'd like someone to give me some guidance, because either I'm doing something wrong or my setup is not correct.
Right now I'm trying to use Cygwin (basically creates a linux environment inside Windows). The last time I tried using repo, I got this:
EDIT: Code removed. I found a solution, outlined below, for anyone else who wants to get the Android source into Eclipse.
Okay, I got the source code, it was actually pretty easy to do, and I didn't even need repo to do it . For those who may find this useful, here's how.
0. It is assumed you have already installed both Eclipse and the Android SDK. If you don't have those yet, download them and set those up. If you aren't on Windows but still want to know how to get the source and import it into Eclipse, you can skip step 1.
1. Install Cygwin on your computer. During the installation, you will be presented with a package explorer and you can choose specific packages to install. Choose whatever you like, but make sure to include automake, bison, curl, flex, gcc, git, gnupg, python, zip, and an editor of your choice, like nano or vim (you can use the search field at the top to find these quickly).
This will basically give you a Linux shell on Windows whose root directory is something you've designated, like C:\cygwin.
2. A few more things to set up. Fire up Cygwin and make a bin folder in your home directory. Add this directory to your PATH variable, then cd into it.
Code:
mkdir ~/bin
PATH=~/bin:$PATH
cd bin
This blog post has code for a python script that will be used later. Make a new file using an editor of your choice. Copy the code and save the file as anything you want (I named it "pack.py"). When you're done, cd back to your home directory.
3. Downloading source. From your home directory (or a subdirectory if you wish), use git to clone the platform frameworks base into a new directory (here I've called it "android").
Code:
git clone http://android.git.kernel.org/platform/frameworks/base.git android
cd into that directory and examine the git tags.
Code:
cd android
git tag
You'll get a list of tags. Choose the one that matches the API level you want to build your project(s) in. I'm using API level 10, so I chose android-2.3.3_r1. That's what you're going to check out.
Code:
git checkout android-2.3.3_r1
4. Reorganizing the source code. You need to locate all the java source files and restructure everything into a directory structure that matches the package naming. Fortunately, that script from earlier does exactly this and then zips it up into a nice little package for you called "sources.zip".
Code:
python ~/bin/pack.py
5. Move this zip file to the proper SDK platform folder. Since I downloaded sources for API level 10, I want to move this zip file to
Code:
C:\android-sdk-windows\platforms\android-[B]10[/B]
You can do this with your regular old file explorer on Windows. Extract the contents into a subfolder named "sources".
6. Get Eclipse to recognize them. Open up a project (or start a new one) whose target is the API level you just did all that stuff for. In the package explorer, right-click the project root and click "Refresh". Now when you browse the class files under project-root/android 2.3.3/android.jar/whatever, you'll see actual source code instead of that nasty "Source not found" page.
Enjoy ^_^

[Q]Trouble with Java JDK 5 for Ubuntu

Hi guys. I have trouble with installing Java JDK 5 on Ubuntu 11.04. It's necessary for custom ROM development, so I really need it. I've had it installed before, but I had to format my Ubuntu partition and I lost it. I've followed all the steps, but there's an error telling that the sources are missing. Any ideas guys? It's very important, so please help!
Thanks in advance!
Did you add Path variables?
PATH=$PATH:/path/to/executables
Are you using OpenJDK or Oracle JDK.
Ubuntu comes with OpenJDK by default so if you want the Oracle version go to their website. Download JDK 5 extract the JDK then add the Path variables to the executable folder.
Also make sure you get the self-extracting download and not the rpm download.
en4bz said:
Did you add Path variables?
PATH=$PATH:/path/to/executables
Are you using OpenJDK or Oracle JDK.
Ubuntu comes with OpenJDK by default so if you want the Oracle version go to their website. Download JDK 5 extract the JDK then add the Path variables to the executable folder.
Also make sure you get the self-extracting download and not the rpm download.
Click to expand...
Click to collapse
Thanks for the info! Will definitely try this.
en4bz said:
Did you add Path variables?
PATH=$PATH:/path/to/executables
Are you using OpenJDK or Oracle JDK.
Ubuntu comes with OpenJDK by default so if you want the Oracle version go to their website. Download JDK 5 extract the JDK then add the Path variables to the executable folder.
Also make sure you get the self-extracting download and not the rpm download.
Click to expand...
Click to collapse
Where's JDK 5? I can't see it.
Sent from my GT540 using XDA App
I just had to install an Ubuntu machine for the same reason: to build AOSP from source and I couldn't do in in my preferred environment, Gentoo (JDK5 is officially dropped from Gentoo due to security issues).
Ubuntu didn't have any qualms about installing JDK5. Just ran:
sudo apt-get install sun-java5-jdk
then followed the instructions here:
http://source.android.com/source/initializing.html
Gene Poole said:
I just had to install an Ubuntu machine for the same reason: to build AOSP from source and I couldn't do in in my preferred environment, Gentoo (JDK5 is officially dropped from Gentoo due to security issues).
Ubuntu didn't have any qualms about installing JDK5. Just ran:
sudo apt-get install sun-java5-jdk
then followed the instructions here:
http://source.android.com/source/initializing.html
Click to expand...
Click to collapse
Thanks a lot! I successfully installed Java JDK5 on my Ubuntu!

[Q] re BurritoRoot, is JavaSDK reg to use ADB from Android SDK?

I know to use BurritoRoot3 I need to download and extract the Android SDK so I can use ADB. Java SDK is listed as a requirement for the Android SDK, but is it necessary to have it to run ADB if I am not going to do app development?
I ask because I downloaded and extracted the Java 7 SDK, but haven't found where I need to drop the folders. While looking for that information, I found default-jdk and openjdk-7 in the Debian repros (packages.debian.org imply they are equivalent, I'm running lmde), but both want to replace Pulse Audio packages, I would as soon not take a chance on messing with my sound if installing Java SDK is not required.

[Q] Problem to start up Android Studio

After Installation of Android Studio I get this error at start up:
Config path C:\Program Files\Android\android-studio\config is invalid
If you have modified the idea.config.path property please make sure it is correct, otherwise please re-install the IDE
Not sure what is wrong here?
I have created a new Env.var to my jdk installation. It doesn't work anyway.
Thanks

Categories

Resources