The project target (Android L (Preview)) was not properly loaded

后端 未结 10 993
夕颜
夕颜 2020-12-23 16:26

Recently I upgraded Eclipse along with ADT plugins to Android L priew.

I have the latest Java update as well i.e. Java 8

相关标签:
10条回答
  • 2020-12-23 17:09

    Check your JDK version. It must be JDK1.7. JDK 1.6 does not work.

    0 讨论(0)
  • 2020-12-23 17:09

    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"

    0 讨论(0)
  • 2020-12-23 17:12

    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...

    0 讨论(0)
  • 2020-12-23 17:12

    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

    0 讨论(0)
提交回复
热议问题