Recently I upgraded Eclipse
along with ADT plugin
s to Android L priew
.
I have the latest Java update as well i.e. Java 8
OPen SDK Manager --> Uninstall Android L (API 20,L preview),,use this if you want to resolve this error Quickly
You may also need to modify eclipse config to run on Java 7 Runtime.
Add this to the beginning of eclipse.ini
-vm
C:/Program Files/Java/jre7/bin
Please, note this Android icon in the upper side of the screen
This icon is in the upper side of this screen:
Probably it's displaying the number 20. This is the selection to use the API 20 to render the window. Change it to 19, or 20W (not 20L). It'll fix the problem.
For anyone having the same issue: You dont need to unistall Java 6. All you need to do is to set it correctly on Eclipse.
You can see the following note in https://developer.android.com/preview/setup-sdk.html
Note: The Eclipse ADT plug-in requires Java 7 if your compilation target is the L developer preview.
Maybe you don't have Java 7 installed?
In my case , my current java version is 1.6.
So i run the command 'update-alternatives --config java' to change the version to java 1.7, then restart the Eclipse, the problem is fixed.
Note: I installed muti-java version(Java 1.6 and java 1.7)
Hope help to you.