【发布时间】:2017-06-30 03:46:05
【问题描述】:
我正在使用 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 本机__this,System.IntPtr native_savedInstanceState) [0x0000f] 在 :0 06-30 11:40:48.903 I/MonoDroid( 7670):在(包装动态方法) 系统对象:ce197f13-7701-4b2e-840f-19029a77ef6c (intptr,intptr,intptr) 06-30 11:40:48.913 W/艺术 (7670): JNI RegisterNativeMethods:尝试注册 0 个本地方法 android.runtime.JavaProxyThrowable 06-30 11:40:48.918 D/HockeyApp( 7670):将未处理的异常写入: /data/user/0/com.mycompany.myapp/files/9a7dae18-3c5a-4e97-b7cb-4a3f1581c690.stacktrace
我的验证器是这样设置的:
var authenticator = new OAuth2Authenticator(
AuthSettings.ClientId,
AuthSettings.Scope,
new Uri(AuthSettings.AuthorizeUrl),
new Uri(AuthSettings.RedirectUrl),
null,
true);
我也没有使用链接。
有什么想法吗?
【问题讨论】:
标签: c# xamarin xamarin.android xamarin.auth