Note that there are some explanatory texts on larger screens.

plurals
  1. POGiving up on support library v7. What did I wrong?
    primarykey
    data
    text
    <p>I need to add the action bar for devices 2.3 and higher.</p> <p>I recently knew about the appcompat v7 support library, which does exactly that.</p> <p>I've followed the <a href="http://developer.android.com/tools/support-library/setup.html" rel="nofollow noreferrer">Support library setup guide</a>, step by step, cleaned, built, and cleaned again, restarted eclipse, upgraded SDK and plugin to the last version (just to realise that <a href="https://stackoverflow.com/questions/19727915/android-dex-gives-a-bufferoverflowexception">SDK build tools v19 are broken</a>, so I had to delete them). Two hours later I'm still unable to build my project. I'm getting these errors:</p> <pre><code> [2013-11-13 00:00:00 - FooProject] D:\foo_project\android-support-v7-appcompat\res\values-v11\themes_base.xml:33: error: Error: No resource found that matches the given name: attr 'android:windowActionBar'. [2013-11-13 00:00:00 - FooProject] D:\foo_project\android-support-v7-appcompat\res\values-v11\themes_base.xml:42: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'. [2013-11-13 00:00:00 - FooProject] D:\foo_project\android-support-v7-appcompat\res\values-v11\themes_base.xml:44: error: Error: No resource found that matches the given name: attr 'android:windowActionBar'. [2013-11-13 00:00:00 - FooProject] D:\foo_project\android-support-v7-appcompat\res\values-v14\themes_base.xml:31: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo'. [2013-11-13 00:00:00 - FooProject] D:\foo_project\android-support-v7-appcompat\res\values-v14\themes_base.xml:41: error: Error: No resource found that matches the given name: attr 'android:actionBarWidgetTheme'. [2013-11-13 00:00:00 - FooProject] D:\foo_project\android-support-v7-appcompat\res\values-v14\themes_base.xml:57: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'. [2013-11-13 00:00:00 - FooProject] D:\foo_project\android-support-v7-appcompat\res\values-v14\themes_base.xml:67: error: Error: No resource found that matches the given name: attr 'android:actionBarWidgetTheme'. [2013-11-13 00:00:00 - FooProject] D:\foo_project\android-support-v7-appcompat\res\values-v14\themes_base.xml:83: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'. [2013-11-13 00:00:00 - FooProject] D:\foo_project\android-support-v7-appcompat\res\values-v14\themes_base.xml:94: error: Error: No resource found that matches the given name: attr 'android:actionBarWidgetTheme'. </code></pre> <p>And I've tried everything in the following questions, to no avail:<br/> <a href="https://stackoverflow.com/questions/18293088/adding-support-libraries-to-android-project">Adding Support Libraries to Android project</a><br/> <a href="https://stackoverflow.com/questions/18563441/after-setting-up-android-support-v7-appcompat-r-java-is-missing">After setting up android-support-v7-appcompat R.java is missing</a><br/> <a href="https://stackoverflow.com/questions/18964902/android-support-library-v7-error-retrieving-parent-for-item">Android Support Library v7: Error retrieving parent for item</a><br/> <a href="https://stackoverflow.com/questions/17870881/cant-find-theme-appcompat-light-for-new-android-actionbar-support">Can&#39;t Find Theme.AppCompat.Light for New Android ActionBar Support</a><br/> <a href="https://stackoverflow.com/questions/18429951/how-to-resolve-the-error-no-resource-found-that-matches-the-given-name-when-ad">How to resolve the error &quot;No resource found that matches the given name&quot; when adding library v7 AppCompat in Eclipse?</a><br/></p> <p>I'm not saying those answers are not valid, just that for some reason they didn't work for me (I think it's because Google hates me).</p> <p>Here are my manifest lines for the target sdk:</p> <p>For the library:<br/></p> <pre><code>&lt;uses-sdk android:minSdkVersion="7"/&gt; </code></pre> <p>and for the main project:</p> <pre><code>&lt;uses-sdk android:targetSdkVersion="19" android:minSdkVersion="8"/&gt; </code></pre> <p>Tried every possible combination, cleaning and building after each change, and still no luck.</p> <p>Looks like this is a problem related to Holo. I really don't need Holo at all, only ActionBar. For now I'm just switching to ActionBarSherlock, which worked well for me in the past. But I'd really like to know what am I doing wrong, why something does not work despite I've spent a considerable ammount of time researching the issue. Why so much pain in integrating a library that should be usable out of the box.</p> <p>Is it possible to get ONLY action bar with the support v7 library?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload