Wednesday, September 4, 2013

[android-developers] Re: ActionBarCompat error

It turns out that I needed ids, reserved_ids, and attrs.xml in my res/values folder.  I had inadvertently deleted these.  Now all works!

On Thursday, September 5, 2013 1:20:04 AM UTC-4, igor ganapolsky wrote:
All of a sudden my Android Studio is giving me the following compilation error:
cannot resolve symbol @id/actionbar_compat_title

This is code located in styles.xml:
<style name="ActionBarCompatTitleBase">
        <item name="android:id">@id/actionbar_compat_title</item>
        <!-- layout_width/height/weight must be set in code -->
        <item name="android:gravity">center_vertical</item>
        <item name="android:textSize">18sp</item>
        <item name="android:paddingLeft">6dp</item>
        <item name="android:paddingRight">6dp</item>
        <item name="android:singleLine">true</item>
        <item name="android:ellipsize">marquee</item>
</style>

I think this error is very stupid, and furthermore there is no clear way to avoid it.  How can I fix Android Studio so that it doesn't give stupid errors like this??

Igor

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate