创建的Android虚拟设备未显示

创建的Android虚拟设备未显示,android,android-layout,android-studio,avd,Android,Android Layout,Android Studio,Avd,我在Android Studio中创建了一个AVD,但当我转到layout->activity\u main.xml时,它没有显示出来。错误消息如下所示 Failed to create Context 0x3005 could not get wglGetExtensionsStringARB emulator: WARNING: Could not initialize OpenglES emulation, using software renderer. could not get wg

我在Android Studio中创建了一个AVD,但当我转到layout->
activity\u main.xml
时,它没有显示出来。错误消息如下所示

Failed to create Context 0x3005
could not get wglGetExtensionsStringARB
emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
could not get wglGetExtensionsStringARB
emulator: emulator window was out of view and was recentered
Could not initialize emulated framebuffer
activity\u main.xml
下有两个文件:
activity\u main.xml
activity\u main.xml
(land)。在右侧的组件树和属性空间下,它显示“无需显示”

当我尝试渲染它时,它会显示以下错误消息:

渲染期间引发的渲染问题异常:操作\u栏

xml文件如下所示:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"    
    android:layout_width="match_parent"
    android:layout_height="match_parent" 
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingBottom="@dimen/activity_vertical_margin"    
    tools:context=".MainActivity">

    <TextView android:text="@string/hello_world"      
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" />

</RelativeLayout>


有什么想法吗?

哦,我想出来了。我将IDE中的布局从最佳选择转换为显示框上方AppTheme和MainActivity旁边的version21时,将Android版本更改为User


在最近的一次更新之后,Android Studio似乎出现了问题。这个答案对我来说很有用:只要把它改成“API21:Android5.0.1”,渲染就可以了。此外,您还可以将其切换回“API22:Android5.1”,原来的问题突然消失了。