Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Error XA4212 when trying to build the project #12

Description

@malthuis

When I try to build my Xamarin.Android project, I get the following error:

error XA4212: Type Com.Mapbox.Services.Android.Location.LostLocationEngine implements Android.Runtime.IJavaObject but does not inherit Java.Lang.Object or Java.Lang.Throwable. This is not supported.

I was successful mitigating this error by putting the following in my project file:
<PropertyGroup> <AndroidErrorOnCustomJavaObject>false</AndroidErrorOnCustomJavaObject> </PropertyGroup>

But if I do that, the app just crashes with: "'java.exe' exited with code 1".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions