ActionBarWindow “Unable to resolve static field” [

2019-02-25 20:04发布

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.

2条回答
孤傲高冷的网名
2楼-- · 2019-02-25 20:45

Did you make the activity have the appcompat theme in manifest?

activity android:theme="@style/Theme.AppCompat.Light"
查看更多
不美不萌又怎样
3楼-- · 2019-02-25 21:05

Are you very sure that u has followed line by line of section Adding libraries with resources of this tutorial?

查看更多
登录 后发表回答