Appcompat V7和ActionBarActivityAppcompat、ActionBarActivity

由网友(Journey(旅程))分享简介:我下面这教程制作和使用的2.3.x设备的操作栏中的应用程序。但我不能appcompat-V7导入到我的projecto ...它给了我很多类似这些错误的:I'm following this tutorial to make and app with action bar for 2.3.x devices. But...

我下面这教程制作和使用的2.3.x设备的操作栏中的应用程序。但我不能appcompat-V7导入到我的projecto ...它给了我很多类似这些错误的:

I'm following this tutorial to make and app with action bar for 2.3.x devices. But i cannot import appcompat-v7 to my projecto... It gives me lots of errors like these:

[2014-11-06 14:19:23 - AcordeNoPonto] C:Workspaceappcompat_v7resvalues-v21themes_base.xml:194: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
[2014-11-06 14:19:23 - AcordeNoPonto] C:Workspaceappcompat_v7resvalues-v21themes_base.xml:195: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
[2014-11-06 14:19:23 - AcordeNoPonto] C:Workspaceappcompat_v7resvalues-v21themes_base.xml:193: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
[2014-11-06 14:19:23 - AcordeNoPonto] C:Workspaceappcompat_v7resvalues-v21themes_base.xml:190: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
[2014-11-06 14:19:23 - AcordeNoPonto] C:Workspaceappcompat_v7resvalues-v21themes_base.xml:191: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
[2014-11-06 14:19:23 - AcordeNoPonto] C:Workspaceappcompat_v7resvalues-large-v14themes_base.xml:19: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Base.AppCompat.DialogWhenLarge.Base'.
[2014-11-06 14:19:23 - AcordeNoPonto] C:Workspaceappcompat_v7resvalues-large-v14themes_base.xml:22: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Base.AppCompat.Light.DialogWhenLarge.Base'.

所以我不能导入我的应用程序的主题,我的操作栏不显示...

So i cannot import my app theme and my action bar is not shown...

推荐答案

在project.properties为您的项目 Android的支持-V7-appcompat 确保目标值如下。 项目的目标。

In project.properties for Your project android-support-v7-appcompat Make sure target value as follow. Project target.

target=android-21
android.library=true

一旦你完成清理项目。我希望这个作品。

once you done Clean your Project. I hope this works.

阅读全文

相关推荐

最新文章