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?
jar files still are visible in the root of the project, click on the little "down arrow" icon in the top-right corner of the Package Explorer view. In the context menu that appears, one of the items on the menu is "Show 'Referenced Libraries' Node." Click on that menu item. Thx, this helped solving the problem!
After launching Eclipse IDE, right-click on a Java project and select 'Properties' option as shown below: Select 'Java Build Path' from 'Properties for Java Project' dialog as shown below. In 'Java Build Path'->'Libraries' tab, you will see the 'JRE System Library' displayed as shown below.
To get started, open the "Preferences" window in Eclipse. Navigate to "Java » Build Path » User Libraries" on the left-hand side and click the "New" button. Enter the library name and click the "OK" button (leave the "System library" checkbox alone).
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With