# Problem with directory name with spaces for Android SDK

**URL:** <https://forums.fusetools.com/t/problem-with-directory-name-with-spaces-for-android-sdk/6254>\
**Category:** Bug Reports\
**Created:** [January 7, 2016, 5:34pm UTC](https://forums.fusetools.com/t/problem-with-directory-name-with-spaces-for-android-sdk/6254 "2016-01-07T17:34:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpedrinha](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/dpedrinha/32/487_2.png) [@dpedrinha](https://forums.fusetools.com/u/dpedrinha)\
**Post date:** [January 7, 2016, 5:34pm UTC](https://forums.fusetools.com/t/problem-with-directory-name-with-spaces-for-android-sdk/6254/1 "2016-01-07T17:34:57Z")

</div>

My Android SDK is on a directory with the same name “Android SDK” with a space in it.

When I run “fuse install android” and point to that directory it accepts and “fuse install -s android” checks it as OK.

But when I try to preview the example app on android, it says that “E:\dev\Android” is not recognized as an internal or external command, operable program or batch file.

I believe the code is ignoring the space and the rest of the directory name.

By the way, I’m on Windows 10 pt\_BR version.

Maybe a char encoding problem?

Daniel

---

<div class="post-metadata">

**Author:** ![dpedrinha](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/dpedrinha/32/487_2.png) [@dpedrinha](https://forums.fusetools.com/u/dpedrinha)\
**Post date:** [January 7, 2016, 5:58pm UTC](https://forums.fusetools.com/t/problem-with-directory-name-with-spaces-for-android-sdk/6254/2 "2016-01-07T17:58:47Z")

</div>

Problem confirmed.

I changed the Android SDK path to “Android1 SDK” (attention to the added “1”), checked the instalation, got an OK and when trying to preview it said “E:\dev\Android1” is not recognized as an internal or external command, operable program or batch file.

And when I changed it to “AndroidSDK” everything workd fine.

---

<div class="post-metadata">

**Author:** ![Emil\_Sandsto](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/emil_sandsto/32/523_2.png) [@Emil\_Sandsto](https://forums.fusetools.com/u/Emil_Sandsto)\
**Post date:** [January 7, 2016, 6:12pm UTC](https://forums.fusetools.com/t/problem-with-directory-name-with-spaces-for-android-sdk/6254/3 "2016-01-07T18:12:54Z")

</div>

Hi,

We had problems before related to having AndroidSDK in a path containing spaces, however that is fixed (or should be). So which version of Fuse are you running, and I suppose this is on Windows?

Thanks for taking the time to report it 🙂

---

<div class="post-metadata">

**Author:** ![dpedrinha](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/dpedrinha/32/487_2.png) [@dpedrinha](https://forums.fusetools.com/u/dpedrinha)\
**Post date:** [January 7, 2016, 6:38pm UTC](https://forums.fusetools.com/t/problem-with-directory-name-with-spaces-for-android-sdk/6254/4 "2016-01-07T18:38:55Z")

</div>

Just realised that the same problem happens when trying to run a project that has spaces in its name like “Hello World”.

It says:

```auto
Building native target
1/2: libHello World.so
2/2: Hello World-debug.apk

.
.
.

Installing new version of APK
Invalid APK file: World-debug.apk

```

In this case, it ignored the part before the space (Hello ) on the last line.

Interesting enough, if I create a project without spaces in its name, it works even with spaces on the parent path. Example:

E:\Fuse Workspace\HelloWorld

So it seems the problem is not on the path, but when running the files only.

---

<div class="post-metadata">

**Author:** ![dpedrinha](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/dpedrinha/32/487_2.png) [@dpedrinha](https://forums.fusetools.com/u/dpedrinha)\
**Post date:** [January 7, 2016, 7:11pm UTC](https://forums.fusetools.com/t/problem-with-directory-name-with-spaces-for-android-sdk/6254/5 "2016-01-07T19:11:28Z")

</div>

Hello Emil.

Yes, Windows 10, pt\_BR version.

I downloaded Fuse Tools yesterday, so it should be the latest version.

---

<div class="post-metadata">

**Author:** ![Emil\_Sandsto](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/emil_sandsto/32/523_2.png) [@Emil\_Sandsto](https://forums.fusetools.com/u/Emil_Sandsto)\
**Post date:** [January 7, 2016, 11:45pm UTC](https://forums.fusetools.com/t/problem-with-directory-name-with-spaces-for-android-sdk/6254/6 "2016-01-07T23:45:32Z")

</div>

Sorry, the commit containing the fix, was not part of our latest release, however it will soon be 🙂

I hope you can work around it, until we get a proper fix out. I will let you know when it is out.

(It will also fix problems related to space in project path too)

---

<div class="post-metadata">

**Author:** ![Remi\_Pedersen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/remi_pedersen/32/432_2.png) [@Remi\_Pedersen](https://forums.fusetools.com/u/Remi_Pedersen)\
**Post date:** [January 8, 2016, 10:42am UTC](https://forums.fusetools.com/t/problem-with-directory-name-with-spaces-for-android-sdk/6254/7 "2016-01-08T10:42:00Z")

</div>

You can work around the issue with spaces in the path as described [here](https://www.fusetools.com/community/forums/permalink/0d7298e9-0dd8-45b5-b326-89b9e26852d3).

---

<div class="post-metadata">

**Author:** ![dpedrinha](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/dpedrinha/32/487_2.png) [@dpedrinha](https://forums.fusetools.com/u/dpedrinha)\
**Post date:** [January 8, 2016, 4:17pm UTC](https://forums.fusetools.com/t/problem-with-directory-name-with-spaces-for-android-sdk/6254/8 "2016-01-08T16:17:24Z")

</div>

Thank you for the replies!
