<application android:label="ADB2CAuthorization">
<activity android:name="microsoft.identity.client.BrowserTabActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="msal59206468-8451-4503-b081-79b09b295d1a" android:host="auth" />
</intent-filter>
</activity>
</application>
将上述粘贴代码添加到AndroidManifest.xml文件会导致应用程序产生以下错误。
Error XA0134: The application does not have the 'android:debuggable' attribute set in the AndroidManifest.xml.
This is required in order for Fast Deployment to work. This is normally enabled by default by
the Xamarin.Android build system for Debug builds. Please check that you to not have this attribute
set on the 'application' element in your 'AndroidManifest.xml'.
If you have a class that derives from 'Android.App.Application' and are using the '[Application]' make sure the
'Debuggable' property is not set at all as it will override the value for debug builds. 0
添加可调试属性会使应用程序部署失败。
任何人谁成功地集成到他/她的MAUI应用程序的Android请帮助
1条答案
按热度按时间anhgbhbe1#
安卓清单.xml
然后在Android项目MsalActivity.cs内创建一个C#类
有关更多信息,请访问链接https://devblogs.microsoft.com/dotnet/authentication-in-dotnet-maui-apps-msal/,此Xamarin指南可能也会有所帮助https://learn.microsoft.com/en-us/azure/active-directory/develop/msal-net-xamarin-android-considerations