Systemproperties cannot be resolved error

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.