Open a project alone with Eclipse, Systemproperties.get () appears systemproperties cannot be resolved. Error
1. Reference Systemproperties.get () will appear systemproperties cannot be resolved.
Workaround:
In the current project properties, Java Build Path, Libraries
Click Add External JARs ... button, select the Layoutlib.jar file, and then add the import android.os.SystemProperties in the project source file;
The Layoutlib.jar file is located in the Android Sdk/platforms/android-*.*/data directory.
The Layoutlib.jar project was imported from an external eclipse, and as soon as it was compiled, an error was given: Conversion to Dalvik the format failed:unable to execute Dex:null, and Eclipse became Card, several times have been hung off.
Solve
1: Set Memory
Eclipse.exe Shortcut--Right-click/Properties fill in the target with the following content
"D:/eclipse/eclipse.exe"-vmargs-xms128m-xmx512m-xx:permsize=64m-xx:maxpermsize=128m
The installation path for eclipse within double quotation marks.
If 1 does not work:
The library should be imported in the form of a user library, with the following steps:
1. Right-click the project in Eclipse and select "Build Path, Add Libraries ...".
2. Select User Library from the list and click Next.
3. Click the "User Libraries ..." button.
4. Click "New ..." in the User Libraries dialog.
5. Give the user library a name and select the System Library checkbox and click OK.
6. Highlight the newly added user library in the list and click the "Add JARs ..." button and Add the desired jar files.
7. Click OK on the User Libraries dialog.
8. Make sure the new user library was checked in the Add Library dialog and
I'm going to use my own project. Compile OK.
If you still have a red fork, choose Java Build Path--order and export put your imported package in front of the Android package
Systemproperties cannot be resolved error