E3111: 'Android' does not contain type or namespace ...

Hi,

I use Fuse v0.31. I got this error message;

Uno 0.42.3 (build 4084) OS X 10.12 i386 b51f27c

Configuring (7.4 s)
Compiling syntax tree
AndroidListener.uno(26.56): E3111: 'Android' does not contain type or namespace 'java'. Could you be missing a package reference?
AndroidListener.uno(26.82): E3111: 'Android' does not contain type or namespace 'android'. Could you be missing a package reference?
AndroidListener.uno(34.25): E3114: There is nothing named 'DialogInterface' accessible in this scope. Are you missing a package reference?
(0.7 s)

Build completed in 8.12 seconds
    3 errors

AndroidListener.uno

using Uno;
using Uno.UX;
using Uno.Text;
using Uno.Collections;
using Uno.Compiler.ExportTargetInterop;

using Fuse;
using Fuse.Android;
using Fuse.Reactive;
using Fuse.Scripting;

[ForeignInclude(Language.Java, "android.app.Activity",
                               "android.provider.Settings",
                               "android.content.*",
                               "java.security.*",
                               "java.util.regex.*",
                               "java.util.*",
                               "java.net.*",
                               "java.nio.*",
                               "java.io.*")]

[ForeignInclude(Language.ObjC, "sys/types.h", "sys/sysctl.h")]

public extern(Android) class AndroidListener : Android.java.lang.Object, Android.android.content.DialogInterfaceDLROnClickListener
{
	string _string;
	Action<string> _action;
	public AndroidListener (string s, Action<string> a) {
		_string = s;
		_action = a;
	}
    public void onClick(DialogInterface arg0, int arg1) 
    {
    	_action(_string);
    }
}
```

How can I do fix it?

Hey!

I’m guessing that’s bolav’s modalview code? If so, it looks like he’s updated it to work with newer versions of Fuse.

The code was using some features (Android bindings) that we have deprecated and removed in favour of foreign code since it was written.

Hope that helps!