# Preview on android emulator

**URL:** <https://forums.fusetools.com/t/preview-on-android-emulator/5486>\
**Category:** How-to Discussions\
**Created:** [November 8, 2016, 11:48am UTC](https://forums.fusetools.com/t/preview-on-android-emulator/5486 "2016-11-08T11:48:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aleme\_Gabriel](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/aleme_gabriel/32/477_2.png) [@Aleme\_Gabriel](https://forums.fusetools.com/u/Aleme_Gabriel)\
**Post date:** [November 8, 2016, 11:48am UTC](https://forums.fusetools.com/t/preview-on-android-emulator/5486/1 "2016-11-08T11:48:54Z")

</div>

hi, i can’t preview my app on an android emulator. it outputs error Fatal E6101

---

<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:** [November 8, 2016, 11:57am UTC](https://forums.fusetools.com/t/preview-on-android-emulator/5486/2 "2016-11-08T11:57:15Z")

</div>

Hi, can you provide some more info on your setup, such as:

- Does the app work on real android devices?
- Does this happen for _all_ apps or just one in particular?
- Which android emulator are you using and how is it configured (OS version etc…) ?

Please note that we in general don’t prioritize Android emulators when testing and developing Fuse, mainly because it’s very easy to test on real devices (as well as local preview for things that don’t rely on mobile platform features).

---

<div class="post-metadata">

**Author:** ![Aleme\_Gabriel](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/aleme_gabriel/32/477_2.png) [@Aleme\_Gabriel](https://forums.fusetools.com/u/Aleme_Gabriel)\
**Post date:** [November 8, 2016, 12:08pm UTC](https://forums.fusetools.com/t/preview-on-android-emulator/5486/3 "2016-11-08T12:08:13Z")

</div>

i don’t understand how to make my app work on real android device.  
i want to use the emulator installed from fuse install command.

---

<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:** [November 8, 2016, 12:13pm UTC](https://forums.fusetools.com/t/preview-on-android-emulator/5486/4 "2016-11-08T12:13:11Z")

</div>

Documentation on how to use real devices is provided here: [https://www.fusetools.com/docs/basics/preview-and-export](https://www.fusetools.com/docs/basics/preview-and-export)

If you can provide the other info I requested we will still try to look into the issue. 🙂

---

<div class="post-metadata">

**Author:** ![Aleme\_Gabriel](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/aleme_gabriel/32/477_2.png) [@Aleme\_Gabriel](https://forums.fusetools.com/u/Aleme_Gabriel)\
**Post date:** [November 8, 2016, 12:21pm UTC](https://forums.fusetools.com/t/preview-on-android-emulator/5486/5 "2016-11-08T12:21:54Z")

</div>

```auto
c:\sdc-live\build\Android\Preview\cache\ux11\MainView.g.uno(69,93,69,125): Warni
ng W0000: Absolute path C:/sdc-live/Assets/concert.mp4. In Uno, paths should be
relative to specifying file
(16.6s)

Generating code and data (2:6)
C:\Users\Emenike pc\AppData\Local\Fusetools\Fuse\App\app-0.28.1.8199\Packages\Un
oCore\0.39.1\targets\android\@(Project.Name)\app\build.gradle(1.1): FATAL E6101:
 Object reference not set to an instance of an object.
C:\Users\Emenike pc\AppData\Local\Fusetools\Fuse\App\app-0.28.1.8199\Packages\Un
oCore\0.39.1\targets\android\@(Project.Name)\app\build.gradle(1,2): FatalError E
6101: Object reference not set to an instance of an object.
Build ended
fuse: Failed to compile project

```

---

<div class="post-metadata">

**Author:** ![Aleme\_Gabriel](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/aleme_gabriel/32/477_2.png) [@Aleme\_Gabriel](https://forums.fusetools.com/u/Aleme_Gabriel)\
**Post date:** [November 8, 2016, 1:15pm UTC](https://forums.fusetools.com/t/preview-on-android-emulator/5486/6 "2016-11-08T13:15:11Z")

</div>

FATAL E6101: Object reference not set to an instance of an object.  
fuse: Errors were encountered while building the project

---

<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:** [November 8, 2016, 1:29pm UTC](https://forums.fusetools.com/t/preview-on-android-emulator/5486/7 "2016-11-08T13:29:40Z")

</div>

This error occurs because the space in your username `Emenike pc` causes problems for the Android NDK. It is not related to the emulator in any way. 🙂

We have added a fix for this in the latest Fuse release (still on the QA channel, [here](https://www.fusetools.com/downloads/channel/qa)).  
If you download this and then build with Gradle `fuse build -tandroid -DGRADLE` or `fuse preview -tandroid -DGRADLE` it should work.

---

<div class="post-metadata">

**Author:** ![Aleme\_Gabriel](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/aleme_gabriel/32/477_2.png) [@Aleme\_Gabriel](https://forums.fusetools.com/u/Aleme_Gabriel)\
**Post date:** [November 8, 2016, 1:38pm UTC](https://forums.fusetools.com/t/preview-on-android-emulator/5486/8 "2016-11-08T13:38:02Z")

</div>

how do i upgrade from fuse 0.28 to fuse 0.29?

---

<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:** [November 8, 2016, 1:44pm UTC](https://forums.fusetools.com/t/preview-on-android-emulator/5486/9 "2016-11-08T13:44:59Z")

</div>

You download the installer from [here](https://www.fusetools.com/downloads/channel/qa)

---

<div class="post-metadata">

**Author:** ![Aleme\_Gabriel](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/aleme_gabriel/32/477_2.png) [@Aleme\_Gabriel](https://forums.fusetools.com/u/Aleme_Gabriel)\
**Post date:** [November 8, 2016, 1:56pm UTC](https://forums.fusetools.com/t/preview-on-android-emulator/5486/10 "2016-11-08T13:56:34Z")

</div>

i have downloaded it. do i need to uninstall fuse 0.28 first?

---

<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:** [November 8, 2016, 1:57pm UTC](https://forums.fusetools.com/t/preview-on-android-emulator/5486/11 "2016-11-08T13:57:57Z")

</div>

No, the installer will take care of that.

---

<div class="post-metadata">

**Author:** ![Aleme\_Gabriel](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/aleme_gabriel/32/477_2.png) [@Aleme\_Gabriel](https://forums.fusetools.com/u/Aleme_Gabriel)\
**Post date:** [November 8, 2016, 2:04pm UTC](https://forums.fusetools.com/t/preview-on-android-emulator/5486/12 "2016-11-08T14:04:35Z")

</div>

ok. thanks let me try

---

<div class="post-metadata">

**Author:** ![Aleme\_Gabriel](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/aleme_gabriel/32/477_2.png) [@Aleme\_Gabriel](https://forums.fusetools.com/u/Aleme_Gabriel)\
**Post date:** [November 8, 2016, 3:02pm UTC](https://forums.fusetools.com/t/preview-on-android-emulator/5486/13 "2016-11-08T15:02:16Z")

</div>

i got this error while trying to preview on my emulator

fuse preview -tandroid -DGRADLE  
Fuse 0.29.0 (build 8396)  
fuse: Could not find a fuse project to 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:** [November 8, 2016, 3:09pm UTC](https://forums.fusetools.com/t/preview-on-android-emulator/5486/14 "2016-11-08T15:09:48Z")

</div>

Unfortunately, you have to specify the unoproj manually when using Gradle in preview. So the command would be

`fuse preview <your unoproj> -tandroid -DGRADLE`

---

<div class="post-metadata">

**Author:** ![Aleme\_Gabriel](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/aleme_gabriel/32/477_2.png) [@Aleme\_Gabriel](https://forums.fusetools.com/u/Aleme_Gabriel)\
**Post date:** [November 8, 2016, 3:21pm UTC](https://forums.fusetools.com/t/preview-on-android-emulator/5486/15 "2016-11-08T15:21:38Z")

</div>

i go this error following the above instruction

fuse preview myfuseapp -tandroid -DGRADLE  
Fuse 0.29.0 (build 8396)  
fuse: Could not find a fuse project to 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:** [November 8, 2016, 3:27pm UTC](https://forums.fusetools.com/t/preview-on-android-emulator/5486/16 "2016-11-08T15:27:38Z")

</div>

It looks like you’re missing `.unoproj` at the end of `myfuseapp`. It should be `myfuseapp.unoproj`.

---

<div class="post-metadata">

**Author:** ![Aleme\_Gabriel](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/aleme_gabriel/32/477_2.png) [@Aleme\_Gabriel](https://forums.fusetools.com/u/Aleme_Gabriel)\
**Post date:** [November 8, 2016, 3:30pm UTC](https://forums.fusetools.com/t/preview-on-android-emulator/5486/17 "2016-11-08T15:30:24Z")

</div>

i corrected it and yet still error. is there something else i’m missing?

fuse preview myfuseapp.unoproj -tandroid -DGRADLE  
Fuse 0.29.0 (build 8396)  
Build started: FullCompile  
Configuring (1.7s)  
Compiling syntax tree (10.2s)  
Generating code and data (16.9s)  
C:\Users\Emenike pc\AppData\Local\Fusetools\Fuse\App\app-0.29.0.8396\Packages\UnoCore\0.40.2\targets\android@(Project.Name)\app\build.gradle(1.1): FATAL E6101: Object reference not set to an instance of an object.  
C:\Users\Emenike pc\AppData\Local\Fusetools\Fuse\App\app-0.29.0.8396\Packages\UnoCore\0.40.2\targets\android@(Project.Name)\app\build.gradle(1,2): FatalError E6101: Object reference not set to an instance of an object.  
Build ended  
fuse: Failed to compile project

---

<div class="post-metadata">

**Author:** ![Aleme\_Gabriel](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/aleme_gabriel/32/477_2.png) [@Aleme\_Gabriel](https://forums.fusetools.com/u/Aleme_Gabriel)\
**Post date:** [November 8, 2016, 8:28pm UTC](https://forums.fusetools.com/t/preview-on-android-emulator/5486/18 "2016-11-08T20:28:23Z")

</div>

Finally got the app build. i had to install android 21. but i notice it is taking a long time to install apk on device.is it normal?  
please help. i got this error

```auto
$ fuse preview myfuseapp.unoproj -tandroid -DGRADLE
Fuse 0.29.0 (build 8396)
Build started: FullCompile
Configuring (1.6s)
Compiling syntax tree (5.5s)
Generating code and data (25.1s)
Building Android app
2/2: myfuseapp.apk
(1:26)

Build completed in 119.01 seconds
Build ended
Installing APK on 1 device(s)
Launching activity 'myfuseapp'USER PID PPID VSIZE RSS WCHAN PC NAME

root 1 0 704 372 ffffffff 00000000 S /init

root 2 0 0 0 ffffffff 00000000 S kthreadd

root 3 2 0 0 ffffffff 00000000 S ksoftirqd/0

root 5 2 0 0 ffffffff 00000000 S kworker/0:0H

root 7 2 0 0 ffffffff 00000000 S migration/0

root 8 2 0 0 ffffffff 00000000 S rcu_preempt

root 9 2 0 0 ffffffff 00000000 S rcu_bh

root 10 2 0 0 ffffffff 00000000 S rcu_sched

root 11 2 0 0 ffffffff 00000000 R migration/1

root 12 2 0 0 ffffffff 00000000 R ksoftirqd/1

root 14 2 0 0 ffffffff 00000000 S kworker/1:0H

root 15 2 0 0 ffffffff 00000000 R migration/2

root 16 2 0 0 ffffffff 00000000 R ksoftirqd/2

root 18 2 0 0 ffffffff 00000000 S kworker/2:0H

root 19 2 0 0 ffffffff 00000000 R migration/3

root 20 2 0 0 ffffffff 00000000 R ksoftirqd/3

root 22 2 0 0 ffffffff 00000000 S kworker/3:0H

root 23 2 0 0 ffffffff 00000000 S khelper

root 24 2 0 0 ffffffff 00000000 S suspend_sys_syn

root 25 2 0 0 ffffffff 00000000 S suspend

root 26 2 0 0 ffffffff 00000000 S writeback

root 27 2 0 0 ffffffff 00000000 S bioset

root 28 2 0 0 ffffffff 00000000 S kblockd

root 29 2 0 0 ffffffff 00000000 S khubd

root 43 2 0 0 ffffffff 00000000 S devfreq_wq

ERROR: Process has exited, so the requested information is not available.
root 45 2 0 0 ffffffff 00000000 S cfg80211

root 46 2 0 0 ffffffff 00000000 S iewq

root 47 2 0 0 ffffffff 00000000 D sprd_tb_thread

root 48 2 0 0 ffffffff 00000000 S kworker/2:1

root 49 2 0 0 ffffffff 00000000 S pm_print

root 50 2 0 0 ffffffff 00000000 S kswapd0

root 51 2 0 0 ffffffff 00000000 S ksmd

root 52 2 0 0 ffffffff 00000000 S fsnotify_mark

root 53 2 0 0 ffffffff 00000000 S crypto

root 69 2 0 0 ffffffff 00000000 S ion_heap_system

root 70 2 0 0 ffffffff 00000000 S ion_heap_carveo

root 71 2 0 0 ffffffff 00000000 S GIRQ WorkQueue

root 72 2 0 0 ffffffff 00000000 S f5376000.spi

root 73 2 0 0 ffffffff 00000000 S f5378000.spi

root 74 2 0 0 ffffffff 00000000 S kworker/1:1

root 75 2 0 0 ffffffff 00000000 S kworker/3:1

root 76 2 0 0 ffffffff 00000000 S f537a000.spi

root 77 2 0 0 ffffffff 00000000 S dwc_otg

root 78 2 0 0 ffffffff 00000000 S usb 2 pc wq

root 79 2 0 0 ffffffff 00000000 S usb detect wq

root 80 2 0 0 ffffffff 00000000 S ft5x0x_ts_resum

root 81 2 0 0 ffffffff 00000000 S focal-wait-queu

root 82 2 0 0 ffffffff 00000000 S headset_button

root 83 2 0 0 ffffffff 00000000 S headset_detect

root 84 2 0 0 ffffffff 00000000 S headset_sts_che

root 85 2 0 0 ffffffff 00000000 S headset_reg_dum

root 86 2 0 0 ffffffff 00000000 S adpgar_byp_sele

root 87 2 0 0 ffffffff 00000000 S sprdbat_monit

fuse: Android run failed

```

---

<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:** [November 9, 2016, 6:49am UTC](https://forums.fusetools.com/t/preview-on-android-emulator/5486/19 "2016-11-09T06:49:33Z")

</div>

It’s normal that it takes a while to install the apk for the first time. But from then on you get instant reload.

It looks like there is another problem though. Can you please try to see if you get the same problem if you do `fuse build` instead of `fuse preview`?

`fuse build myfuseapp.unoproj -tandroid -DGRADLE -r`

Please also post detailed information about the model of your Android device, and which version of Android it’s running.

---

<div class="post-metadata">

**Author:** ![Aleme\_Gabriel](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/aleme_gabriel/32/477_2.png) [@Aleme\_Gabriel](https://forums.fusetools.com/u/Aleme_Gabriel)\
**Post date:** [November 9, 2016, 7:24am UTC](https://forums.fusetools.com/t/preview-on-android-emulator/5486/20 "2016-11-09T07:24:47Z")

</div>

Model is Halo  
Android version 4.42

[Next page](https://forums.fusetools.com/t/preview-on-android-emulator/5486.md?page=2)
