找不到与给定名称匹配的资源(在'theme'处,值为'@ style / Appcompat')

时间:2015-07-01 09:24:44

标签: android android-studio

This is a image of error that I get whenever I built the project. I had Imported the new project and then build the project which gives the error as the Image shown ./

我正在关注教程http://www.truiton.com/2015/02/android-volley-example/。请告诉我项目中此错误的解决方案。

1 个答案:

答案 0 :(得分:0)

android:theme="@style/Theme.AppCompat`

但最好在AppTheme中使用父styles.xml创建样式Theme.AppCompat,因为它会让您更具可自定义性

<style name="AppTheme" parent="Theme.AppCompat">
    <!-- Customize your theme here. -->
</style>

然后在AndroidManifest.xml中

android:theme="@style/AppTheme"