Hi, when I use the login button in my XML, I get an exception, for example: "The following classes cannot be created: - com.facebook.login.widget.LoginButton (Open Class, Show Error Log)". How can I solve this problem. I need to display the login page, how can I do this?
and this is my xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context="com.example.facebooklogin.MainActivity$PlaceholderFragment" > <com.facebook.login.widget.LoginButton android:id="@+id/login_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_marginTop="30dp" android:layout_marginBottom="30dp" /> </Relative Layout>
android facebook facebook-android-sdk
vinod kumar May 05 '15 at 6:00 a.m. 2015-05-05 06:00
source share