In my app I have the following code to close the app:
using Uno;
using Uno.Collections;
using Fuse;
using Android.android.os;
using Android.android.app;
using Android.android.content;
using Android.android.net;
using Android.Base;
using Fuse.Triggers.Actions;
public class ExitApp : TriggerAction
{
protected override void Perform(Node target)
{
if defined(Android)
{
var a = Activity.GetAppActivity();
a.finish();
}
else {
debug_log "ExitApp only defined for Android";
}
}
}
This code work in previous versions but now in 0.35.0 i get this:
ExitApp.uno(4.15): E3111: 'Android' does not contain type or namespace 'android'. Could you be missing a package reference?
ExitApp.uno(5.15): E3111: 'Android' does not contain type or namespace 'android'. Could you be missing a package reference?
ExitApp.uno(6.15): E3111: 'Android' does not contain type or namespace 'android'. Could you be missing a package reference?
ExitApp.uno(7.15): E3111: 'Android' does not contain type or namespace 'android'. Could you be missing a package reference?
How can I solve this?
Thanks!