我只是想在Android中开始开发.所以,问题是当我尝试通过发出命令模拟器@A2来启动模拟器时,屏幕上会出现一个模拟器.但即使等待长达2-3小时后,所有显示的都是黑屏.甚至没有Android主屏幕或Android徽标.只是一个黑屏.虽然最初"adb devices"将模拟器显示为离线.在2-3分钟后,连接设备列表变为空白.
我在网上搜索并尝试了那里提到的所有步骤,如kill和重新启动adb,在没有空格的目录中安装java/android,但无济于事.
我的Jdk和Android安装在以下文件夹中:
C:\ Java32BitInstallation C:\ AndroidSdkInstallation这是我为它下载/安装的东西列表:
在我的路径变量中,我添加了*C:\ AndroidSdkInstallation\android-sdk\platform-tools \; C:\ AndroidSdkInstallation\android-sdk\tools \; C:\ Java32BitInstallation \; C:\ Java32BitInstallation\bin*
在从net读取某个地方后,我添加了JAVA_HOME变量,其值为C:\ Java32BitInstallation \但仍然没有用.
我的系统上安装了IntelliJ和Eclipse.但是因为启动模拟器,我没有使用其中的任何一个,我不怀疑这些有任何蠢事.
所以,任何人都可以帮我解决这些让我发疯的事情.我正在尝试过去10-12天并且无法启动模拟器,更不用说编写我的第一个"Hello world"程序了.
附加说明:我的系统是Windows 7(64位)计算机.早些时候我已经安装了64位版本的jdk,但问题也出现了.现在,在互联网上搜索后,我卸载了它并安装了32位版本的Java.但是,再没有用.但有一点,这个32位版本的java(jdk 7 update 3),首先安装jre作为jdk安装的一部分,然后安装jre 7.所以现在我有两个文件夹:jre和jre7在C:\ Java32BitInstallation目录中.这可能是我的模拟器没有出现的问题.我是否需要指定aditional environmetal变量或修改现有变量?请帮助.
顺便说一下,我提到logcat什么也没说.
我是android编程的新手.我指的是google开发者网站,以学习android.当我运行应用程序UI时,我遇到了这些错误.
H:\SDK\tools\emulator.exe -avd Nexus_5_API_21_x86 -netspeed full -netdelay none
emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.
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
could not get wglGetExtensionsStringARB
getGLES1ExtensionString: Could not find GLES 1.x config!
Failed to obtain GLES 1.x extensions string!
Could not initialize emulated framebuffer
Run Code Online (Sandbox Code Playgroud)
我正在使用android studio.
android android-virtual-device android-layout android-fragments android-activity
我最近使用sdks管理器安装了android studio及其所有更新.当我尝试启动模拟器时,我可以看到:
模拟器-netdelay none -netspeed full -avd Nexus_5_API_21_x86
HAX正在运行,模拟器以快速virt模式运行
看起来不错.模拟器启动但只有我能看到的是黑屏.我使用应用程序创建的默认AVD.它有google api的x86系统映像,1GB内存,64mb vm堆和200mb intel存储.我试图取消选中"使用主机GPU",但它没有解决问题.
命令我正在运行:
Run Code Online (Sandbox Code Playgroud)C:\Users\bhaishaki\AppData\Local\Android\sdk\tools\emulator.exe -netdelay none -netspeed full -avd Nexus_5_API_22_x86
emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.
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
could not get wglGetExtensionsStringARB
getGLES1ExtensionString: Could not find GLES 1.x config!
Failed to obtain GLES 1.x extensions string!
Could not initialize emulated framebuffer
Run Code Online (Sandbox Code Playgroud)