active-directory-xamarin-native-v2 icon indicating copy to clipboard operation
active-directory-xamarin-native-v2 copied to clipboard

Throwing Errors in Sample Intune app

Open MikeP0911 opened this issue 2 years ago • 1 comments

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

MikeP0911 avatar Aug 25 '23 06:08 MikeP0911