我遇到的是Theme.AppCompat.Light.DarkActionBar,但是总结起来就是缺少依赖库,解决方案如下。
对于Android Studio,使用如下步骤解决:
1. Right click on your app
2. Open Module Settings
3. Select Dependencies tab
4. Click on green + symbol which is on the right side
5. Select Library Dependency
6. Choose appcompat-v7 from list
对于Eclipse,使用如下步骤解决:
1. Right click on your Android project.
2. Select properties.
3. Click ‘add…’ at the bottom to add a library.
4. Select the support library
5. Clean and rebuild your project.