已创建 Android 个虚拟设备未显示
Created Android virtual device not showing
我在 Android Studio 中创建了一个 AVD,但是当我转到布局->activity_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_main.xml
下有两个文件:activity_main.xml
和activity_main.xml
(land)。在右侧的组件树和属性 space 下显示 "nothing to show".
当我尝试渲染它时,它显示此错误消息:
呈现问题在呈现过程中出现异常:action_bar
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 中的布局从最佳选择更改为版本 21 时,我将 Android 版本更改为用户,该版本位于显示框上方的 AppTheme 和 MainActivity 旁边.
我在 Android Studio 中创建了一个 AVD,但是当我转到布局->activity_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_main.xml
下有两个文件:activity_main.xml
和activity_main.xml
(land)。在右侧的组件树和属性 space 下显示 "nothing to show".
当我尝试渲染它时,它显示此错误消息:
呈现问题在呈现过程中出现异常:action_bar
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 中的布局从最佳选择更改为版本 21 时,我将 Android 版本更改为用户,该版本位于显示框上方的 AppTheme 和 MainActivity 旁边.