AVD 不是 运行
AVD not running
今天我在使用android studio 做我的项目时,突然出现蓝屏并且系统自动重启。现在,当我尝试使用模拟器 运行 我的应用程序时,AVD 不是 运行ning 并且我收到如下错误。有人遇到过这个吗?我该如何解决这个问题?
ProcessNotCreatedException: Unexpected error while launching AVD:
Cannot run program
"C:\Users\tongws\AppData\Local\Android\sdk\tools\emulator.exe":
CreateProcess error=216, This version of %1 is not compatible with the
version of Windows you're running. Check your computer's system
information to see whether you need a x86 (32-bit) or x64 (64-bit)
version of the program, and then contact the software publisher
当我单击 Android 设备监视器时,也没有任何反应...
您遇到了与 AVD 无关的计算机问题
ProcessNotCreatedException
:尝试检索因抛出异常而中止的任务的结果时抛出异常。
Because of their usefulness and ubiquity, EXE files are commonly used
as a method of delivery for virus / malware infection. Often, viruses
will be disguised as a benign EXE file (such as emulator.exe) and
distributed through SPAM email or malicious websites, which can then
infect your computer when executed (eg. when you double-click the EXE
file). In addition, viruses can infect, replace, or corrupt existing
EXE files, which can then lead to error messages when
related programs are executed. Thus, any executable files that you
download to your PC should be scanned for viruses before opening -
even if you think it is from a reputable source.
阅读SO回答。
你该怎么办
- 格式化你的系统
- 安装 Android Studio(使用正确的 JDK 路径设置最新版本)请注意,您需要安装 JDK 6 或更高版本.
- 您可以使用
Intel x86 Emulator Accelerator (HAXM installer)
或 Genymotion .
IF YOU HAVE MULTIPLE DRIVES, THE DRIVE WHERE THE OS IS INSTALLED IS
NEEDED TO BE FORMATTED, SO YOU SHALL LOSS ALL DATA OF THAT DRIVE. I
SUGGEST YOU TO TAKE A BACK UP OF ALL YOUR IMPORTANT DATA STORED IN
THAT DRIVE, INTO OTHER DRIVES WHICH WOULD REMAIN UNCHANGED. ON THE
OTHER HAND, IF YOU HAVE ONLY ONE DRIVE, THEN ALL YOUR DATA WILL GET
ERASED WHILE FORMATTING .
找到以下解决方案。
转到计算机中的以下目录:
C:\Users.android\avd
在此目录中,您将找到包含您的 avd 机器的定义和内容的所有文件和目录-
现在执行基本的故障排除步骤:
-检查 avd 目录是否存在以及它是否包含名称为 "sdcard.img".
的文件
-如果文件存在,尝试重命名它(检查它是否被锁定)然后去eclipse并要求创建一个新的sd卡。
-如果失败,请尝试使用该名称手动创建一个文件以检查权限。
祝你好运
今天我在使用android studio 做我的项目时,突然出现蓝屏并且系统自动重启。现在,当我尝试使用模拟器 运行 我的应用程序时,AVD 不是 运行ning 并且我收到如下错误。有人遇到过这个吗?我该如何解决这个问题?
ProcessNotCreatedException: Unexpected error while launching AVD: Cannot run program "C:\Users\tongws\AppData\Local\Android\sdk\tools\emulator.exe": CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher
当我单击 Android 设备监视器时,也没有任何反应...
您遇到了与 AVD 无关的计算机问题
ProcessNotCreatedException
:尝试检索因抛出异常而中止的任务的结果时抛出异常。
Because of their usefulness and ubiquity, EXE files are commonly used as a method of delivery for virus / malware infection. Often, viruses will be disguised as a benign EXE file (such as emulator.exe) and distributed through SPAM email or malicious websites, which can then infect your computer when executed (eg. when you double-click the EXE file). In addition, viruses can infect, replace, or corrupt existing EXE files, which can then lead to error messages when related programs are executed. Thus, any executable files that you download to your PC should be scanned for viruses before opening - even if you think it is from a reputable source.
阅读SO回答。
你该怎么办
- 格式化你的系统
- 安装 Android Studio(使用正确的 JDK 路径设置最新版本)请注意,您需要安装 JDK 6 或更高版本.
- 您可以使用
Intel x86 Emulator Accelerator (HAXM installer)
或 Genymotion .
IF YOU HAVE MULTIPLE DRIVES, THE DRIVE WHERE THE OS IS INSTALLED IS NEEDED TO BE FORMATTED, SO YOU SHALL LOSS ALL DATA OF THAT DRIVE. I SUGGEST YOU TO TAKE A BACK UP OF ALL YOUR IMPORTANT DATA STORED IN THAT DRIVE, INTO OTHER DRIVES WHICH WOULD REMAIN UNCHANGED. ON THE OTHER HAND, IF YOU HAVE ONLY ONE DRIVE, THEN ALL YOUR DATA WILL GET ERASED WHILE FORMATTING .
找到以下解决方案。 转到计算机中的以下目录:
C:\Users.android\avd
在此目录中,您将找到包含您的 avd 机器的定义和内容的所有文件和目录-
现在执行基本的故障排除步骤:
-检查 avd 目录是否存在以及它是否包含名称为 "sdcard.img".
的文件-如果文件存在,尝试重命名它(检查它是否被锁定)然后去eclipse并要求创建一个新的sd卡。
-如果失败,请尝试使用该名称手动创建一个文件以检查权限。
祝你好运