Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't Find Theme.AppCompat.Light for New Android ActionBar Support
    primarykey
    data
    text
    <p>I am trying to implement the new <a href="http://developer.android.com/guide/topics/ui/actionbar.html" rel="noreferrer">ActionBar</a> support library that was released by Google a couple days ago. In the past, I have successfully implemented ActionBarSherlock without any issues using the same method listed on Google Developer's <a href="http://developer.android.com/tools/support-library/setup.html" rel="noreferrer">Support Library Setup</a> page - using the guide on how to include the resources (which is similar to how ActionBarSherlock did it). I have the library project loaded in to my own project as a library as well.</p> <p>I can tell the library is loading fine. When, instead of extending Activity on my MainActivity.java, I changed it to extend ActionBarActivity (as per Google's instructions), no errors occur - and it imports correctly.</p> <p>I even tried bypassing the style.xml file and adding <code>@style/Theme.AppCompat.Light</code> directly in to the AndroidManifest.xml for both <code>&lt;application&gt;</code> and <code>&lt;activity&gt;</code> with <code>android:theme="@style/ThemeAppCompat.Light"</code> with all attempts resulting in the same error.</p> <p>Now the issue is I cannot get it to change the theme, let alone even build without throwing an error. Below is the error I am receiving, followed by the style.xml file I changed to use the new theme.</p> <p>I have moderate experience working with Android apps and am running Eclipse with the latest version of the Support Libraries and SDK compiling with API 18 (Android 4.3).</p> <p><strong>Error Received During Build</strong></p> <blockquote> <p>error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.Light'. styles.xml /ActBarTest/res/values line 3 Android AAPT Problem</p> </blockquote> <p><strong>style.xml</strong></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;resources&gt; &lt;style name="Theme.ProsoftStudio.ACTest" parent="@style/Theme.AppCompat.Light"&gt; &lt;/style&gt; &lt;/resources&gt; </code></pre> <p>Any suggestions? This was never an issue with ActionBarSherlock. I want to work on using this new support library. It almost seems like the .jar is loading, but not the resources.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    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