Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Error trying to use recent version of Facebook SDK to authenticate

$
0
0

i want to use the current version of the facebook SDK for android. am trying to walk through this tutorial https://developers.facebook.com/docs/tutorials/androidsdk/3.0/scrumptious/authenticate/

i downloaded the Xamarin.FacebookBinding nuget package: http://www.nuget.org/packages/Xamarin.FacebookBinding/

but i'm getting an error: Error inflating class Xamarin.FacebookBinding.Widget.LoginButton

not sure if there's a namespacing issue here? thanks, pete

here's the full stack trace: Android.Views.InflateException: Binary XML file line #25: Error inflating class Xamarin.FacebookBinding.Widget.LoginButton at Android.Runtime.JNIEnv.CallObjectMethod (intptr,intptr,Android.Runtime.JValue[]) [0x00024] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.8.0-branch/9486a4ec/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:145 at Android.Views.LayoutInflater.Inflate (int,Android.Views.ViewGroup,bool) [0x00043] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.8.0-branch/9486a4ec/source/monodroid/src/Mono.Android/platforms/android-8/src/generated/Android.Views.LayoutInflater.cs:456 at Com.Facebook.Android.SplashFragment.OnCreateView (Android.Views.LayoutInflater,Android.Views.ViewGroup,Android.OS.Bundle) [0x00001] in c:\Temp\AndroidFacebookSdk\SplashFragment.cs:26 at Android.Support.V4.App.Fragment.n_OnCreateView_Landroid_view_LayoutInflater_Landroid_view_ViewGroup_Landroid_os_Bundle_ (intptr,intptr,intptr,intptr,intptr) [0x00022] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.8.0-branch/9486a4ec/source/monodroid-bindings/Compatibility-v4/bindings/obj/platform-8/src/generated/Android.Support.V4.App.Fragment.cs:1003 at at (wrapper dynamic-method) object.ca7ffc70-1ac7-4b7a-ae10-912f1c3b185c (intptr,intptr,intptr,intptr,intptr) at at --- End of managed exception stack trace --- at android.view.InflateException: Binary XML file line #25: Error inflating class Xamarin.FacebookBinding.Widget.LoginButton at at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:698) at at android.view.LayoutInflater.rInflate(LayoutInflater.java:746) at at android.view.LayoutInflater.inflate(LayoutInflater.java:489) at at android.view.LayoutInflater.inflate(LayoutInflater.java:396) at at com.facebook.android.SplashFragment.n_onCreateView(Native Method) at at com.facebook.android.SplashFragment.onCreateView(SplashFragment.java:37) at at android.support.v4.app.Fragment.performCreateView(Fragment.java:1460) at at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:884) at at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1066) at at android.support.v4.app.FragmentManagerImpl.addFragment(FragmentManager.java:1168) at at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:280) at at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:676) at at android.view.LayoutInflater.rInflate(LayoutInflater.java:746) at at android.view.LayoutInflater.inflate(LayoutInflater.java:489) at at android.view.LayoutInflater.inflate(LayoutInflater.java:396) at at android.view.LayoutInflater.inflate(LayoutInflater.java:352) at at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:309) at at android.app.Activity.setContentView(Activity.java:1914) at at com.facebook.android.MainActivity.n_onCreate(Native Method) at at com.facebook.android.MainActivity.onCreate(MainActivity.java:34) at at android.app.Activity.performCreate(Activity.java:5179) at at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094) at at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2074) at at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135) at at android.app.ActivityThread.access$700(ActivityThread.java:143) at at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1241) at at android.os.Handler.dispatchMessage(Handler.java:99) at at android.os.Looper.loop(Looper.java:137) at at android.app.ActivityThread.main(ActivityThread.java:4950) at at java.lang.reflect.Method.invokeNative(Native Method) at at java.lang.reflect.Method.invoke(Method.java:511) at at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1004) at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:771) at at dalvik.system.NativeStart.main(Native Method) at Caused by: java.lang.ClassNotFoundException: Xamarin.FacebookBinding.Widget.LoginButton at at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61) at at java.lang.ClassLoader.loadClass(ClassLoader.java:501) at at java.lang.ClassLoader.loadClass(ClassLoader.java:461) at at android.view.LayoutInflater.createView(LayoutInflater.java:552) at at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687) at ... 33 more at


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>