# Uno.Exception: No RootViewport defined

**URL:** <https://forums.fusetools.com/t/uno-exception-no-rootviewport-defined/6891>\
**Category:** Bug Reports\
**Created:** [June 3, 2017, 4:26pm UTC](https://forums.fusetools.com/t/uno-exception-no-rootviewport-defined/6891 "2017-06-03T16:26:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jesusmartinoza](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/jesusmartinoza/32/659_2.png) [@jesusmartinoza](https://forums.fusetools.com/u/jesusmartinoza)\
**Post date:** [June 3, 2017, 4:26pm UTC](https://forums.fusetools.com/t/uno-exception-no-rootviewport-defined/6891/1 "2017-06-03T16:26:44Z")

</div>

Hi guys, I’m using Fuse Views and feel like kid in christmas 🙂 I follow the [manual](https://www.fusetools.com/docs/xcode-and-android-studio-integration/tutorial) and it works great, but I have a few problems:

1. When I press back button in my native app I get ANR and `I/fuse: Uno.Exception: No RootViewport defined`.

2. I can’t preview `<ExportedViews/>` in Fuse Studio, it outputs:

```auto
?: Error : Couldn't find an App tag in any of the included UX files. Have you forgot to include the UX file that contains the app tag?n

```

- Fuse version 1.0.0 (build 13426)
- Mac OS El Capitan
- UX Markup code:

```auto
<ExportedViews>
    <Panel ux:Template="FilesView">

    </Panel>
</ExportedViews>

```

Regards 🙂

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [June 5, 2017, 12:03pm UTC](https://forums.fusetools.com/t/uno-exception-no-rootviewport-defined/6891/2 "2017-06-05T12:03:54Z")

</div>

Hi jesusmartinoza,

the suggested way to work with Fuse Views is to still have your `<App></App>` tags in the project you’re previewing, and work with the `<ExportedViews></ExportedViews>` in another project that uses the one with `App` stuff. A bit of a setup dance, but should get you going.

As for the other problem, you should provide a little more info, there’s not much to go on with.

---

<div class="post-metadata">

**Author:** ![jesusmartinoza](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/jesusmartinoza/32/659_2.png) [@jesusmartinoza](https://forums.fusetools.com/u/jesusmartinoza)\
**Post date:** [June 5, 2017, 6:11pm UTC](https://forums.fusetools.com/t/uno-exception-no-rootviewport-defined/6891/3 "2017-06-05T18:11:59Z")

</div>

Thanks Uldis!

It’s just that I got confused since the docs said that `<ExportedViews/>` it’s compatible with `<App></App>`

The first problem happen when I run the FuseViewsActivity and press back button, the app get stuck and pops ANR.

Java code:

```auto
public class FilesViewActivity extends FuseViewsActivity {
	
	private ViewHandle fuseView;
	private View nativeView;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.files_view);
		fuseView = ExportedViews.instantiate("FilesView");
		nativeView = fuseView.getView();
		
		fuseView.setCallback("onCardClick", args -> {
			// Callback
		});

		addContentView(nativeView, new RelativeLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));
	}
}

```

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [June 5, 2017, 6:36pm UTC](https://forums.fusetools.com/t/uno-exception-no-rootviewport-defined/6891/4 "2017-06-05T18:36:35Z")

</div>

Yes, that’s a known issue in the currently published docs. Hopefully to be resolved soon.

For the other, we could definitely use a complete, minimal repro that could be attached to an internal ticket…

---

<div class="post-metadata">

**Author:** ![jesusmartinoza](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/jesusmartinoza/32/659_2.png) [@jesusmartinoza](https://forums.fusetools.com/u/jesusmartinoza)\
**Post date:** [June 5, 2017, 6:42pm UTC](https://forums.fusetools.com/t/uno-exception-no-rootviewport-defined/6891/5 "2017-06-05T18:42:23Z")

</div>

Sure where can I upload the minimal repro? 🙂

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [June 5, 2017, 6:47pm UTC](https://forums.fusetools.com/t/uno-exception-no-rootviewport-defined/6891/6 "2017-06-05T18:47:10Z")

</div>

That would be here: [https://www.dropbox.com/request/ZgndLtJQm5eGzG9cicGK](https://www.dropbox.com/request/ZgndLtJQm5eGzG9cicGK)

---

<div class="post-metadata">

**Author:** ![kusma](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/kusma/32/595_2.png) [@kusma](https://forums.fusetools.com/u/kusma)\
**Post date:** [May 22, 2018, 2:46pm UTC](https://forums.fusetools.com/t/uno-exception-no-rootviewport-defined/6891/7 "2018-05-22T14:46:27Z")

</div>

This issue has been found and fixed: [https://github.com/fuse-open/fuselibs/pull/1183](https://github.com/fuse-open/fuselibs/pull/1183)

Fuse 1.9-rc2 will include this fix.
