Android Eclipse import COM.ANDROID.INTERNAL.R and Layoutlib.jar error resolution

Source: Internet
Author: User

Import a project today, found that the operation cannot, the Red fork represents COM.ANDROID.INTERNAL.R. A series of references failed.

Check it out, these are all in one SDK comes with package Layoutlib.jar. SDK Path \PLATFORMS\API version \data there is Layoutlib.jar

Throw these directly into the Libs folder, and the Red Fork disappears, running and error:Conversion to Dalvik format failed with error 1


Surf the internet, probably means that the resource in the package and project resource reference conflict, so continue to check.


Sure enough, the should be imported into the library as a user library, 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 click Finish.


Follow the above steps, I name the library layoutlib, then run, or error.

Carefully looked under the project library jar package support, found that their layoutlib and system of Android Private libraries are referenced Layoutlib.jar


Take the Layoutlib.jar out of the Libs and put it in the application root directory and point the Layoutlib library to the new path.

Run, Success!



Android Eclipse import COM.ANDROID.INTERNAL.R and Layoutlib.jar error resolution

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.