Android模拟器只显示黑屏,adb设备显示“设备脱机”

时间:2021-09-14 18:53:59

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.

我正在尝试Android的开发。问题是,当我试图通过发出命令模拟器@A2来启动模拟器时,模拟器出现在屏幕上。但即使等了2-3个小时,屏幕上还是一片黑屏。甚至连安卓主屏和安卓标识都没有。只是一个黑色的屏幕。虽然最初的“adb设备”显示模拟器为脱机。2-3分钟后,附加设备列表变为空。

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.

我在网上搜索了一遍,尝试了上面提到的所有步骤,比如关闭和重启adb,在一个没有空格的目录中安装java/android,但是没有任何效果。

My Jdk and Android installations are in following folders:

我的Jdk和Android安装在以下文件夹中:

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

C:\Java32BitInstallation C:\AndroidSdkInstallation这是我下载/安装的列表:

  1. Android SDK Tools, revision 13
  2. Android SDK工具,第13版
  3. Android SDK platforms tools, revision 10
  4. Android SDK平台工具,修订版10
  5. SDK platform Android 4.0.3, API 15, revsion 1
  6. SDK平台Android 4.0.3 API 15 revsion 1
  7. Jdk jdk-7u3-windows-i586
  8. Jdk jdk-7u3-windows-i586

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

在我的path变量中,我添加了*C:\AndroidSdkInstallation\android-sdk\平台工具

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

同样,在从net中读取内容之后,我添加了JAVA_HOME变量,其值为C:\Java32BitInstallation\,但仍然没有用。

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.

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

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.

所以,谁能帮我解决这个让我发疯的问题吗?我已经试了10-12天,还没能启动模拟器,更不用说编写我的第一个“Hello world”程序了。

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.

附加说明:我的系统是一个windows 7(64位)机器。之前我安装了64位版本的jdk,但是当时问题也出现了。现在在internet上搜索之后,我卸载了它并安装了32位版本的Java。但是没有使用。但是,有一件事,这个32位版本的java (jdk 7 update 3),首先将jre作为jdk安装的一部分安装,然后安装jre 7。现在我在C:\Java32BitInstallation目录中有两个文件夹:jre和jre7。这会不会对我的模拟器造成影响呢?我需要指定传统的环境变量还是修改现有的环境变量?请帮助。

BTW, did I mention the logcat shows nothing.

顺便问一下,我说过logcat什么都没有。

18 个解决方案

#1


127  

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.

我对最新的Android SDK也有同样的问题。我只是在虚拟设备的设置中禁用了“使用主机GPU”复选框,然后它又开始工作了。

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

“使用主机GPU”只适用于我,Android 4.2作为“目标”。

Update 26.02.2014:

更新26.02.2014:

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

在developer.android.com的配置图形加速章节中有两个提示。

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.

注意:对于SDK工具修订17,仿真器的图形加速特性是实验性的;在使用此特性时,请注意不兼容和错误。

and

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.

启动AVD管理器并创建一个新的AVD,目标值为Android 4.0.3 (API级别15),修订3或更高。

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

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

#2


83  

I had issues with getting the larger devices to emulate (Nexus7 and 10), while the phone sized emulators worked great. Would just keep getting a black screen with nothing for hours with the tablets. What helped was actually the OPPOSITE of what most people here are recommending: after setting the tick box for 'Use Host GPU' and setting the target to the highest android (4.4.2 at the time of this writing) the 7 and 10 work as expected!

我在让更大的设备进行仿真(Nexus7和10)时遇到了问题,而电话大小的仿真器工作得很好。在平板电脑的帮助下,你可以连续几个小时不需要任何东西就能得到一个黑屏。真正起作用的是与这里大多数人推荐的相反的东西:在设置“使用主机GPU”的复选框并将目标设置为最高的android(本文撰写时为4.4.2)之后,7和10将按照预期工作!

#3


21  

Mac Users: Unfortunately, if you have an older Mac (late 2009 for example) and are using Yosemite, you cannot use HAXM for 64 bit architecture. According to the release notes on HAXM:

Mac用户:不幸的是,如果您有一个较老的Mac(例如2009年末),并且正在使用Yosemite,那么就不能将HAXM用于64位架构。根据关于HAXM的发布说明:

HAXM driver does not support emulating a 64 bit system image on Intel systems based on Core microarchitecture (Core, Core2 Duo etc.). All systems based on Nehalem and beyond are supported. (Corei3, Core i5 and Core i7 machines).

HAXM驱动不支持基于核心微架构(Core、Core2 Duo等)在Intel系统上模拟64位系统映像。支持所有基于Nehalem和beyond的系统。(Corei3, Core i5和Core i7机器)。

I spent a day trying to figure this problem out when I came upon this quote. The only thing that works is to use the non-x86 version of the latest OS (e.g. Lollipop Android 5.0.1 armeabi-v7a) in your AVD

当我看到这句话的时候,我花了一天的时间试图解决这个问题。唯一有效的方法是在AVD中使用最新操作系统的非x86版本(例如Lollipop Android 5.0.1 armeabi-v7a)

#4


15  

Checking "Wipe user data" in the Launch Options fixed it for me.

在启动选项中检查“擦除用户数据”为我修复。

Go to Android Virtual Device Manager->Select your device->Start->Check "Wipe user data"->Launch

进入Android虚拟设备管理器->选择您的设备->开始->检查“擦拭用户数据”->启动

#5


10  

I have recently the same issue in emulator, Nexus 5 (Android O). I have go to Android Virtual Device Manager and Wipe User Data and it solved my Problem.

我最近在模拟器Nexus 5 (Android O)上也遇到了同样的问题,我去了Android Virtual Device Manager,擦拭用户数据,解决了我的问题。

Android模拟器只显示黑屏,adb设备显示“设备脱机”

#6


6  

Here is how i got it solved : I ran the emulator with following command :

下面是我解决它的方法:我使用以下命令运行模拟器:

sudo /home/code/Android/Sdk/tools/emulator -avd Nexus_S_API_21 -netspeed full -netdelay none -debug-init -logcat '*:v'

and received the following in the output :

并在输出中收到如下:

NAND: could not write file /tmp/android-code/TMP7.tmp, No space left on device. (similar error, could not reproduce it)

So, i just freed up some disk space from my /home directory in ubuntu (for windows free the C: drive space) and it then booted smoothly.

因此,我刚刚从ubuntu的/home目录中释放了一些磁盘空间(用于windows free the C: drive space),然后顺利启动。

#7


4  

By the sound of it you have a misconfigured device. If you do it will never start and never show anything in Logcat.

从它的声音你有一个错误配置的设备。如果你这样做,它将永远不会开始,也永远不会在Logcat中显示任何东西。

I'd recommend creating a new device using one of the default "Device Definitions" available in the AVD Manager. It's as easy as highlighting the device type you want in the "Device Definitions" tab and clicking the "Create AVD..." button, then filling out a few details. I'd start by adjusting "Internal Storage" to around 8GB and (maybe) an "SD Card" of 2GB while leaving everything else the same. Try starting the device and if you see "Android" pop up onscreen you're running. The first boot usually takes awhile so just hang on and watch Logcat for any issues (the "DDMS" perspective helps here).

我建议使用AVD管理器中可用的默认“设备定义”之一创建一个新设备。在“设备定义”选项卡中突出显示您想要的设备类型,然后单击“创建AVD…”按钮,然后填写一些细节。首先,我将“内部存储”调整到8GB左右,(也许)一个2GB的“SD卡”,其余的都保持不变。试着启动设备,如果你看到“Android”出现在你正在运行的屏幕上。第一次启动通常需要一段时间,所以只需坚持并观察Logcat(“DDMS”透视图在这里提供的帮助)。

If you still see a black screen with a default device definition you've got problems elsewhere that are causing the device to fail. Digging through logs may be your only chance if that's the case. You can always try re-downloading the ADT and re-installing the SDKs if nothing else works.

如果您仍然看到一个带有默认设备定义的黑色屏幕,那么您在其他地方遇到了导致设备失败的问题。如果是这样的话,挖掘日志可能是你唯一的机会。您可以尝试重新下载ADT和重新安装SDKs,如果没有其他工作。

The goal here is to get you up and running with a (very) basic device, so don't shoot for uber impressive specs at this point, just shoot for trying to make it run. Once that happens try adjusting the settings one-by-one until you have it spec'd out the way you like. Just keep in mind that the emulator has its limitations and its no substitute for a real device (Although it works most of the time ;)

这里的目标是让你用一个(非常)基本的设备来启动和运行,所以现在不要为uber令人印象深刻的规格而努力,而要努力让它运行。一旦这种情况发生,试着逐个调整设置,直到你能按自己喜欢的方式进行调整。只要记住仿真器有它的局限性,它不能替代真正的设备(尽管它大部分时间都在工作;)

#8


4  

Make sure that you've installed the latest HAXM revision. I had the same blank screen problem with version 1.0.1 while 1.0.8 was already available. The installer can be downloaded via the SDK tools, to actually install the module you would have to execute

确保您已经安装了最新的HAXM修订。我在1.0.1版本中遇到了同样的空白屏幕问题,而1.0.8版本已经可用了。安装程序可以通过SDK工具下载,以实际安装必须执行的模块

android-sdk-directory\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm.exe

英特尔android-sdk-directory \配件\ \ Hardware_Accelerated_Execution_Manager \ intelhaxm.exe

#9


3  

This is a known bug if you selected "Use host GPU" option while creating AVD. https://code.google.com/p/android/issues/detail?id=28614
Uncheck the option and it should work!

如果在创建AVD时选择“使用主机GPU”选项,这是一个已知的错误。https://code.google.com/p/android/issues/detail?id=28614不选中选项,它应该可以工作!

#10


3  

Just try to set CPU/ABI on "Intel Atom (x86)" and deactivate the checkbox "Use Host GPU".

尝试在“Intel Atom (x86)”上设置CPU/ABI,并停用“使用主机GPU”复选框。

#11


1  

I too got the same problem. When i changed the Eclipse from EE to Eclipse Classic it worked fine. in Win professional 64Bit. Have a try it may work for you too..

我也有同样的问题。当我将Eclipse从EE更改为Eclipse Classic时,它运行得很好。在赢得专业的64位。试试看,也许对你也一样。

#12


1  

I've managed to launch and debug an Android testing application on the Android emulator through Delphi.

我已经通过Delphi在Android模拟器上启动并调试了一个Android测试应用程序。

I have Windows 7 64 bit, 4GB RAM, a dual core processor at 3GHz and Delphi XE 5.

我有Windows 7 64位,4GB内存,3GHz和Delphi XE 5的双核处理器。

Below is a link that I've prepared in a hurry for my colleagues at work but I will make it better by the first chance:

下面是我在工作中为同事们准备的一个链接,但我将通过第一次机会让它变得更好:

Debug Android Apps with Delphi

用Delphi调试Android应用程序

Forgive my English language but I am not a native English speaker. I hope you will find this small tutorial

请原谅我的英语,我的母语不是英语。我希望你能找到这个小教程。

#13


1  

For a workaround try Android 4.0.3 (API 15) with the Intel Atom (x86) image. I could capture DDMS screenshots with both "use host gpu" and HAXM enabled. Only this combination worked for me.

要解决这个问题,可以使用Intel Atom (x86)映像使用Android 4.0.3 (API 15)。我可以使用“使用主机gpu”和“启用HAXM”捕获DDMS屏幕快照。只有这种组合对我有效。

#14


1  

I also had the same problem. I figured out that the HAXM hardware accelerator was recently updated but not reinstalled since the update manager just updates the installer package which get saved to your hard drive. You will need to remove HAXM and then run that installer package to complete the update. Usualy this gets installed into ANDROID-SDK-ROOT\android-sdk\extras\intel\Hardware_Accelerated_Execution_Manager. Where ANDROID-SDK-ROOT is the location where your android sdk is located.

我也有同样的问题。我发现HAXM硬件加速器最近进行了更新,但没有重新安装,因为更新管理器只是更新安装程序包,将其保存到硬盘驱动器中。您将需要删除HAXM,然后运行安装程序包来完成更新。通常这将被安装到android-sdk - root \android-sdk\extras\ \ \ \ \ \ \Hardware_Accelerated_Execution_Manager。android - sdk - root是android sdk所在的位置。

#15


1  

For me, I had to turned off both front and back camera. Hope this helps!

对我来说,我必须关掉前置和后置摄像头。希望这可以帮助!

#16


1  

The Problems associated with the Black window of the emulator:

与仿真器的黑色窗口相关的问题:

Happens when a new windows is installed. Problem associated with graphics of the windows is on the CD of windows .You have to Update windows and follow the following steps.

安装新窗口时发生。与windows图形相关的问题出现在windows的CD上。您必须更新windows并遵循以下步骤。

If Emulated Performance Graphics is (Software GLES then select it to-->Automatic)

如果仿真的性能图形是(软件GLES选择为——>自动)

Or If Emulated Performance Graphics is (Automatic then select it to-->Software GLES)

或者如果仿真的性能图形是(自动选择到——>软件GLES)

this alternation can solve this problem.

这种交替可以解决这个问题。

#17


1  

I changed it to always "cold boot" to fix my problem. Prior to this, when I ran adb devices it always showed as offline.

我把它改成了“冷启动”来解决我的问题。在此之前,当我运行adb设备时,它总是显示为脱机。

Android模拟器只显示黑屏,adb设备显示“设备脱机”

#18


0  

I was having this problem after I got the blue screen of death while running my emulator. Here's my solution (for Windows at least). My solution is too completely re-install the AVD. The problem with the normal un-installation process for Android Studio is that it doesn't remove everything, so if your AVD files are corrupted, they will remain corrupted on re-install.

我在运行模拟器的时候遇到了这个问题。这是我的解决方案(至少对于Windows)。我的解决方案是完全重新安装AVD。对于Android Studio的正常卸载过程的问题是,它并没有移除所有的东西,所以如果你的AVD文件被损坏了,它们会在重新安装时损坏。

In order to fix this, I deleted two directories:

为了解决这个问题,我删除了两个目录:

C:\Users\(My Username)\.Android

C:\Users\ \ .Android(用户名)

and

C:\Users\(My Username)\.AndroidStudio3.1

C:\Users\ \ .AndroidStudio3.1(用户名)

Then I re-ran in the installer.

然后我在安装程序中重新运行。

I think this is the most foolproof solution if your emulator was previously working because it forces a complete refresh of the AVD component of Android Studio.

我认为这是最简单的解决方案,如果您的模拟器以前工作,因为它强制完全刷新Android Studio的AVD组件。

#1


127  

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.

我对最新的Android SDK也有同样的问题。我只是在虚拟设备的设置中禁用了“使用主机GPU”复选框,然后它又开始工作了。

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

“使用主机GPU”只适用于我,Android 4.2作为“目标”。

Update 26.02.2014:

更新26.02.2014:

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

在developer.android.com的配置图形加速章节中有两个提示。

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.

注意:对于SDK工具修订17,仿真器的图形加速特性是实验性的;在使用此特性时,请注意不兼容和错误。

and

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.

启动AVD管理器并创建一个新的AVD,目标值为Android 4.0.3 (API级别15),修订3或更高。

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

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

#2


83  

I had issues with getting the larger devices to emulate (Nexus7 and 10), while the phone sized emulators worked great. Would just keep getting a black screen with nothing for hours with the tablets. What helped was actually the OPPOSITE of what most people here are recommending: after setting the tick box for 'Use Host GPU' and setting the target to the highest android (4.4.2 at the time of this writing) the 7 and 10 work as expected!

我在让更大的设备进行仿真(Nexus7和10)时遇到了问题,而电话大小的仿真器工作得很好。在平板电脑的帮助下,你可以连续几个小时不需要任何东西就能得到一个黑屏。真正起作用的是与这里大多数人推荐的相反的东西:在设置“使用主机GPU”的复选框并将目标设置为最高的android(本文撰写时为4.4.2)之后,7和10将按照预期工作!

#3


21  

Mac Users: Unfortunately, if you have an older Mac (late 2009 for example) and are using Yosemite, you cannot use HAXM for 64 bit architecture. According to the release notes on HAXM:

Mac用户:不幸的是,如果您有一个较老的Mac(例如2009年末),并且正在使用Yosemite,那么就不能将HAXM用于64位架构。根据关于HAXM的发布说明:

HAXM driver does not support emulating a 64 bit system image on Intel systems based on Core microarchitecture (Core, Core2 Duo etc.). All systems based on Nehalem and beyond are supported. (Corei3, Core i5 and Core i7 machines).

HAXM驱动不支持基于核心微架构(Core、Core2 Duo等)在Intel系统上模拟64位系统映像。支持所有基于Nehalem和beyond的系统。(Corei3, Core i5和Core i7机器)。

I spent a day trying to figure this problem out when I came upon this quote. The only thing that works is to use the non-x86 version of the latest OS (e.g. Lollipop Android 5.0.1 armeabi-v7a) in your AVD

当我看到这句话的时候,我花了一天的时间试图解决这个问题。唯一有效的方法是在AVD中使用最新操作系统的非x86版本(例如Lollipop Android 5.0.1 armeabi-v7a)

#4


15  

Checking "Wipe user data" in the Launch Options fixed it for me.

在启动选项中检查“擦除用户数据”为我修复。

Go to Android Virtual Device Manager->Select your device->Start->Check "Wipe user data"->Launch

进入Android虚拟设备管理器->选择您的设备->开始->检查“擦拭用户数据”->启动

#5


10  

I have recently the same issue in emulator, Nexus 5 (Android O). I have go to Android Virtual Device Manager and Wipe User Data and it solved my Problem.

我最近在模拟器Nexus 5 (Android O)上也遇到了同样的问题,我去了Android Virtual Device Manager,擦拭用户数据,解决了我的问题。

Android模拟器只显示黑屏,adb设备显示“设备脱机”

#6


6  

Here is how i got it solved : I ran the emulator with following command :

下面是我解决它的方法:我使用以下命令运行模拟器:

sudo /home/code/Android/Sdk/tools/emulator -avd Nexus_S_API_21 -netspeed full -netdelay none -debug-init -logcat '*:v'

and received the following in the output :

并在输出中收到如下:

NAND: could not write file /tmp/android-code/TMP7.tmp, No space left on device. (similar error, could not reproduce it)

So, i just freed up some disk space from my /home directory in ubuntu (for windows free the C: drive space) and it then booted smoothly.

因此,我刚刚从ubuntu的/home目录中释放了一些磁盘空间(用于windows free the C: drive space),然后顺利启动。

#7


4  

By the sound of it you have a misconfigured device. If you do it will never start and never show anything in Logcat.

从它的声音你有一个错误配置的设备。如果你这样做,它将永远不会开始,也永远不会在Logcat中显示任何东西。

I'd recommend creating a new device using one of the default "Device Definitions" available in the AVD Manager. It's as easy as highlighting the device type you want in the "Device Definitions" tab and clicking the "Create AVD..." button, then filling out a few details. I'd start by adjusting "Internal Storage" to around 8GB and (maybe) an "SD Card" of 2GB while leaving everything else the same. Try starting the device and if you see "Android" pop up onscreen you're running. The first boot usually takes awhile so just hang on and watch Logcat for any issues (the "DDMS" perspective helps here).

我建议使用AVD管理器中可用的默认“设备定义”之一创建一个新设备。在“设备定义”选项卡中突出显示您想要的设备类型,然后单击“创建AVD…”按钮,然后填写一些细节。首先,我将“内部存储”调整到8GB左右,(也许)一个2GB的“SD卡”,其余的都保持不变。试着启动设备,如果你看到“Android”出现在你正在运行的屏幕上。第一次启动通常需要一段时间,所以只需坚持并观察Logcat(“DDMS”透视图在这里提供的帮助)。

If you still see a black screen with a default device definition you've got problems elsewhere that are causing the device to fail. Digging through logs may be your only chance if that's the case. You can always try re-downloading the ADT and re-installing the SDKs if nothing else works.

如果您仍然看到一个带有默认设备定义的黑色屏幕,那么您在其他地方遇到了导致设备失败的问题。如果是这样的话,挖掘日志可能是你唯一的机会。您可以尝试重新下载ADT和重新安装SDKs,如果没有其他工作。

The goal here is to get you up and running with a (very) basic device, so don't shoot for uber impressive specs at this point, just shoot for trying to make it run. Once that happens try adjusting the settings one-by-one until you have it spec'd out the way you like. Just keep in mind that the emulator has its limitations and its no substitute for a real device (Although it works most of the time ;)

这里的目标是让你用一个(非常)基本的设备来启动和运行,所以现在不要为uber令人印象深刻的规格而努力,而要努力让它运行。一旦这种情况发生,试着逐个调整设置,直到你能按自己喜欢的方式进行调整。只要记住仿真器有它的局限性,它不能替代真正的设备(尽管它大部分时间都在工作;)

#8


4  

Make sure that you've installed the latest HAXM revision. I had the same blank screen problem with version 1.0.1 while 1.0.8 was already available. The installer can be downloaded via the SDK tools, to actually install the module you would have to execute

确保您已经安装了最新的HAXM修订。我在1.0.1版本中遇到了同样的空白屏幕问题,而1.0.8版本已经可用了。安装程序可以通过SDK工具下载,以实际安装必须执行的模块

android-sdk-directory\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm.exe

英特尔android-sdk-directory \配件\ \ Hardware_Accelerated_Execution_Manager \ intelhaxm.exe

#9


3  

This is a known bug if you selected "Use host GPU" option while creating AVD. https://code.google.com/p/android/issues/detail?id=28614
Uncheck the option and it should work!

如果在创建AVD时选择“使用主机GPU”选项,这是一个已知的错误。https://code.google.com/p/android/issues/detail?id=28614不选中选项,它应该可以工作!

#10


3  

Just try to set CPU/ABI on "Intel Atom (x86)" and deactivate the checkbox "Use Host GPU".

尝试在“Intel Atom (x86)”上设置CPU/ABI,并停用“使用主机GPU”复选框。

#11


1  

I too got the same problem. When i changed the Eclipse from EE to Eclipse Classic it worked fine. in Win professional 64Bit. Have a try it may work for you too..

我也有同样的问题。当我将Eclipse从EE更改为Eclipse Classic时,它运行得很好。在赢得专业的64位。试试看,也许对你也一样。

#12


1  

I've managed to launch and debug an Android testing application on the Android emulator through Delphi.

我已经通过Delphi在Android模拟器上启动并调试了一个Android测试应用程序。

I have Windows 7 64 bit, 4GB RAM, a dual core processor at 3GHz and Delphi XE 5.

我有Windows 7 64位,4GB内存,3GHz和Delphi XE 5的双核处理器。

Below is a link that I've prepared in a hurry for my colleagues at work but I will make it better by the first chance:

下面是我在工作中为同事们准备的一个链接,但我将通过第一次机会让它变得更好:

Debug Android Apps with Delphi

用Delphi调试Android应用程序

Forgive my English language but I am not a native English speaker. I hope you will find this small tutorial

请原谅我的英语,我的母语不是英语。我希望你能找到这个小教程。

#13


1  

For a workaround try Android 4.0.3 (API 15) with the Intel Atom (x86) image. I could capture DDMS screenshots with both "use host gpu" and HAXM enabled. Only this combination worked for me.

要解决这个问题,可以使用Intel Atom (x86)映像使用Android 4.0.3 (API 15)。我可以使用“使用主机gpu”和“启用HAXM”捕获DDMS屏幕快照。只有这种组合对我有效。

#14


1  

I also had the same problem. I figured out that the HAXM hardware accelerator was recently updated but not reinstalled since the update manager just updates the installer package which get saved to your hard drive. You will need to remove HAXM and then run that installer package to complete the update. Usualy this gets installed into ANDROID-SDK-ROOT\android-sdk\extras\intel\Hardware_Accelerated_Execution_Manager. Where ANDROID-SDK-ROOT is the location where your android sdk is located.

我也有同样的问题。我发现HAXM硬件加速器最近进行了更新,但没有重新安装,因为更新管理器只是更新安装程序包,将其保存到硬盘驱动器中。您将需要删除HAXM,然后运行安装程序包来完成更新。通常这将被安装到android-sdk - root \android-sdk\extras\ \ \ \ \ \ \Hardware_Accelerated_Execution_Manager。android - sdk - root是android sdk所在的位置。

#15


1  

For me, I had to turned off both front and back camera. Hope this helps!

对我来说,我必须关掉前置和后置摄像头。希望这可以帮助!

#16


1  

The Problems associated with the Black window of the emulator:

与仿真器的黑色窗口相关的问题:

Happens when a new windows is installed. Problem associated with graphics of the windows is on the CD of windows .You have to Update windows and follow the following steps.

安装新窗口时发生。与windows图形相关的问题出现在windows的CD上。您必须更新windows并遵循以下步骤。

If Emulated Performance Graphics is (Software GLES then select it to-->Automatic)

如果仿真的性能图形是(软件GLES选择为——>自动)

Or If Emulated Performance Graphics is (Automatic then select it to-->Software GLES)

或者如果仿真的性能图形是(自动选择到——>软件GLES)

this alternation can solve this problem.

这种交替可以解决这个问题。

#17


1  

I changed it to always "cold boot" to fix my problem. Prior to this, when I ran adb devices it always showed as offline.

我把它改成了“冷启动”来解决我的问题。在此之前,当我运行adb设备时,它总是显示为脱机。

Android模拟器只显示黑屏,adb设备显示“设备脱机”

#18


0  

I was having this problem after I got the blue screen of death while running my emulator. Here's my solution (for Windows at least). My solution is too completely re-install the AVD. The problem with the normal un-installation process for Android Studio is that it doesn't remove everything, so if your AVD files are corrupted, they will remain corrupted on re-install.

我在运行模拟器的时候遇到了这个问题。这是我的解决方案(至少对于Windows)。我的解决方案是完全重新安装AVD。对于Android Studio的正常卸载过程的问题是,它并没有移除所有的东西,所以如果你的AVD文件被损坏了,它们会在重新安装时损坏。

In order to fix this, I deleted two directories:

为了解决这个问题,我删除了两个目录:

C:\Users\(My Username)\.Android

C:\Users\ \ .Android(用户名)

and

C:\Users\(My Username)\.AndroidStudio3.1

C:\Users\ \ .AndroidStudio3.1(用户名)

Then I re-ran in the installer.

然后我在安装程序中重新运行。

I think this is the most foolproof solution if your emulator was previously working because it forces a complete refresh of the AVD component of Android Studio.

我认为这是最简单的解决方案,如果您的模拟器以前工作,因为它强制完全刷新Android Studio的AVD组件。