在编译错误:机器人工作室 [英] Error in Compiling : Android Studio

查看:140
本文介绍了在编译错误:机器人工作室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想修改建的IntelliJ现有的Andr​​oid项目。 我已经搜索并尝试了很多东西,但仍然是我的错误不走:\

I am trying to modify an existing android project built on IntelliJ. I have searched and tried many things but still my error doesn't go :\

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'.

我能做些什么?先谢谢了。

What can I do ? Thanks in advance.

具体而言,误差在theme.xml

Specifically, error is in theme.xml

<?xml version="1.0" encoding="utf-8"?>

<resources>

 <style name="Theme.Bootstrap.Dark" parent="@style/Theme.AppCompat">
    <item name="android:windowBackground">@color/pager_background</item>
    <item name="actionBarStyle">@style/Widget.Styled.ActionBar</item>
    <item name="android:actionBarStyle">@style/Widget.Styled.ActionBar</item>
</style>

<style name="Widget.Styled.ActionBar" parent="@style/Widget.AppCompat.ActionBar.Solid">
    <item name="background">@drawable/actionbar_background</item>
    <item name="android:background">@drawable/actionbar_background</item>
</style>

推荐答案

尝试添加

dependencies { 
compile 'com.android.support:appcompat-v7:20.+' 
}

你的 build.gradle 文件

这篇关于在编译错误:机器人工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆