2015-06-04 64 views
-1

我是android studio新手。我刚刚安装了android studio,但是当我尝试创建一个新的工程时,该程序没有向我显示虚拟机。它也向我显示一条消息,指出存在渲染问题。我无法渲染任何东西,因为我安装了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 

回答

-1

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

修复RES /值/ styles.xml像这样:

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

详细解释的要求:Theme.AppCompat.Light.DarkActionBar是超类Base的子类反正。 Ctrl +单击(Android Studio中)就可以了,你会被带到来源:

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

我们没有改变任何东西,我们只是将它定义更准确。

相关问题