# Android export FileSystem error

**URL:** <https://forums.fusetools.com/t/android-export-filesystem-error/3747>\
**Category:** Bug Reports\
**Created:** [December 24, 2016, 1:40pm UTC](https://forums.fusetools.com/t/android-export-filesystem-error/3747 "2016-12-24T13:40:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonatan](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@Jonatan](https://forums.fusetools.com/u/Jonatan)\
**Post date:** [December 24, 2016, 1:40pm UTC](https://forums.fusetools.com/t/android-export-filesystem-error/3747/1 "2016-12-24T13:40:23Z")

</div>

OS: Windows 7

Fuse Version: 0.31.2 (build 9180)

My Code (at the exact moment of posting): [https://github.com/norbye/SkiLogg-Fuse/tree/9fc5acbe7f3581a9d1d2e355a474202971c99901](https://github.com/norbye/SkiLogg-Fuse/tree/9fc5acbe7f3581a9d1d2e355a474202971c99901)

Tested on:

- Samsung Galaxy Note 10.1 2014 edition - Android 5.something (I think)
- Samsung Galaxy S5 - Android 6.0.1

Error logs:

1. CMD: [http://pastebin.com/fp0c5zKq](http://pastebin.com/fp0c5zKq)

What I did:

1. Wrote code
2. Tested code in preview
3. Exported my project directly to the device using: fuse build --target=Android --run (error log 1)

I have also tried to use the normal export option in the GUI with no luck.

In the preview the app works exactly as expected, but when I export it all the dynamic stuff seems to stop working.

App preview screenshot:

 ![file](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/SxlpqJpyjtnu-image-1482586483718.png)

Why I think this is a bug in FuseTools and not a bug in my code:

1. It works perfectly in the preview but not in the export
2. I assume that the error originates from Permission Denial: getCurrentUser() from pid=17054, ui  
d=10262 requires android.permission.INTERACT\_ACROSS\_USERS. I tried googling it to find a solution, but accoring to this StackOverflow post it doesn’t seem like it’s that easy to fix: [http://stackoverflow.com/questions/20578474/permission-denial-this-requires-android-permission-interact-across-users-full](http://stackoverflow.com/questions/20578474/permission-denial-this-requires-android-permission-interact-across-users-full)

If you need any more info to reproduce the error, please let me know, I’ll be happy to help 🙂

Merry xmas, and thanks in advance.

---

<div class="post-metadata">

**Author:** ![Anders\_Bondehagen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_bondehagen/32/98_2.png) [@Anders\_Bondehagen](https://forums.fusetools.com/u/Anders_Bondehagen)\
**Post date:** [December 27, 2016, 10:42am UTC](https://forums.fusetools.com/t/android-export-filesystem-error/3747/2 "2016-12-27T10:42:19Z")

</div>

1. When you say it works perfectly in the preview, do you mean local preview or preview on device?
2. The error log say you got problems reading/writing to your file path.

````auto
I/SkiLogg (17054): Error: JavaScript error in MainView.ux line 164: Name: Uno.IO
.IOException
I/SkiLogg (17054): Error message: Couldn't open file: /data/data/com.apps.skilog
g/files/skilog.txt```
The permisson problem you are talking about is only a warning and I don't think it's related to Fuse.

After a quick look at your code, I would recommend to remove all your sync read/write calls and use the promise based instead. It will currently block your UI from updating and make your app feel laggy.
````

---

<div class="post-metadata">

**Author:** ![Jonatan](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@Jonatan](https://forums.fusetools.com/u/Jonatan)\
**Post date:** [December 27, 2016, 12:00pm UTC](https://forums.fusetools.com/t/android-export-filesystem-error/3747/3 "2016-12-27T12:00:40Z")

</div>

Thanks for the reply.

1. It works as expected in local and android preview.

I’ll try to update everything to async soon, and will come back with an update

---

<div class="post-metadata">

**Author:** ![matthewpark](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@matthewpark](https://forums.fusetools.com/u/matthewpark)\
**Post date:** [November 21, 2024, 12:14pm UTC](https://forums.fusetools.com/t/android-export-filesystem-error/3747/4 "2024-11-21T12:14:59Z")

</div>

Thank you for share this information
