Theme.AppCompat.Light.DarkActionBar - No resource found
In "android-support-v7-appcompat" project:
- Delete “android-support-v7-appcompat” from Package explorer.
- Import again and check “Copy into workspace”
- In Properties -> Android -> in Project build target, uncheck Android 2.2 and check Android 4.1.2
- In Java build path, uncheck if you have any .jar library, and uncheck the Dependences
In other hand, the project that uses “android-support-v7-appcompat”:
- In Properties -> Android add the library, but uncheck "IsLibrary”.
- In Android -> Project build tarjet check Android 4.0.
- In "Java Build Path" -> Order and Export -> Unchecked the .jar library
- Finally do a “Project -> Clean” both projects
If you are using Gradle, then you have a problem with the latest version of the compatibility library.
If you have the following in your build.gradle
file with a '+'
at the end:
dependencies {
compile 'com.android.support:appcompat-v7:+'
}
then it may be grabbing a later version of the library than you want.
Changing the dependency to:
dependencies {
compile 'com.android.support:appcompat-v7:18.0+'
}
may fix your problem.