编译时出错:Android Studio
我正在尝试修改基于IntelliJ的现有android项目。 我已经搜索并尝试了很多东西,但仍然我的错误没有去:
Error:(5, -1) android-apt-compiler: [main] D:\android\tinynote\app\src\main\res\values\theme.xml:5: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat'.
我能做什么 ? 提前致谢。
具体来说,错误在theme.xml中
@color/pager_background @style/Widget.Styled.ActionBar @style/Widget.Styled.ActionBar @drawable/actionbar_background @drawable/actionbar_background
尝试添加
dependencies { compile 'com.android.support:appcompat-v7:20.+' }
到您的build.gradle
文件