如何修复"coordinatorLayoutStyle" Android Studio启动项目有问题吗? [英] How to fix "coordinatorLayoutStyle" issue with Android Studio starting project?
本文介绍了如何修复"coordinatorLayoutStyle" Android Studio启动项目有问题吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
仅在Windows 10上安装并启动了我的新android项目,我遇到了以下渲染问题:无法在当前主题中找到样式'coordinatorLayoutStyle
'"
Just installed and started my new android project on Windows 10 and i got this render issue: "Failed to find style 'coordinatorLayoutStyle
' in current theme"
已经尝试过:
- 重新安装Android Studio和JDK
- 刷新项目
- 清洁和重建项目
- 安装所有API
- 试图添加"@ style/Widget.Design.CoordinatorLayout"
到
styles.xml
(这会产生更多问题)
- Reinstalling Android Studio and JDK
- Refreshing the project
- Cleaning and rebuilding the project
- Installing all the APIs
- tried adding "@style/Widget.Design.CoordinatorLayout"
to the
styles.xml
(which created even more problems)
还有其他想法吗?
我在使用android时也遇到了这些小问题-
I also have these small problems with android -
1)资源@string/appbar_scrolling_view_behavior
在com.android.support:design
2)缺少样式.是否为此布局选择了正确的主题?
2) Missing styles. Is the correct theme chosen for this layout?
3)无法实例化以下类:
3) The following classes could not be instantiated:
- android.support.design.widget.CoordinatorLayout (Open Class, Show Exception, Clear Cache)
- android.support.design.widget.AppBarLayout (Open Class, Show Exception, Clear Cache)
推荐答案
尝试在您的主要Java代码上方添加以下行:
Try adding this line above your main java code:
import android.support.design.widget.CoordinatorLayout;
这篇关于如何修复"coordinatorLayoutStyle" Android Studio启动项目有问题吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文