When eclipse imports an appcompat project, the following error occurs: eclipseappcompat.

Source: Internet
Author: User

When eclipse imports an appcompat project, the following error occurs: eclipseappcompat.

After importing open-source projects in eclipse, we often find Theme-like. appCompat. light. the style of DarkActionBar is easy to solve, that is, to import com. android. support: appcompat-v7 package, but two more notes:

Instead of importing only the appcompat-v7.jar package, you must import the appcompat-v7 Project

Because this project contains resource files, only importing jar packages does not work. The project address is:
... \ Android-sdk \ extras \ android \ support \ v7. The procedure is as follows:

  • File-> Import (android-sdk \ extras \ android \ support \ v7) and select "appcompat"

  • Right-click your project> properties> Android. Click "Add" to Add the "appCompat" project.

  • That's simple.

An error is reported when "appCompat" is added.

Today, a strange problem occurs. When I click "appCompat" to add the project, the following strange situation occurs:

I found the cause in stackoverflow for a few days:

During the project, I downloaded it from github, saved it to drive C, and imported it to eclipse. My android sdk path is in drive D.

If the support-library project and your project are no longer the same disk, the above problem will occur. This should be an eclipse bug, which is really a pitfall.

After understanding the cause, the solution is simple. When importing the project, select copy protects into workspace, provided that your workspace path and android sdk project are on the same disk.

Related Article

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.