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
Check your JDK version. It must be JDK1.7. JDK 1.6 does not work.
What I did after updating java was to set the variable system for java again
Advanced System Settings -> Advanced -> Environment variables.
I updated JAVA_HOME with this directory
C:\Program Files\Java\jdk1.7.0_60
Back in eclipse, you can either:
Click Properties -> Android -> Project Build Target
Change android L for android 4.4
If you want to use android L, then change in the manifest minSdkVersion to "L"
This seems to be the issue....the 'Automatically Pick Best', picks the 'L' version of API 20 instead of the 4.x version of API 20. In my instance, I am targeting API 19 and apparently that's not compatible with the choice of "API 20: Android L (Preview)".
Sorry, this system won't let me post images yet...
The problem for that is having different jre versions
I have java 6 and 8
both installed in my system, so I uninstalled java 6 and set path for only java 8.
But remember to restart the system after setting the paths.
Now error is gone while viewing android L Preview