我一直用Eclipse编程Android,并决定开始迁移到Android Studio.我决定使用我已经用于Eclipse的相同SDK,然后:
几秒钟后,Gradle完成构建,并在文件Teste4\app\build\intermediates/explosion-aar\com.android.support\appcompat-v7\23.0.0\res\values中抛出以下消息,从而引发了两个错误-v23 \价值观v23.xml:
错误:(2)检索项目的父项时出错:找不到与给定名称"android:TextAppearance.Material.Widget.Button.Inverse"匹配的资源.
错误:(2)检索项目的父项时出错:找不到与给定名称"android:Widget.Material.Button.Colored"匹配的资源.
在文件 - >项目结构 - >模块:应用程序(左列) - >属性选项卡下,我设置了以下版本:
我该怎么做才能解决这个问题?
我已经尝试过Stack Overflow问题appcompat-v7:21.0.0中的建议:找不到与给定名称匹配的资源:attr'android:actionModeShareDrawable',但它不起作用.
我正在实现ActionBar来使用xml中的这个样式脚本设置文本的颜色但是当我运行我的应用程序时间时收到错误确实有人知道我遗漏了什么
这是我的style.xml文件
<!-- Start with the Holographic Light theme -->
<style name="Theme.IOSched" parent="android:style/Theme.Holo.Light">
<item name="android:windowBackground">@drawable/window_background</item>
<item name="android:actionBarStyle">@style/ActionBar</item>
<!-- custom attributes
<item name="textHeaderMaxLines">@integer/text_header_max_lines</item>
<item name="trackAbstractMaxLines">@integer/track_abstract_max_lines</item>-->
</style>
<style name="Theme.IOSched.Home" parent="style/Theme.IOSched">
<item name="android:windowBackground">@drawable/window_background_home</item>
<item name="android:actionBarStyle">@style/ActionBar</item>
</style>
<style name="ActionBar" parent="android:style/Widget.Holo.Light.ActionBar">
<item name="android:background">@color/actionbar_background</item>
<item name="android:textColor">@color/accent_1</item>
<item name="android:titleTextStyle">@style/ActionBarText</item>
</style>
<style name="ActionBarText" parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title"> <!-- getting here error-->
<item name="android:textColor">@color/accent_1</item>
<item name="android:textStyle">bold</item>
</style>
error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Widget.ActionBar.Title'.
Run Code Online (Sandbox Code Playgroud)