I was working on an android tutorial and it wanted me to import the library from another project .The import worked and the project works correctly. But I noticed that doing that messed up several of my other projects (the ones that use Android 2.1) by apparently messing with the build path. Now instead of seeing "Google APIs [Android 2.1]" under the gen
folder I see "Unable to get system library for project"
.
I verified the following:
I right-clicked the project and went to Properties
I see that the correct Project Build Target is checked(Google APIs [Android 2.1]), but "Unable to get system library for project" is still shown above the assets folder and below gen and Android Dependencies. Cleaning all projects doesn't help.
How can I fix this problem? is there a way to fix this issue globally or do I have to do it one by one?
I had the same problem. Try
Worked for me, anyway.
Derived the solution from: "Unable to get system library for project" after I upgraded to Android SDK 2.3 and ADT 8.0
Borrowing from @Erhannis answer :
When I view the build target everything looked fine :
So I checked another build target , hit apply, and then re checked my original build target (Android 4.4.2) and re-hit apply. My project then compiled.
Right Click on Project-> Select Android tools -> Select Fix Project Properties
This did the trick for me.