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:
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.