【问题标题】:I cannot render anything since i install android studio因为我安装了 android studio,所以我无法渲染任何东西
【发布时间】:2015-08-18 12:30:46
【问题描述】:

我是安卓工作室的新手。我刚刚安装了 android studio,但是当我尝试创建一个新项目时,程序没有向我显示虚拟机。它还向我显示一条消息,指出存在渲染问题。

这是消息。我希望有人可以帮助我。我会很感激的

渲染问题 无法实例化以下类: - 

    android.support.v7.internal.widget.ActionBarOverlayLayout (Open Class, Show Exception, Clear Cache)
     Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE  Exception Details
java.lang.ClassNotFoundException: android.support.v7.appcompat.R$attr

【问题讨论】:

    标签: android class exception layout render


    【解决方案1】:

    来自ERROR :rendering problems The following classes could not be found android.support.v7.internal.widget.ActionBarOverlayLayout

    像这样修复 res/values/styles.xml

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

    根据要求进行详细解释:Theme.AppCompat.Light.DarkActionBar 无论如何都是超类Base 的子类。 Ctrl+click (Android Studio) 你会被带到源代码:

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

    我们没有改变任何东西,只是更精确地定义了它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-06-29
      • 1970-01-01
      • 2019-11-21
      • 1970-01-01
      • 1970-01-01
      • 2022-12-16
      • 2018-09-20
      • 1970-01-01
      相关资源
      最近更新 更多