title: facebook sdk v4.2 shows Error inflating class com.facebook.login.widget.LoginButton
body: <p>I know this is common question, but I have read through all the stack overflow questions without finding an answer.It shows  Error inflating class com.facebook.login.widget.LoginButton. Here my code</p>
  
  <pre><code>&lt;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_marginBottom="30dp"
          android:layout_below="@+id/or"
          android:layout_alignLeft="@+id/login_email_tv"
          android:layout_alignRight="@+id/login_email"
          android:layout_marginTop="10dp"
           /&gt; 
  </code></pre>
  
  <p>and this is my basic code</p>
  
  <p>public class Login_Activity extends Activity {</p>
  
  <pre><code>// Your Facebook APP ID
      private static String APP_ID = "xxxxxxxxxxxxxxxxxxx"; 
  
  
       CallbackManager callbackManager;
  
  //ImageButton fb_login;
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.login_activity);
  
  
       FacebookSdk.sdkInitialize(this.getApplicationContext());
  
          callbackManager = CallbackManager.Factory.create();
  
          LoginManager.getInstance().registerCallback(callbackManager,
                  new FacebookCallback&lt;LoginResult&gt;() {
                      @Override
                      public void onSuccess(LoginResult loginResult) {
                          // App code
                      }
  
                      @Override
                      public void onCancel() {
                           // App code
                      }
  
                      @Override
                      public void onError(FacebookException exception) {
                           // App code   
                      }
          });
  
  
  
  }
  
  
  
  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
      callbackManager.onActivityResult(requestCode, resultCode, data);
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Any one please give me suggestions for this.Am new to android</p>