Failed to get system library for project on eclipse ide

enter image description here I was working on an Android tutorial and wanted me to import the library from another project. Import worked, and the project worked correctly. But I noticed that it messed up some of my other projects (those using Android 2.1), apparently messing around with the building method. Now instead of seeing the “Google API [Android 2.1]” in the gen folder, I see "Unable to get system library for project" .

I checked the following:

I right-clicked the project and went to Properties . I see that the correct build target of the project (Google API [Android 2.1]) has been verified, but "Unable to get the system library for the project" still appears above the assets folder and below gen and Android Dependencies. Clearing all projects does not help.

How can I fix this problem? is there any way to solve this problem all over the world or do i need to do it one by one?

+42
android eclipse android-intent
Aug 27 '12 at 12:21
source share
9 answers

I had the same problem. Try

  • Right click on your project
  • Go to properties
  • Select Android
  • Choose another destination api (if one of them has already been selected, as mine was - otherwise select the one you want and go to step 9)
  • Click OK
  • Repeat steps 1-3 again
  • Choose source target api
  • Click OK
  • Clean and create your project

Worked for me, anyway.

The solution was received from: "Unable to get the system library for the project" after I upgraded to Android SDK 2.3 and ADT 8.0

+138
Sep 27 2018-12-12T00:
source share

Error in .classpath in your project. It does not connect to android sdk. Fix and clean the project. :-)

+2
Mar 21 '13 at 2:31 on
source share

This happens when you target an API version that for some reason does not appear in your layout path.

  • See which version of the SDK you are specifying in the project.properties file.
  • Go to SDK manager in window-> Android SDK Manager
  • Check the Android API element that corresponds to the version you want to use, or click on the latest and then update the project.properties file.
  • Make sure your project build is Project → "Build Automatically".
  • Retsart Eclipse (claning and rebuilding cannot update all project properties)
+1
Apr 05 '14 at 20:01
source share

Borrowing from @Erhannis answer:

 " Right click on your project Go to properties Click the Android section " 

When I look at the build target, everything looks great:

enter image description here

So, I checked another build target, applied it, and then reinstalled the original build target (Android 4.4.2) and applied it again. My project is then compiled.

+1
May 17 '14 at 13:24
source share

The project.properties file was missing for me (it was the code from the repo I checked). So I just created this line:

 target=android-20 

After that, Erhannis solution worked for me.

+1
Aug 21 '14 at 17:32
source share

Just to complete Erhannis answer: if you fixed the problem, but it appears again when you restart Eclipse, just go to the local.properties file in the workspace folder and make sure that the Android SDK location is correct.

+1
Nov 14 '14 at 8:35
source share

Sometimes, when only one version of the Android SDK is installed on your system, and if it is changed either by installing / reinstalling Eclipse or otherwise (directly through the SDK Manager), then this problem may occur. This is followed by a message like this on the Eclipse console:

 YourApp] Unable to resolve target 'android-22' 

. A simple solution to this problem is:

  • Open the AndroidManifests.xml project and in
 <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="21" /> 

change targetSdkVersion to the one installed on your system

  1. Then open the project.properties file and update it

    target = android-21

    to your current SDK version
    1. Finally, clean and rebuild the project
+1
Jun 07 '15 at 9:06
source share

Right-click Project-> Select Android Tools → Select Fix Project Properties

It helped me.

+1
Jul 27 '15 at 11:27
source share

You need to click on the menu icon with Android sitting in a gray rectangle with a white arrow pointing down “Opens Android SDK Manager”.

Opens the Android SDK Manager

or, from the command line, run:

 %ANDROID_HOME%\tools\android sdk 
0
Aug 27 '12 at 12:32
source share



All Articles