【问题标题】:The following classes could not be found -android.support.v7找不到以下类 -android.support.v7
【发布时间】:2016-07-14 19:43:16
【问题描述】:

我刚刚安装了android studio,我的xml布局文件刚刚出现以下错误

The following classes could not be found:
-android.support.v7.app.WindowDecorActionBar
-android.support.v7.widget.ActionBarContainer
-android.support.v7.widget.ActionBarContextView
-android.support.v7.widget.ActionBarOverlayLayout
-android.support.v7.widget.ContentFrameLayout
-android.support.v7.widget.Toolbar

如何消除这些错误??

【问题讨论】:

    标签: android-studio-2.1 xml-layout


    【解决方案1】:

    我刚刚找到了问题的解决方案……

    转到 values 文件夹中的 styles.xml 并更改:

    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    

    收件人:

    <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
    

    【讨论】:

    • 但是,应用程序的名称没有显示在操作栏上,我仍然希望它显示。请在此处提供帮助...
    猜你喜欢
    • 2016-03-02
    • 2016-02-17
    • 1970-01-01
    • 2016-10-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多