Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Error using ExportAttribute with array parameter

$
0
0

When I'm using ExportAttribute on a managed method with array parameter like this:

    [Export]
    public static int A(int[] b) { ... }

I'll get:

    NotSupportedException: Only primitive types and IJavaObject is supported in array type in callback method parameter or return value

But "int" is a primitive type.

I've found this link on GitHub: github.com/xamarin/xamarin-android/issues/1259
But the problem isn't solved.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>