eclipse “Android SDK 的位置尚未在首选项中设置”错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22614198/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 21:36:30  来源:igfitidea点击:

"Location of the Android SDK has not been set up in the preferences" error

androideclipsesslsdk

提问by Hades no1Minion

I do realise something like this has already been asked and I've followed through various solutions but can't find a fix.

我确实意识到已经有人问过这样的问题,我已经遵循了各种解决方案,但找不到解决办法。

I have already installed the software by including the link:

我已经通过包含链接安装了该软件:

https://dl-ssl.google.com/android/eclipse/

https://dl-ssl.google.com/android/eclipse/

and then restarted Eclipse, but then it's giving me the error mentioned in the title. I tried then using this:

然后重新启动 Eclipse,但是它给了我标题中提到的错误。然后我尝试使用这个:

http://dl-ssl.google.com/android/eclipse/

http://dl-ssl.google.com/android/eclipse/

but it's telling me it's already installed and the same happens again when I just try to download the zipped package and install it that way.

但它告诉我它已经安装,当我尝试下载压缩包并以这种方式安装时,同样的情况再次发生。

Can anyone help me out? Thanks

谁能帮我吗?谢谢

回答by Malith

If Towhidul's answer didn't work, I think the problem is with choosing the correct SDK path.

如果 Towhidul 的回答不起作用,我认为问题在于选择正确的 SDK 路径。

  1. All Programs > Android SDK Tools > SDK Manager ( if you are using the latest Android Studio, open Android studio > SDK Manager > )
  2. Now you will see the correct SDK path at the top left corner of the Android SDK Manager window ( eg:- "SDK Path: C:\Users\Malith\AppData\Local\Android\sdk)
  1. 所有程序 > Android SDK 工具 > SDK 管理器(如果您使用的是最新的 Android Studio,请打开 Android Studio > SDK Manager > )
  2. 现在您将在 Android SDK 管理器窗口的左上角看到正确的 SDK 路径(例如:-“SDK 路径:C:\Users\Malith\AppData\Local\Android\sdk)

回答by Dudupoo

I have faced the same issue... Go to Eclipse > window > Android SDK manager > Click on Install packages. Wait for a while. I hope this will work. Because it did work for me. Thank you

我遇到了同样的问题...转到 Eclipse > 窗口 > Android SDK 管理器 > 单击安装包。稍等片刻。我希望这会奏效。因为它确实对我有用。谢谢

回答by vinod bazari

I have faced the same issue go to the below URl https://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zipExtract the folder and now go to the preferences and select the SDK folder from the Extracted Folder, and apply it . the problem will be resolved

我遇到了同样的问题,请转到以下 URl https://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip提取文件夹,现在转到首选项并选择 SDK 文件夹从提取的文件夹中,并应用它。问题将得到解决

回答by Towhidul Islam Tuhin

To resolve this issue need to do following step:

要解决此问题需要执行以下步骤:

  1. Open eclips.
  2. Go to window >> Preferences.
  3. Then select Android.
  4. In SDK Lication: need to brows correct SDK path.
  1. 打开日食。
  2. 转到窗口>>首选项。
  3. 然后选择安卓。
  4. 在 SDK Lication:需要浏览正确的 SDK 路径。

This works for me.

这对我有用。