Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Your project location contains whitespace. (Android Studio)

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

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?

like image 838
Ahmed Adnan Avatar asked Apr 06 '15 10:04

Ahmed Adnan


People also ask

How to remove whitespace from Android SDK file?

E.g if your SDK is at C:program fileAndroid studio. There is a whitespaces "program file". There are 2 simple methods: 1. Remove the whitespaces 2. Install at another location which don't have whitespaces.

How to remove white spaces for textview in Android?

This example demonstrates How to remove white spaces for textview in Android. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml.

Will NDK work with Android Studio with whitespaces?

I have, however, not tried whether NDK will work with such a setup, even though Android Studio stops giving this warning about whitespaces. As long as you aren't using the NDK you can just ignore that warning. By the way: This warning has nothing to do with parallel installations.

Where is the SDK located in Android Studio?

11 Answers#N#11. As the warning message states, the SDK location should not contain whitespace. Your SDK is at C:UsersGiacomo BAppDataLocalAndroidsdk. There is a whitespace character in Giacomo B.


4 Answers

The white space refers to any name in the location that has a space.

In the example:

c:/users/MyDocuments

the location does not have white space. However, the location

c:/users/My Documents

has white space. Remove the spaces from the folder names in your location or use underscore to remove the white space from your location.

like image 187
Tom Rogers Avatar answered Oct 11 '22 08:10

Tom Rogers


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

like image 26
Mohammad Arman Avatar answered Oct 11 '22 08:10

Mohammad Arman


I took the UNIX approach, and created a symbolic link to where the directory should be located. On Windows, from a command window:

mklink /j C:\android-sdk C:\"Program Files"\Android\android-sdk
like image 35
Codedogs Avatar answered Oct 11 '22 10:10

Codedogs


welll this problem also i am getting

your are browsing that location contain white space mean

for ex my /c/ documents

it solution is u have to remove space between tham

solution my/c/documents

like image 23
garvit Avatar answered Oct 11 '22 09:10

garvit