Wednesday, 15 April 2015

android - Appcompat v7 and ActionBarActivity -



android - Appcompat v7 and ActionBarActivity -

i'm next this tutorial create , app action bar 2.3.x devices. cannot import appcompat-v7 projecto... gives me lots of errors these:

[2014-11-06 14:19:23 - acordenoponto] c:\workspace\appcompat_v7\res\values-v21\themes_base.xml:194: error: error: no resource found matches given name: attr 'android:colorcontrolactivated'. [2014-11-06 14:19:23 - acordenoponto] c:\workspace\appcompat_v7\res\values-v21\themes_base.xml:195: error: error: no resource found matches given name: attr 'android:colorcontrolhighlight'. [2014-11-06 14:19:23 - acordenoponto] c:\workspace\appcompat_v7\res\values-v21\themes_base.xml:193: error: error: no resource found matches given name: attr 'android:colorcontrolnormal'. [2014-11-06 14:19:23 - acordenoponto] c:\workspace\appcompat_v7\res\values-v21\themes_base.xml:190: error: error: no resource found matches given name: attr 'android:colorprimary'. [2014-11-06 14:19:23 - acordenoponto] c:\workspace\appcompat_v7\res\values-v21\themes_base.xml:191: error: error: no resource found matches given name: attr 'android:colorprimarydark'. [2014-11-06 14:19:23 - acordenoponto] c:\workspace\appcompat_v7\res\values-large-v14\themes_base.xml:19: error: error retrieving parent item: no resource found matches given name 'theme.base.appcompat.dialogwhenlarge.base'. [2014-11-06 14:19:23 - acordenoponto] c:\workspace\appcompat_v7\res\values-large-v14\themes_base.xml:22: error: error retrieving parent item: no resource found matches given name 'theme.base.appcompat.light.dialogwhenlarge.base'.

so cannot import app theme , action bar not shown...

in project.properties project android-support-v7-appcompat create sure target value follow. project target.

target=android-21 android.library=true

once done clean project. hope works.

android android-actionbar android-support-library appcompat

No comments:

Post a Comment