Java 您的项目位置包含空格。(安卓工作室)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/29469403/
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
Your project location contains whitespace. (Android Studio)
提问by Ahmed Adnan
I am just moved from Eclipse to Android Studio for android application development. I am getting the following warning at the time of creating projects
我刚刚从 Eclipse 转移到 Android Studio 进行 android 应用程序开发。我在创建项目时收到以下警告
Your project location contains whitespace. This can cause problem on some plateform and is not recommended
您的项目位置包含空格。这可能会导致某些平台出现问题,不推荐
I wanted to know how to resolve this and is it serious or not?
我想知道如何解决这个问题,严重不严重?
采纳答案by Tom Rogers
The white space refers to any name in the location that has a space.
空白是指位置中有空格的任何名称。
In the example:
在示例中:
c:/users/MyDocuments
c:/用户/我的文档
the location does not have white space. However, the location
该位置没有空白。然而,位置
c:/users/My Documents
c:/用户/我的文档
has white space. Remove the spaces from the folder names in your location or use underscore to remove the white space from your location.
有空白。从您所在位置的文件夹名称中删除空格或使用下划线从您所在位置删除空格。
回答by Mohammad Arman
This will not cause any serious issue. You can continue your regular development. But as you have recently switched to the new environment, so I think it will be easy to move your directory now. If you face any import or export related issue later (when moving the directory would have become harder), then it will be really a pain for you.
这不会导致任何严重的问题。您可以继续您的常规开发。但是由于您最近切换到新环境,所以我认为现在移动您的目录会很容易。如果您以后遇到任何与导入或导出相关的问题(移动目录会变得更加困难),那么这对您来说真的很痛苦。
How you can solve this issue:Just change the directory of your workspace to (where there wouldn't be any white space).
如何解决此问题:只需将工作区的目录更改为(没有任何空格的位置)。
For example:c:/users/documents
例如:c:/users/documents
回答by garvit
welll this problem also i am getting
这个问题我也遇到了
your are browsing that location contain white space mean
您正在浏览该位置包含空格的意思
for ex my /c/ documents
例如我的 /c/ 文件
it solution is u have to remove space between tham
它的解决方案是你必须删除 tham 之间的空间
solution my/c/documents
解决方案 my/c/documents
回答by Codedogs
I took the UNIX approach, and created a symbolic link to where the directory should be located. On Windows, from a command window:
我采用了 UNIX 方法,并创建了一个指向目录所在位置的符号链接。在 Windows 上,从命令窗口:
mklink /j C:\android-sdk C:\"Program Files"\Android\android-sdk