“Unable to get system library for project” after I upgraded to Android SDK 2.3 and ADT 8.0

前端 未结 26 1244
眼角桃花
眼角桃花 2021-01-31 13:25

Today I upgraded to Android SDK 2.3 and I also upgraded the Eclipse Plugin Androi Developer Tools 8.0 (from 0.9.9). I also upgraded my Java Development Kit to 1.6_22.

No

相关标签:
26条回答
  • 2021-01-31 14:05

    The way that helped me.

    1. Take the following file from the working project: workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/Working-project-name/.indexes

    2. Replace the broken project file: workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/Broken-project-name/.indexes

    0 讨论(0)
  • 2021-01-31 14:05

    Had EXACT issue as the original Question! Had not done anything but close my project/Eclipse and was startled by all the errors upon reopening.

    In my case I only needed to do was change/switch workspaces. o_O When I reselected my original workspace I then found everything was resolved and working again!

    0 讨论(0)
  • 2021-01-31 14:08

    This problem was caused for my old projects on a new machine that did not have an older Android SDK installed.

    To fix, simply go into project.properties and observe your old version number:

    # Project target.
    target=Google Inc.:Google APIs:3
    

    Simply update the version number, like so:

    # Project target.
    target=Google Inc.:Google APIs:7
    

    You will find that Eclipse then picks up the right SDK version and starts working.

    0 讨论(0)
  • 2021-01-31 14:08

    No need to create a new project from scratch. If "Fix Project Properties" or "Add Library > Android Classpath Container" does not work, "project.properties" file might be missing in the root of your project folder. Add that file and set the Android target in the Project properties, re-add the Android Library, Fix Project Properties again, Android System Library should now be included in your project. Rebuilt, and you are good to go!

    From my personal experience. For self documenting as well, since this happens quite often on me:

    Eclipse Helios SR2
    Android SDK R.20
    Android NDK R8b
    OSX 10.7.4
    
    0 讨论(0)
  • 2021-01-31 14:09

    In my case, my project.properties had android-8 listed as the target, which I didn't have installed.

    0 讨论(0)
  • 2021-01-31 14:09

    For me, the problem was that in the Project settings - Android tab, I had no Android version selected.

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