简体   繁体   English

即使已安装映像,也“没有为此目标安装系统映像”

[英]“No system images installed for this target” even though Image is installed

SDK管理器

So I'm trying to create an AVD Simulator, and I keep getting the "No system images installed for this target" error when trying to create a 4.2.2 system even though the image is installed (See picture of SDK Manager). 因此,我尝试创建一个AVD模拟器,并且即使创建了安装了映像的系统,也仍然在尝试创建4.2.2系统时出现“未为此目标安装系统映像”错误(请参见SDK Manager的图片)。

My system is x64, does that make a difference? 我的系统是x64,这有区别吗?

Eclipse错误

After SDK Update I had the same problems with API Level 19 and in my case restarting eclipse didn't solve it. 在更新SDK之后,我在API级别19上遇到了同样的问题,就我而言,重新启动Eclipse无法解决它。

For some reason, in the sdk/system-images/android-19 directory, sub-folders with system images (armeabi-v7a and x86) were placed within "default" directory. 由于某些原因,在sdk/system-images/android-19目录中,带有系统映像的子文件夹(armeabi-v7a和x86)位于"default"目录中。 I just moved them into android-19 directory (if eclipse is running at the same time, you will have to restart it). 我只是将它们移到android-19目录中(如果同时运行eclipse,则必须重新启动它)。

You just need to restart the tools. 您只需要重新启动工具即可。 I have seen this bug before. 我以前见过这个错误。 The appropriate installed images will show up after the restart. 重新启动后,将显示相应的已安装映像。

You can also try to refresh within the 'Packages' menu, but the easiest thing, is to restart the tools. 您也可以尝试在“软件包”菜单中刷新,但是最简单的方法是重新启动工具。

Goto sdk\\system-images and open the folder of the current API you are using (eg. android-19 folder in your case). 转到sdk \\ system-images并打开您正在使用的当前API的文件夹(例如,您的情况下为android-19文件夹)。 Now you'll find a folder named 'default' , open it and you'll see the folder named 'armeabi-v7a' or which ever system image you've installed. 现在,您将找到一个名为“ default”的文件夹,将其打开,您将看到一个名为“ armeabi-v7a”的文件夹或已安装的系统映像。 Now move the folder 'armeabi-v7a' to the directory sdk\\system-images ...ie simply out of the 'default' folder. 现在将文件夹“ armeabi-v7a”移动到目录sdk \\ system-images ...即简单地从“默认”文件夹中移出。

That's it. 而已。 I had the same problem and this method worked for me. 我遇到了同样的问题,这种方法很适合我。 :D :D

我重新启动eclipse。它对我有效,问题已解决。

I just had this same issue. 我只是有同样的问题。 My problem was solved by killing eclipse (Command + Q) because I'm a Mac user. 我的问题是通过杀死Eclipse(Command + Q)解决的,因为我是Mac用户。 So, if you're under other operative system be sure to kill the Eclipse's process and relaunch it. 因此,如果您使用的是其他操作系统,请确保终止Eclipse的过程并重新启动它。

Lots of potentially useful answers here, but none of them were worked for me. 这里有很多潜在有用的答案,但是没有一个对我有用。

On my Mac, I have both Android Studio and Visual Studio installed. 在Mac上,我同时安装了Android Studio和Visual Studio。 One would hope that they would automatically look for an Android SDK in the same place, but no, not necessarily. 希望他们会在同一位置自动寻找Android SDK,但不一定,不一定。

In Android Studio, go to Tools -> Android -> SDK Manager. 在Android Studio中,转到工具-> Android-> SDK管理器。 In the window that pops up, make a note of the Android SDK Location. 在弹出的窗口中,记下Android SDK位置。 It should be something like 应该是这样的

/Users/[user]/Library/Android/sdk / Users / [用户] /库/ Android / SDK

Next, in Visual Studio, go to Tools -> SDK Manager. 接下来,在Visual Studio中,转到“工具”->“ SDK管理器”。 In the window that pops up, the path that should be selected on the left is Projects -> SDK Location -> Android. 在弹出的窗口中,应该在左侧选择的路径是Projects-> SDK Location-> Android。 On the right, click the Locations tab. 在右侧,单击“位置”选项卡。 For me, the Android SDK Location path was set to something like 对我而言,Android SDK位置路径设置为类似

/Users/[user]/Library/Developer/Xamarin/android-sdk-macosx / Users / [用户] /库/开发人员/ Xamarin / android-sdk-macosx

I changed this to the path that Android Studio was using, and that fixed the problem for me. 我将其更改为Android Studio使用的路径,这为我解决了这个问题。

Very simple. 很简单的。 I restarted Eclipse, reloaded my project and when creating a new emulator, the problem is gone 我重新启动了Eclipse,重新加载了我的项目,并且在创建新的模拟器时,问题消失了

Found this thread when I did a search on Google for the same error. 当我在Google上搜索相同的错误时找到了该线程。

So I just wanted to add that if anyone comes across this thread but you are using Android Studio . 因此,我只想补充一点,如果有人遇到此线程,但您正在使用Android Studio You only have to restart the Android Studio. 您只需要重启Android Studio。 I did and now I can see what I installed. 我做到了,现在我可以看到安装了什么。

在此处输入图片说明

使用以下命令确保您拥有android-sdk-linux目录中的所有文件的权限:

sudo chown $USER -R ./android-sdk-linux

暂无
暂无

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

相关问题 即使已安装系统映像,Xamarin与Visual Studio也无法检测仿真器的CPU / ABI系统映像 - Xamarin with Visual Studio not detecting CPU/ABI system image for emulator, even though system images are installed 即使已安装目标,Cordova版本也无法解析目标 - Cordova build is unable to resolve target even though target is installed AVD Manager:“没有为此目标安装系统映像” - AVD Manager: “no system images installed for this target” with necessitas “没有为此目标安装系统映像”Xamarin AVD Manager - “No system images installed for this target” Xamarin AVD Manager 为什么我得到:“没有为此目标安装系统映像” - Why am I getting: “No system images installed for this target” AVD 管理器 - “没有为此目标安装系统映像。” API 级别 23 - AVD Manager - “No system images installed for this target.” on API level 23 AVD 编辑 AVD 时没有为此目标安装系统映像 - AVD no system images installed for this target when editing AVD Android Studio:Ice Cream Sandwich(API Level 15)即使安装了系统映像,设备配置也不会显示 - Android Studio: Ice Cream Sandwich (API Level 15) Device Configuration not showing up even though system image is installed AVD 管理器 - 未安装系统映像 - AVD Manager - No system image installed Android Wear-Xamarin没有为此目标安装系统映像-SDK管理器未显示相关的SDK(Visual Studio) - Android Wear - Xamarin no system images installed for this target - SDK manager not showing relevant SDKs (Visual Studio)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM