简体   繁体   English

android-sdk \\ tools中缺少Emulator.exe

[英]Emulator.exe missing from android-sdk\tools

I am trying to set the android sdk location from my eclipse preferences window but it's not letting me because it is saying that emulator.exe is missing. 我正在尝试从我的eclipse首选项窗口中设置android sdk位置,但这并没有让我这样做,因为这是说缺少emulator.exe。

I have read other questions that tell me to copy the emulator.exe into the tools directory but I don't have that file. 我已经阅读了其他问题,这些问题告诉我将emulator.exe复制到tools目录中,但是我没有该文件。

This is weird because my sdk and eclipse were both fresh installation so why is this file missing? 这很奇怪,因为我的sdk和eclipse都是全新安装的,所以为什么缺少此文件?

Maybe your antivirus detect the emulator.exe as a malware and remove the file. 也许您的防病毒软件将emulator.exe检测为恶意软件并删除了该文件。 Some of the antivirus can restore the file deleted by itself. 某些防病毒软件可以还原自身删除的文件。 What is your antivirus? 什么是防病毒软件?

In my case it was not the AV program to delete the emulator.exe. 就我而言,删除emulator.exe不是AV程序。

It was deleted while the emulator was running and I have clicked for the android tools to be updated through Android Studio. 在模拟器运行时将其删除,我单击了要通过Android Studio更新的android工具。

The way I have fixed it was to go to the "temp" directory where the android tools was downloaded, extract the archive and then to take the tools directory and copy it to the ~/sdk/ directory 我已将其修复的方法是转到android工具下载所在的“ temp”目录,解压缩档案,然后获取tools目录并将其复制到〜/ sdk /目录

I noticed that the files in <android-home>/tools in SDK go missing when you are updating your SDK platforms through SDK manager or through Eclipse(on Windows 7 with Luna) and the installations fails / you restart you machine before the installation completes[due to power failures/scheduled restarts]. 我注意到,当您通过SDK管理器或Eclipse(在带有Luna的Windows 7上)通过Eclipse更新SDK平台时,SDK中<android-home>/tools中的文件丢失了,并且安装失败/在安装完成之前重新启动计算机[由于电源故障/计划的重新启动]。

This causes the tools directory contents to get erased(perhaps a part of the SDK update) and before the <android-home>/temp/**.zip files are extracted, I guess the files in tools are deleted for replacement. 这导致工具目录内容被删除(可能是SDK更新的一部分),并且在提取<android-home>/temp/**.zip文件之前,我猜想工具中的文件已删除以进行替换。 This possibly explains, why the files go missing. 这可能解释了文件丢失的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM