Skip to content

Throwing Errors in Sample Intune app #226

@MikeP0911

Description

@MikeP0911

Hello

I downloaded the Intune Project and when I tried to run it, they show a lot of error.

Error CS0234 The type or namespace name 'FormsAppCompatActivity' does not exist in the namespace 'Xamarin.Forms.Platform.Android' (are you missing an assembly reference?) active-directory-xamarin-intune.Android C:\IntuneMAM\IntuneClient\active-directory-xamarin-intune.Android\MainActivity.cs

Error CS0234 The type or namespace name 'Forms' does not exist in the namespace 'Xamarin.Forms' (are you missing an assembly reference?) active-directory-xamarin-intune.Android C:\IntuneMAM\IntuneClient\active-directory-xamarin-intune.Android\MainActivity.cs

Error CS0103 The name 'LoadApplication' does not exist in the current context active-directory-xamarin-intune.Android C:\IntuneMAM\IntuneClient\active-directory-xamarin-intune.Android\MainActivity.cs

Error android:exported needs to be explicitly specified for element <receiver#com.microsoft.intune.mam.client.service.MAMBackgroundReceiver>. Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details. active-directory-xamarin-intune.Android C:\IntuneMAM\IntuneClient\active-directory-xamarin-intune.Android\obj\Debug\130\AndroidManifest.xml 34

Please help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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