I'm trying to install the android sdk.
But it keeps saying Java se development kit not installed, I installed it twice.
The next line says "Errror failed to find java version of
c:\Windows\system32\java.exe, well the file is there.
Then it says:
If you believe you have installed the sdk, simply set a environment verbal java)home to point to it,
well I hava java home as
c:\java\jdk1.7.0_05
and it still gives the same error,
how do I get pass this?
Android requires Java 1.5 or 1.6. It will not work properly with 1.7.
So downloand and install the 1.6 JDK and I believe your issue will go away.
Had the same problem before. Press Back and then Next, things will be OK.
It seems like it doesn't work without 32 bit JDK. Just install itfirst.
Related
I am having a problem creating my first Android App.
I installed JDK 7u21.
I downloaded and extracted Android SDK Build: v22.0.0-675183.
I started Eclipse and created a new Android Application Project.
When I click Finish I get the following error:
Errors occurred during the build.
Errors running builder 'Android Resource Manager' on project 'Steve'.
java.lang.NullPointerException
I have search and couldn't find anyone with the same problem.
Did I install something wrong? Is something missing from the SDK? What can I do to correct this error?
In my case I switch from Android SDK 64 bits, to Android SDK 32 bits. Now it's working perfectly.
Have the same problem after updating SDK to 22. For me, it seems to be a backward compatibility fail by Android vs. Eclipse (on my side additional with Maven).
See also: Eclipse Upgrade Not Working
So not your fault. Try f.e. IntelliJ for the moment. There is also a specialised version, called Android Studio but this is not that stable as the original.
The Android guys also deliver a complete package for Eclipse + ADT-Plugin, but not sure, whether this solves the problem.
I've run into the same problem. Every new project, imported or otherwise throws that exception.
It appears to be a bug with Eclipse, and the simplest fix for me was to re-extract the ADT bundle, and replace only the eclipse directory. It'll take forever to download the SDKs if you replace the SDK directory too.
ADT bundle does not work with the Oracle Java 7 SE JDK, failing with an NPE in the Android Application Project wizard.
Installing the Eclipse Plugin
Here's a workaround that lets you keep Java 7 as the default but run ADT with Java 6 when you have both installed. Bring up $ADT_DIR/eclipse/Eclipse.app/Contents/MacOS/eclipse.ini in an editor. Before the -vmargs line, insert these two lines:
-vm
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java
or any place your java is installed, for example on my computer:
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java
Android issue tracker - answer
This works for me:
For those who experience the same problem, here is how i fixed it: After a couple of try and errors, I found out the problem was about creating an activity in the create project wizard. If you simply deselect the create activity button at the 2nd step of the wizard, it creates the project succesfully. Then you can add an activity to your project easily.
Source:
https://code.google.com/p/android/issues/detail?id=68755
I followed the installing instructions like here or anywhere else: http://mobile.tutsplus.com/tutorials/android/android-sdk-installation/
When I want to create a new project with Phonegap it says:
No Android Targets are installed. Please install at least one via the
android SDK
Everything is in the bash_profile, Eclipse installed, SDK installed, Android Devices are set up.
Can anyone help please?
Thank u very much in advance!
The error message pretty much says it all.
In your SDK Manager, you need to download one or more "SDK Platform" entries, depending upon the API level that you are looking to compile against, such as the one I have higlighted below:
If you are getting this error and you've installed Android SDK it is because Phonegap 2.6.0 has incorrect Android instructions, which they will address in the next build of Phonegap.
The way to fix this error is to edit /phonegap2.6.0/lib/android/bin/create and change ANDROID BIN={boilerplate code} to ANDROID BIN=/Users/tim/Development/android-sdk-macosx/tools/android substitute this path with your android-sdk/tools/android directory. Your tools directory alone will not work and will continue to throw an error.
I have problem with compiling workspace fully functional after Update to ADT 2.1 , after some eclipse restarts and cannot find any mention about it anywhere. I am running Mac OS X Mountain Lion and I also tried to use Eclipse installation coming bundled with latest ADT 21. Problem is still repeating. It seems to me as bug.
In Android preferences of Eclipse there is message “No targets available” even thou folder is correctly setup to correct SDK.
So it toke mi almost two hours to find working solution for this bug. I reinstalled everything tried to go back to ADT 20 and then accidentally upgraded tools and again was forced to update ADT to 21 that is failing for me…
Solution is simply to have two correct Android SDK folders and you have to point eclipse to other folder, apply, it loads SDK correctly than you can go back to SDK you actually use and everything works. Well till next restart and yo have to do it again . Thank you Android developers , each new big update , new big bug on osx :)
There is another option (from https://stackoverflow.com/a/14045656/4100), if you did disable the android plugin from running at startup, this will happen. Enabling it should fix the bug.
I recently updated to ADT r17. Ever since then, none of the android tools could see java on my system. I could not launch AVD Manager, SDK Manager, Draw-9patch, anything. The only way I could get an AVD to launch was to compile from eclipse without my phone plugged it. Java is still on my system, everything was working perfectly on r16. I can still go into the command line and type java and javac and everything works.
I uninstalled the sdk (by deleting the folder) and am attempting to reinstall it. The installer doesn't even see java. I tried clicking back and next again. No dice. I have in my system variables:
JAVA_HOME C:\Program Files\Java\jdk1.7.0_03\bin
I just did that one after the first failed attempt to reinstall since that's what is recommended on the installer. Did not help. What was working before was:
...F:\Development\Android\android-sdk\platform-tools;C:\Program Files\Java\jdk1.7.0_03\bin;...
I can confirm that at the end of the filepath, in the bin folder, java.exe and all it's other programs are there. I'm downloading the .zip sdk, but I don't think that's going to help much, since none of the tools seem to see java even when extracted. Edit: I can confirm, simply extracting the .zip did not help.
I'm on a 64bit system. Everything was working with r16. Any ideas? Should I go back to r16?
You can reference here: http://code.google.com/p/android/issues/detail?id=28196
I set JAVA_HOME=d:\jdk1.7\jre\ (which is my JDK's directory) to solve this problem.
For whatever reason, adt r17 decided it did not like 64bit Java, even though r16 was fine with it. Installed 32bit java and added that to my path. Everything is fine now.
I downloaded JDK & Android SDK.
I installed JDK, but when I'm trying to install the Android SDK the installer claims that JDK is not installed.
What can I do?
Edit: OS is Win7 32bit
Hit BACK and then NEXT again and you're able to install the Android SDK.
Doodle asks an important question, I've run into similar problems when I first upgraded to Win7 64 bit, feeling saucy I put 64 bit Java on, only to find that FF 3.x, which was 32 bit couldn't use it, and I also had problems with Eclipse. You can run both 32 and 64 bit JRE's and JDK's side by side with no problem, so that may fix it. Also, make sure that your JAVA_HOME is set correctly, and that the JDK is properly pointed to by Eclipse in the Window>>Preferences>>Java>>Installed JREs. I know it says JREs, but trust me, everything about Eclipse works better when it points to a JDK and runs from a JDK.
YMMV
I had the same problem in windows 7, hitting back and next didn't work for me,
I added JAVA_HOME variable pointing to the jdk folder and added the %JAVA_HOME%\bin to Path environment.