Android模拟器显示什么,除了黑色的屏幕和亚洲开发银行的设备显示和QUOT;设备离线" [英] Android emulator shows nothing except black screen and adb devices shows "device offline"

查看:171
本文介绍了Android模拟器显示什么,除了黑色的屏幕和亚洲开发银行的设备显示和QUOT;设备离线"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想在Android中开始发展。
那么,问题是,当我尝试通过发出命令模拟器@ A2 以启动一个仿真器,仿真器出现在屏幕上。但是,即使在等待只要2-3小时后,所有这表明是一个黑色的屏幕。就连Android主屏幕或Android标志。只是黑屏。虽然最初ADB设备显示模拟器作为offline.after 2-3分钟连接的设备列表将变为空。

I am just trying to start development in Android. So, the problem is that when I try to launch an emulator by issuing the command emulator @A2 , an emulator comes up on the screen. But even after waiting for as long as 2-3 hrs, all it shows is a black screen. Not even the android home screen or the android logo. Just a black screen. And while initially "adb devices" shows the emulator as offline.after 2-3 minutes the list of attached devices becomes blank.

我找遍了网,并试图提到那里象杀的所有步骤,然后重新启动亚行,在没有空格的目录中安装java / Android的,但无济于事。

I searched all over net and tried all the steps mentioned there like kill and restart adb, install java/android in a directory without spaces, but to no avail.

我的JDK和Android的安装是在以下文件夹:

My Jdk and Android installations are in following folders:

C:\\ Java32BitInstallation
C:\\ AndroidSdkInstallation
 下面是安装了它,我已经下载的东西名单/:

C:\Java32BitInstallation C:\AndroidSdkInstallation Here's the list of stuff I have downloaded/installed for it:


  1. Android SDK工具,修订13

  2. Android SDK中的平台工具,修订10

  3. SDK平台的Andr​​oid 4.0.3,API 15,revsion 1

  4. 的jdk JDK-7U3窗口-i586系统

在我的路径变量,我已经加入*C:\\AndroidSdkInstallation\\android-sdk\\platform-tools\\;C:\\AndroidSdkInstallation\\android-sdk\\tools\\;C:\\Java32BitInstallation\\;C:\\Java32BitInstallation\\bin*

In my path variable, I have added *C:\AndroidSdkInstallation\android-sdk\platform-tools\;C:\AndroidSdkInstallation\android-sdk\tools\;C:\Java32BitInstallation\;C:\Java32BitInstallation\bin*

另外从净我已经加入JAVA_HOME变量,其为C值的地方看完之后:\\ Java32BitInstallation \\但还是没有用。

Also after reading somewhere from net I have added JAVA_HOME variable with its value as C:\Java32BitInstallation\ But still no use.

我都和的IntelliJ安装Eclipse我的系统上。但由于启动模拟器,我没有使用任何这些,我不怀疑任何foulplay这些。

I have both IntelliJ and Eclipse installed on my system. But since for starting the emulator, I am not using any of these, I dont suspect any foulplay with these.

所以,任何人都可以请帮我这个东西,这让我疯了。我想过去的10-12天,并没有能够启动模拟器,更别说写我的第一个Hello World程序。

So, can anyone please help me with this stuff that's driving me crazy. I am trying for past 10-12 days and have not been able to start the emulator, let alone write my first "Hello world" program.

其他注意事项:
我的系统是Windows 7(64位)的机器。早些时候,我已经安装了JDK的64位版本,但问题是present的时间太长。现在searcching互联网上后,我卸载时候和安装了Java的32位版本。但是,又没有用。有一件事,不过,JAVA(JDK 7更新3)这个32位版本,先安装JRE的JDK安装的一部分,然后安装JRE 7。所以现在我有2个文件夹:JRE和jre7在C:\\目录Java32BitInstallation。难道这需要做anthing我的模拟器不转动起来。我是否需要指定aditional的environmetal变量或修改现有的?请帮助。

Additional notes: My system is a windows 7 (64 bit) machine. Earlier I had installed 64 bit version of jdk, but the problem was present that time too. Now after searcching on internet, I uninstalled that and installed 32 bit version of Java. But, again no use. One thing, though, this 32 bit version of java (jdk 7 update 3), first install jre as part of jdk installation and then installs jre 7 . So now I have 2 folders: jre and jre7 in the C:\Java32BitInstallation directory. Could this have to do anthing with my emulator not turning up. Do I need to specify aditional environmetal variables or modify the existing one? Kindly help.

顺便说一句,我提到了logcat中显示什么。

BTW, did I mention the logcat shows nothing.

推荐答案

我曾与最新的Andr​​oid SDK同样的问题。
我只是取消勾选使用主机GPU虚拟设备的设置中,并开始工作了。

I have had the same issue with the latest Android SDK. I simply deactivated the checkbox "Use Host GPU" within the settings of the virtual device and it started working again.

在使用主机GPU不只是我与Android 4.2作为目标。

The "Use Host GPU" does only work for me with Android 4.2 as "Target".

更新2014年2月26日:

有在配置图形加速章从developer.android两个提示。 COM。

There a two hints in the Configuring Graphics Acceleration chapter from developer.android.com.

注意:由于SDK工具的修订17,用于仿真器的图形加速功能是实验;使用此功能时是不兼容和错误的警告。

Caution: As of SDK Tools Revision 17, the graphics acceleration feature for the emulator is experimental; be alert for incompatibilities and errors when using this feature.

启动AVD管理器,然后创建一个新的AVD与Android 4.0.3的目标值(API等级15),V3或更高版本。

Start the AVD Manager and create a new AVD with the Target value of Android 4.0.3 (API Level 15), revision 3 or higher.

因此​​Android 4.0.3(API等级15)似乎是对图形加速的最低要求。

So Android 4.0.3 (API Level 15) seems to be the minimum requirement for graphics acceleration.

这篇关于Android模拟器显示什么,除了黑色的屏幕和亚洲开发银行的设备显示和QUOT;设备离线"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆