Parsing Data for android-21 failed on JDK1.8 - java

Been facing this issue on the out of the box standard android 21 application see attached
I am on 10.9.5 Mac OS X
I am currently on JDK 1.8 see
/usr/libexec/java_home
/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
In eclipse it shows the following:
I have tried switching the JDK versions and also installing/uninstalling eclipse, SDK and SDK tools.
Everything works fine in Android studio but not eclipse. unfortunately I have to get it to work on Eclipse.
Would appreciate any pointers you may have on the issue!

You will need to install JDK version 1.7. Android doesn't support JDK v1.8 yet. You can get the latest JDK v1.7 from here.
Also, when you update your Android SDK, you must also update your Android Development Tools (ADT) for Eclipse at the same time. If you don't, you'll get all sorts of errors.
UPDATE: As of April 27 2015, Mac® OS X® version 10.9.5 and JDK version 1.8 are not yet supported by Android SDK. See here for more info.

Related

Android Studio - Could not determine Java version using executable

I'm using macOS 11.3 and I currently have an Android project with the Android Gradle plugin version 3.2.1 and Gradle version 3.4 that I'm trying to compile with Android Studio 4.2.1. As this version of Android Studio comes with JDK 11 as a runtime, I've tried to change the runtime of the IDE as detailed here and here
but I'm getting the following error:
Could not determine Java version using executable /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java.
The project uses Gradle 3.4 which is incompatible with Java 10 or newer.
See details at https://github.com/gradle/gradle/issues/4503
Possible solution:
Upgrade Gradle wrapper to 4.8.1 version and re-import the project
Upgrading the Gradle version is not an option in my case due to it's a legacy project that is no longer maintained and in the end, I would have some other compilation problems.
What I've tried to do is change the JDK of Android Studio to use JDK 8 as detailed but I'm getting the error "Could not determine Java version using executable /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java."
Does anybody has had the same problem? Can it be related to the path set on the Java_HOME variable?
This seems to be similar to this.
You can uninstall all existing JDK versions including 11 and install Java 8. Then try again after setting version 8 in your Studio as well as in the environment variable (JAVA_HOME path).
Hope that works for you!

What is the latest Java SDK that can be used for Android app development?

I recently bought a new MacBook. I installed the Android SDK and Studio and then I imported my project. AS suggested to use the bundled Open JDK for my project. I accepted and I am able to build and run my project via AS.
The problem is, my command line doesn't work :(
==> ./gradlew clean
No Java runtime present, requesting install.
After running the above code the following alert displays. This web page will be open when I click on the More Info button.
After I searched I realized that I have to have JDK installed on my laptop. I remember -from thousand years ago- that I have to have JDK 8 on my laptop. I also heard that android projects work with JDK 11.
It looks like the latest JDK is 15. So, what should I do? What is the latest JDK that can be used for Android app development?
Anything Java 8 or above is fine.
Find path to JDK in File > Project Structure, Tab SDK Location > JDK Location.
In MacOS, installed Virtual Machines are normally placed in /Library/Java/JavaVirtualMachines/*

Java ME platform SDK 8.2 vs 3.4

I am try to learn Java ME,
So i downloaded and installed the Java ME SDK 8.2 from link,
and when i tried to create a new Mobile Application it did not detect the Emulator Platform,
And when i tried installing the SDK 3.4 version, i got the emulators.
So my question is, why does the 3.4 version contains the emulator, and the 8.2 doesn't? or are they completely different?

Using JDK 7 Or Higher With Android Studio And Eclipse On Mac OSX

Both Android Studio and Eclipse are asking me to install JDK 6 even though JDK 8 is already installed. Several workarounds online told me change the java_home to point the JDK 8 installation location, done that such that both /usr/libexec/java_home and java -version commands refer to the JDK 8 installation but Android Studio and Eclipse still asking me to install JDK 6. Anyone solved this issue.
Android Studio is based on Intellij Idea 13. The solution here also applies. Just modifying Info.plist from 1.6* to 1.7* did it for me.
Btw, I've observed that at least Android Studio 0.5.5 uses massive amounts of memory. With Java 8 it gets over 2GB for very simple projects. With Java 7 it is still bad, but takes around 1.5GB.
Changing SDK Location also works for Android Studio Project

JDK for android app development

Im trying to get started with app development. Isnt this the corrent JDK if i want to use eclipse + android plugin?
Java SE Development Kit 7u5: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1637583.html
When i try to install the android SDK tools it tells me that i dont have the correct JDK installed.
And yes, ive tried this already: Android SDK installation doesn't find JDK
Thanks
Java 7 is not officially supported by the Android SDK at this time. Please use the latest version of the Java 6 JDK.
UPDATE: Java 7 is now supported.

Categories