尝试扩展ActionBarActivity时,我需要使用AppCompat主题(Theme.AppCompat.Light)。当我尝试在清单和styles.xml中添加它时,会出现错误:
“Error:(31, 28) No resource found that matches the given name (at 'theme' with value '@android:style/Theme.AppCompat.Light')。”
尽管我已经下载了支持库并将其包含在我的build.gradle文件中。
“Error:(31, 28) No resource found that matches the given name (at 'theme' with value '@android:style/Theme.AppCompat.Light')。”
尽管我已经下载了支持库并将其包含在我的build.gradle文件中。
dependencies {
compile 'com.android.support:appcompat-v7:19.0.+'
compile 'com.android.support:support-v4:19.0.+'}