Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throwing Errors in Sample Intune app #226

Open
MikeP0911 opened this issue Aug 25, 2023 · 1 comment
Open

Throwing Errors in Sample Intune app #226

MikeP0911 opened this issue Aug 25, 2023 · 1 comment

Comments

@MikeP0911
Copy link

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
Copy link
Author

The issue is in the below sample

https://github.com/Azure-Samples/active-directory-xamarin-native-v2

Please look into it and help us resolving the issues in android project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant