eclipse 在Eclipse中..如何调整Android SDK文件夹的路径?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7183337/
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-10 20:27:49  来源:igfitidea点击:

In Eclipse.. How to adjust the path of Android SDK folder?

eclipsewindows-7android-emulatorcommand-line-argumentsandroid-sdk-tools

提问by Maia

First of all, I'm a total newbie to all of this stuff and I was pushed into it.

首先,我是所有这些东西的新手,我被推入其中。

Acording to these two topics: Starting the Android emulator in SDK tools, revision 12, and Invalid command line parameter when Android executesthe solution to "invalid command line parameter when android execution" problem is adjusting the spaces in the path, but I don't know how.

根据这两个主题: 在SDK工具中启动Android模拟器,修订版12,和 Invalid command line parameter when Android执行“invalid command line parameter when android execution”问题的解决方法是调整路径中的空格,但我不不知道怎么做。

I have Windows 7, Eclipse IDE for Parallel Application Developers with ADT Plugin.

我有 Windows 7,带有 ADT 插件的并行应用程序开发人员的 Eclipse IDE。

The path to emulator.exe is: C:\Program Files (x86)\Android\android-sdk\tools

emulator.exe 的路径为:C:\Program Files (x86)\Android\android-sdk\tools

回答by Techiegirl

You have an option to change the SDK path. The SDK gets installed in C:\Program Files\Android by default. Now launch Eclipse -> Window-> Prefrences -> Android. Here you can browse to your android sdk location. I was successfully able to go through installation by doing this step and my sdk is installed in Program Files.

您可以选择更改 SDK 路径。SDK 默认安装在 C:\Program Files\Android 中。现在启动 Eclipse -> Window-> Prefrences -> Android。在这里您可以浏览到您的 android sdk 位置。通过执行此步骤,我成功地完成了安装,并且我的 sdk 安装在 Program Files 中。

The above step is applicable to Android SDK version 15.

以上步骤适用于Android SDK 15版本。

回答by dmark

Instead of re-installing, you can use the subst dos command to create a local drive alias.

您可以使用 subst dos 命令创建本地驱动器别名,而不是重新安装。

Subst z: "c:\program files (x86)\android"

回答by Maia

You need to reinstall Android SDK to shorter path with no spaces. I remember reading the Android SDK recommendation, where the path with spaces is described as wrongdoing.

您需要将 Android SDK 重新安装到没有空格的较短路径。我记得读过 Android SDK 推荐,其中带有空格的路径被描述为不法行为。

You can not even have it there in Program Files in first place, because the installer (not zip, but recommended installer) picks the C:\AndroidSDK as suggested location.

您甚至不能将它放在 Program Files 中,因为安装程序(不是 zip,而是推荐的安装程序)选择 C:\AndroidSDK 作为建议位置。

I think there is no workaround for this other that reinstall

我认为重新安装的其他人没有解决方法