问题
I am getting error when I try to run a android application with action bar.
VFY: unable to resolve static field 1538 (ActionBarWindow) in Landroid/support/v7/appcompat/R$styleable;
java.lang.NoClassDefFoundError: android.support.v7.appcompat.R$styleable
Any help or suggestions are appreciated.
回答1:
Are you very sure that u has followed line by line of section Adding libraries with resources of this tutorial?
回答2:
Did you make the activity have the appcompat theme in manifest?
activity android:theme="@style/Theme.AppCompat.Light"
来源:https://stackoverflow.com/questions/21591169/actionbarwindow-unable-to-resolve-static-field