You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

.NET MAUI集成Azure B2C(MSAL)安卓端配置报错求助

.NET MAUI安卓集成MSAL遇到XA0134错误求助

在.NET MAUI安卓项目的AndroidManifest.xml中添加了以下MSAL相关配置:

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

添加后出现XA0134错误:

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

尝试手动添加android:debuggable属性后,应用又无法正常部署。现寻求已成功将MSAL集成到MAUI安卓应用的开发者提供解决方案。


内容的提问来源于stack exchange,提问作者Tanaka Mawere

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.11 14:01:12