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

后端 未结 10 1030
夕颜
夕颜 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: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.

提交回复
热议问题