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

后端 未结 10 992
夕颜
夕颜 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 16:46

    OPen SDK Manager --> Uninstall Android L (API 20,L preview),,use this if you want to resolve this error Quickly

    0 讨论(0)
  • 2020-12-23 16:47

    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
    
    0 讨论(0)
  • 2020-12-23 16:53

    Please, note this Android icon in the upper side of the screen

    Android icon

    This icon is in the upper side of this screen:

    Screen which displays the API version to render the code

    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.

    API 19 selected

    0 讨论(0)
  • 2020-12-23 16:53

    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.

    1. First have the JDK fot Java 8 (a.k.a Java 1.8) from: http://www.oracle.com/technetwork/java/javase/downloads/index.html
    2. Install it normally.
    3. Go to the Eclipse Preferences and to Java -> Installed JREs
    4. "Add..." -> Standard VM -> Next and search for the install path (on Mac it will be something like: /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home).
    5. Enter a nice name like "Java JDK 1.8" and Finish
    6. Make sure to mark the new JRE as shown on the imageenter image description here
    7. Restart Eclipse for the changes to take effect.
    0 讨论(0)
  • 2020-12-23 16:55

    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?

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

    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.

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