程序员一代码搬运工
【Java学习心得和Java学习技术个人总结】

Missing styles. Is the correct theme chosen for this layout?

今天突然出现下面的提示:

Missing styles. Is the correct theme chosen for this layout?
Use the Theme combo box above the layout to choose a different layout, or fix the theme style references.

Failed to find style 'textViewStyle' in current theme
Failed to find style 'editTextStyle' in current theme
Failed to find style 'buttonStyle' in current theme

 

我找了一会发现,我在application中设定了android:theme=”@style/AppTheme”,又在Activity中设定了android:theme=”@style/LoginStyle” 。所以一个全局一个局部,两个相互冲突。
解决方案:删除一个 theme
后面 我 先把所有需要加载lib加载进去 在添加 就没发现错误了。。
赞(0)
未经允许不得转载:程序员一代码搬运工 » Missing styles. Is the correct theme chosen for this layout?
分享到: 更多 (0)