ActionBarWindow “Unable to resolve static field” [closed]

丶灬走出姿态 提交于 2019-12-20 03:16:44

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!