I downloaded the ADT bundle for windows in the android developers website. I'm expecting that once I extracted them on my C: it will just run smoothly. Unfortunately, I'm getting this error
Any ideas on what's causing this? Already downloaded java from oracle website. C:\Program Files\Java\jdk1.7.0_25.
Edit:
For those asking the version of my OS. Here it is.
So I'm sure I downloaded the right version of the ADT.
It seems like you have downloaded wrong version of Adt. Are you sure that it is suitable for your pc? Is your computer 64-bit?
Check if it's the 32-bit or 64-bit version. If that doesn't work, re-install java. The jvm.cfg file is an internal file and should not really be touched, but it seems Google might have a custom one for the emulator or something. If that still doesn't work, open SDK Manager and install everything they have. Otherwise I dunno.
I don't know what is the real problem but I uninstall JRE and install again ..Now its perfectly working .
Related
I run the windows 10 64 bit version of Eclipse. The first time I log onto Eclipse it works just fine (though I haven't fun any code yet, so I'm not sure if that works) but upon closing and reopening Eclipse it says, "Version 1.8.0_301 of the JVM is not suitable for this product: version 11 or greater is required." and immediately quits. I have downloaded jdk 16 and installed it. Redownloading Eclipse fixes it until I close it again. How can I fix this? I am a new Java programmer and am not experienced with any of this.
You should have a folder like ths: C:\Program Files\Java. In there, there should be a folder named 1.8.0_301. Delete this folder and reinstall java.
I had the same problem, this solved it for me...
First of all I suggest you check the version of your eclispe IDE. You may have downloaded a version that doesn't supprot your installed jdk.
This link should provide you with the suitable jdk version for every eclipse version.
https://wiki.eclipse.org/Eclipse/Installation.
I hope I helped you a bit.
Cheers!
I had this problem with Java version 1.8.0_351.
In the program management settings of Windows I removed Java 8. After that, my Eclipse installation worked fine.
I use Linux Mint 17 "Qiana" and I've downloaded and installed IntelliJ IDEA to learn Java. Now, while trying to set up JDK for a new project, I get an error The selected directory is not a valid home for JDK. The path to JDK I try to use is /usr/lib/jvm/java-7-openjdk-i386. I also tried to use /usr/lib/jvm/java-8-oracle/bin but it does not work as well. Is there any way to fix it without some magic or shamanry?
P.S. When I try to set a new Android project (what is the purpose of my Java studies) up, it doesn't see my Android SDK as well.
P.P.S. When I first faced this problem, I installed IDEA as a common user. So I removed it and re-installed using root privileges but that didn't work. :(
I haven't tried this yet but I'm pretty sure it should be /usr/bin/java/ location.
Try /usr/local/java.
https://askubuntu.com/questions/130186/what-is-the-rationale-for-the-usr-directory
I understand it is Ubuntu but it's worth a try
I'm using Eclipse to program Android applications, and when I opened the program yesterday, it popped up an error saying I need to install JRE - I've downloaded the JRE and installed it - when during the installation I got a message saying that the JAVA version I have on the computer (Version 7) is too old for the JRE (Version 8), and that I need to update the JAVA also.
I did so, and then opened up the Eclipse again - And all of the projects,that before worked great, are now full with errors.
I tried installing all of the SDK updates - didn't work, also tried uninstalling Eclipse and re-install it - also didn't work.
The errors I get are: "XXX cannot be resolved to a type" - in amost every single line in the project.
How do I fix it??
Thank you!!
android development tool(adt) are install.. and all update SDK and then import an old program.. Ithink then work.
I would suggest to check that your java build path is functioning properly. This kind of error for me usually means that eclipse cannot find the JRE installation.
Form eclipse you can go to Project->Properties and check for any errors there. Any inconsistency there would cause all your projects to fail.
First of all, you need the JDK installation, not JRE. Second, Android currently supports up to Java v7, which means you'll need to get JDK v7 from here. Make sure you download the correct 32-bit or 64-bit JDK version for your operating system.
Also, ensure your Android SDK and Android Development Tools (ADT) are on the same released version. Different versions of Android SDK and ADT can lead to many unforseen problems.
I just bought new laptop and I have problems with running android studio. I have read over 20+ questions/answers about this but exact problem but with me it's not working. The problem: After installing the studio (successfully), when I try to run it it sais: No JVM installation found. Please install 64-bit JDK. Note that I have already installed JDK, specified JAVA_HOME, and JDK_HOME as a variable (100%) that the path is correct ("C:\Program Files (x86)\Java\jdk1.7.0_25"). I have also java installed. I have tried reinstalling the studio, reinstalling java and almost everything that I could find on google, but nothing works. Eqlipse, works just fine though. It is not my first time trying to install Android Studio, but I can't figure this one out. I have read from here: Click and here Click mostly, and from a lot more like threads like this, but I cant solve my problem. Any ideas?
What you have installed seems to be 32 bit version as it is getting Installed in "Program Files (x86)",Download and install 64bit JDK and that should automatically get installed in "Program Files" folder and not in "Program Files (x86)".
Download 64bit installer of JDK
This might solve the problem.
I am running CentOS 5.5 x86_64 with JDK 1.6, Eclipse Galileo, and the 0.9.7 ADT is installed; however, after installation, the Android project type is not available. I have checked in the installed packages list and it is installed. Anybody encounter this problem before? Could it be due to my use of the 64-bit java VM that is installed on my system?
This usually happens when you dont select any android SDK in "Preferences > Android" You just have to reset the perspective in eclipse, Windows > Reset Perspective.
Hope this is still helpful.
Hope you have already set the Android Preferences if not Window -> Preferences-> Android and browse to the android SDK folder.
In rare cases even after doing this step, Android Project option doesn't show up in File -> New. But you can get it by File -> New -> Project .. and choose the android project from the options displayed.
Ok. I reinstalled eclipse and android. I think the problem was that I hadn't unpacked the android tools first. The plugin was installed, but it had nothing to talk to! Anyway, all the android related stuff now shows up in Eclipse.
Using Windows 7, 64-bit edition, with the latest Eclipse (Indigo) and the latest ADT plugin, I had the exact same problem. No Android project type, no Android in Windows/Preferences.
Like #Rubberman I solved the problem by totally re-installing Eclipse. Eclipse doesn't seem to use the standard Add/Remove Program stuff in Windows; I just deleted the Eclipse install directories and my Eclipse workspace directory, re-installed Eclipse, and re-installed the ADT plugin.
I would have liked to have just removed the plugin and re-installed without deleting the whole of my Eclipse install, but I couldn't figure out a way to do that. I don't see any way to remove a plugin, and when I tried to choose ADT for installation Eclipse gave me an error, saying "I can't install that because it is already installed."
I Know its a very old post..but still it may help someone with same problem...
I wanted to jst share that we can uninstall the plugins without the need of reinstalling eclipps..by simply going to 'already installed application' link and selecting all the android related options and simply clicking on uninstall button..Now you can add fresh android sdk to your ecllips..I have tried it and it works..
Hope, I helped aomeone..:-)
Ok, been looking for the answer to this for an hour, it's not well mentioned.
if you are using linux then you need to add 2 more things to install ADT correctly:
GEF from http://download.eclipse.org/tools/gef/updates/releases
WST Server Adapters from http://download.eclipse.org/releases/galileo/ (modify for your release)
do it the same as the adt plugin install.
maybe you need to uninstall then reinstall the adt plugin after?
sources:
ubuntuforums.org/showthread.php?t=1595684
sonalsantan.blogspot.com/2010/10/eclipse-adt-plugin-on-ubuntu-1010-after.html
You have to install the Eclipse plugin called ADT.