0
私はXamarin.Authパッケージを使用して、ユーザーがGoogleのサインインページから認証できるようにします。それはするだろう、なぜ誰もが見ることができるJava.Lang.ClassNotFoundException WebAuthenticatorActivity
JNIEnv.FindClass(Type) caught unexpected exception: Java.Lang.ClassNotFoundException: md53c585be971e02235139fd1aef11fc0c1.WebAuthenticatorActivity ---> Java.Lang.ClassNotFoundException: Didn't find class "md53c585be971e02235139fd1aef11fc0c1.WebAuthenticatorActivity"
:ここ
はMainActivity.cs
OAuth2Authenticator auth = new OAuth2Authenticator
(
clientId: "client-id.apps.googleusercontent.com",
scope: "",
authorizeUrl: new Uri("https://accounts.google.com/o/oauth2/v2/auth"),
redirectUrl: new Uri("http://www.facebook.com/connect/login_success.html"),
// switch for new Native UI API
// true = Android Custom Tabs and/or iOS Safari View Controller
// false = Embedded Browsers used (Android WebView, iOS UIWebView)
// default = false (not using NEW native UI)
isUsingNativeUI: false
);
auth.Completed += (sender, eventArgs) =>
{
// UI presented, so it's up to us to dimiss it on Android
// dismiss Activity with WebView or CustomTabs
this.Finish();
if (eventArgs.IsAuthenticated)
{
// Use eventArgs.Account to do wonderful things
}
else
{
// The user cancelled
}
};
var ui_object = auth.GetUI(this);
StartActivity(ui_object);
// Set our view from the "main" layout resource
SetContentView(Resource.Layout.Main);
で私のコードは、私はオールウェイズauth.GetUI(この)メソッドを呼び出すときに例外をfolowingで終わりですこの?私はそれをGoogleにしようとしたが、私はこのタイプのエラーを取得する唯一のように見えます。
私はVS 2017 15.5.2とは26
'classes.dex'は便利ですか? 'obj/{configuration}/android/bin'にあります。 –
あなたの' bin/obj'フォルダをクリアして再構築してみてください。 –