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?
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.
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.
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.
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.
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.
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
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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With