我正在使用 Xamarin.Auth 通过 Android 上的隐式流向我的身份提供者进行身份验证。我无法让本机 ui(chrome 自定义选项卡)与 Xamarin.Auth 一起使用,因为我收到以下错误:
未处理的异常:06-30 11:40:48.903 I/MonoDroid(7670):System.MissingMethodException:找不到方法“Android.Support.CustomTabs.CustomTabsIntent.LaunchUrl”。06-30 11:40:48.903 I/MonoDroid(7670): 在 Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_savedInstanceState) [0x0000f] 在 <93e2413825534efca8b597098003b511>:0068003b511 30 11:40:48.903 I/MonoDroid(7670):在(包装动态方法)System.Object:ce197f13-7701-4b2e-840f-19029a77ef6c(intptr,intptr,intptr)06-30 11:40:48.913 W/艺术(7670):JNI RegisterNativeMethods:尝试为 android.runtime.JavaProxyThrowable 注册 0 个本机方法 06-30 11:40:48.918 D/HockeyApp(7670):将未处理的异常写入:/data/user/0/com.mycompany .
我的身份验证器是这样设置的:
var authenticator = new OAuth2Authenticator(
AuthSettings.ClientId,
AuthSettings.Scope,
new Uri(AuthSettings.AuthorizeUrl),
new Uri(AuthSettings.RedirectUrl),
null,
true);
我也没有使用链接。
有任何想法吗?