Tags: Android
When we import an open source project in Eclipse, we often find that a style similar to Theme.AppCompat.Light.DarkActionBar is not found, and the solution is simple: import com.android.support. Appcompat-v7 bag, but two points to note:
You cannot import only Appcompat-v7.jar packages, but import APPCOMPAT-V7 projects
Because this project contains a resource file, only the import jar package has no effect, this project address is in:
... \android-sdk\extras\android\support\v7 under. The following steps are as follows:
Add "AppCompat" times wrong
There was a weird problem today when I clicked on the Add "AppCompat" project and there was this weird situation:
It took a while to find the reason in StackOverflow:
I downloaded the item from GitHub, saved it in C, and then import it into Eclipse, and my Android SDK path was on D drive.
If the Support-library project and your own project are no longer the same disk, there will be the above problem, which should be considered an eclipse bug, it is a pit.
Once you understand the reason, the solution is simple, choose Copy protects into workspace when you import the project, provided your workspace path and the Android SDK project are on the same disk.
Eclipse Import AppCompat Project error