# Issue with preview android

**URL:** <https://forums.fusetools.com/t/issue-with-preview-android/5772>\
**Category:** General\
**Created:** [January 10, 2016, 7:42pm UTC](https://forums.fusetools.com/t/issue-with-preview-android/5772 "2016-01-10T19:42:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ali.ajoudanian](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/ali.ajoudanian/32/189_2.png) [@ali.ajoudanian](https://forums.fusetools.com/u/ali.ajoudanian)\
**Post date:** [January 10, 2016, 7:42pm UTC](https://forums.fusetools.com/t/issue-with-preview-android/5772/1 "2016-01-10T19:42:38Z")

</div>

Hi, I’m new in Fuse, I installed fuse completely step by step based on fuse document. Also installed android SDK , NDK &… via fuse install android. Now when type in termianl “fuse install -s android” everything is OK but I cant preview or export my app to android devices but local preview is OK!

 ![file](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/6Up6gpJpJcWO-legacy-files-KG7UZmThNexBUod2-adGX1D75iIKOZd4C0Op-u2gK.png)

I got this error when build for Android.

 ![file](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/ssZ7WUsloFPG-legacy-files-xEG7bWXm4oFfONIG-cVPf8e-SKdYVpnbOPhzGMUH5.png)

---

<div class="post-metadata">

**Author:** ![Anders\_Schau\_Knatten](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_schau_knatten/32/41_2.png) [@Anders\_Schau\_Knatten](https://forums.fusetools.com/u/Anders_Schau_Knatten)\
**Post date:** [January 11, 2016, 7:04am UTC](https://forums.fusetools.com/t/issue-with-preview-android/5772/2 "2016-01-11T07:04:28Z")

</div>

Hi, it looks like you have a problem with your Xcode Command Line Tools. (Even if you’re not building for iOS, Xcode is what provides the build tools on OS X.)

Could you please try doing just `gcc` in the terminal, and see if you get a pop-up from Xcode helping you to solve this? If not, you can try to do `xcode-select -p` to verify your Xcode Command Line Tools installation, or `xcode-select --install` to install them.

---

<div class="post-metadata">

**Author:** ![ali.ajoudanian](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/ali.ajoudanian/32/189_2.png) [@ali.ajoudanian](https://forums.fusetools.com/u/ali.ajoudanian)\
**Post date:** [January 12, 2016, 7:09pm UTC](https://forums.fusetools.com/t/issue-with-preview-android/5772/3 "2016-01-12T19:09:26Z")

</div>

Hi when I use `gcc` terminal returns \>\> clang: error: no input files

I installed XCode from app store but again when i try to preview for Android I got error:

 ![file](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/NNcFKb6zrM8e-legacy-files-HaSp4ham3VHrYMsI-RSPDbQXoy-48OeAbFXOMd7xi.png)

---

<div class="post-metadata">

**Author:** ![ali.ajoudanian](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/ali.ajoudanian/32/189_2.png) [@ali.ajoudanian](https://forums.fusetools.com/u/ali.ajoudanian)\
**Post date:** [January 13, 2016, 7:35pm UTC](https://forums.fusetools.com/t/issue-with-preview-android/5772/4 "2016-01-13T19:35:26Z")

</div>

Today I installed android sdk 19 , now I’m able to build application for android. Also when I use `--run` it run on my phone automatically. But not be able to use `preview` command and got error (previous post)

---

<div class="post-metadata">

**Author:** ![Anders\_Schau\_Knatten](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_schau_knatten/32/41_2.png) [@Anders\_Schau\_Knatten](https://forums.fusetools.com/u/Anders_Schau_Knatten)\
**Post date:** [January 14, 2016, 9:43am UTC](https://forums.fusetools.com/t/issue-with-preview-android/5772/5 "2016-01-14T09:43:11Z")

</div>

Are you saying that the same app that you are able to run on your phone with `fuse build --target=android --run`, fails with the `error: stray...` errors when you do `fuse preview`? If so, could you please try to do `uno clean` and see if that helps?

---

<div class="post-metadata">

**Author:** ![ali.ajoudanian](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/ali.ajoudanian/32/189_2.png) [@ali.ajoudanian](https://forums.fusetools.com/u/ali.ajoudanian)\
**Post date:** [January 14, 2016, 11:22am UTC](https://forums.fusetools.com/t/issue-with-preview-android/5772/6 "2016-01-14T11:22:23Z")

</div>

Thanks Anders, Yes I have a problem with same application. It doesn’t help me. I tried with my own app & Fuse examples but again I got the error when use `fuse preview`

---

<div class="post-metadata">

**Author:** ![Anders\_Schau\_Knatten](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_schau_knatten/32/41_2.png) [@Anders\_Schau\_Knatten](https://forums.fusetools.com/u/Anders_Schau_Knatten)\
**Post date:** [January 14, 2016, 12:11pm UTC](https://forums.fusetools.com/t/issue-with-preview-android/5772/7 "2016-01-14T12:11:37Z")

</div>

Do these errors always com from `Android.Base.g.cpp`? Or are they sometimes reported for other files too? Could you please send us a copy of `Android.base.g.cpp` so we can have a look at it? You can upload it to [https://www.dropbox.com/request/ZgndLtJQm5eGzG9cicGK](https://www.dropbox.com/request/ZgndLtJQm5eGzG9cicGK).

By the way, which version of Fuse are you running? You can find that out by running `fuse --version` or looking at the menu bar.

---

<div class="post-metadata">

**Author:** ![ali.ajoudanian](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/ali.ajoudanian/32/189_2.png) [@ali.ajoudanian](https://forums.fusetools.com/u/ali.ajoudanian)\
**Post date:** [January 14, 2016, 2:29pm UTC](https://forums.fusetools.com/t/issue-with-preview-android/5772/8 "2016-01-14T14:29:29Z")

</div>

I don’t know why , but now everythings is OK! I didn’t any change to my sdk , fuse config and … after my last post. but when I tried some minuets ago it worked fine.

if `Android.Base.g.cpp` helps you I’ll send you. Also I use the last version of fuse until know `Fuse version 0.9.5 (build 5424)`

Thanks for your support.

---

<div class="post-metadata">

**Author:** ![Anders\_Schau\_Knatten](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_schau_knatten/32/41_2.png) [@Anders\_Schau\_Knatten](https://forums.fusetools.com/u/Anders_Schau_Knatten)\
**Post date:** [January 14, 2016, 3:18pm UTC](https://forums.fusetools.com/t/issue-with-preview-android/5772/9 "2016-01-14T15:18:27Z")

</div>

Huh, that’s curious! If you have a version of `Android.Base.g.cpp` from a build that failed, I would still appreciate to have a look at it. But if you don’t, or if it is a hassle to find, don’t bother.

Thanks for sticking around and not giving up on us! 🙂
