eclipse 如何更改android中的工作区?

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

How to change the workspace in android?

androideclipse

提问by Prachi

My current workspace is in D drive I want to change my workspace and create a new workspace in C drive.How can I change the workspace in android?

我当前的工作区在 D 盘我想更改我的工作区并在 C 盘创建一个新的工作区。如何在 android 中更改工作区?

回答by JasCav

To change your workspace in Eclipse (as there is not a "workspace" for Android), open up Eclipse and select:

要更改 Eclipse 中的工作区(因为没有适用于 Android 的“工作区”),请打开 Eclipse 并选择:

File > Switch Workspace > Other...

文件 > 切换工作区 > 其他...

Then, select your new workspace location. You can copy settings from your current workspace if you want.

然后,选择您的新工作区位置。如果需要,您可以从当前工作区复制设置。

回答by allen

I think that you should set the Android SDK for new workspace of eclipse again. You just need to click windows/preference/android and set SDK location, then click "apply" button.

我认为您应该再次为eclipse的新工作区设置Android SDK。您只需要单击 windows/preference/android 并设置 SDK 位置,然后单击“应用”按钮。

回答by NickT

Create a folder anywhere you like using explorer.

使用资源管理器在您喜欢的任何位置创建一个文件夹。

Then from Eclipse menus do : File, Switch Workspace, Other - then browse to your newly created folder and click

然后从 Eclipse 菜单中执行:文件、切换工作区、其他 - 然后浏览到您新创建的文件夹并单击

回答by Gajendra Bang

Recently I moved my entire Eclipse installation directory but the workspace was still getting created in the older location only. And worst there was no option to select the Workspace directory in the Window->Options->Workspace menu.

最近我移动了整个 Eclipse 安装目录,但工作区仍然只在旧位置创建。最糟糕的是,在 Window->Options->Workspace 菜单中没有选择 Workspace 目录的选项。

To change the workspace location in Eclipse do this. Goto ECLIPSE_HOME\configuration.settings directory, edit the org.eclipse.ui.ide.prefs file and change the RECENT_WORKSPACES value to the desired location.

要在 Eclipse 中更改工作区位置,请执行此操作。转到 ECLIPSE_HOME\configuration.settings 目录,编辑 org.eclipse.ui.ide.prefs 文件并将 RECENT_WORKSPACES 值更改为所需位置。

If you want that Eclipse prompts you to select workspace when you start it, change the SHOW_WORKSPACE_SELECTION_DIALOG value to true.

如果您希望 Eclipse 在您启动时提示您选择工作区,请将 SHOW_WORKSPACE_SELECTION_DIALOG 值更改为 true。

And you are done!

你已经完成了!

回答by kflGALORE

I strongly advice you to create your own start script. When you're on Windows something like

我强烈建议您创建自己的启动脚本。当你在 Windows 上时

@echo off
setlocal

rem set your Java settings here (JAVA_HOME and PATH) - setjava is a private script I use
rem call setjava 1.7 -arch x86_64

set ADT_HOME=D:\lang\android\adt-bundle
set ADT_EXEC=%ADT_HOME%\eclipse\eclipse.exe

set WORKSPACE_HOME=%~dp0

start "ADT" /MIN %ADT_EXEC% -data %WORKSPACE_HOME% -showlocation -clean -vmargs -Xmx2048M

endlocal