title: android.view.InflateException: Binary XML file line : Error inflating class com.facebook.widget.LoginButton
body: <p>I'm working on an android application using facebook sdk 3.19.0 as a library and It works fine.</p>
  
  <p>Now i want  to publish the app on Google Play, so i started converting facebook sdk to jar file and added it to my projet. But i am getting this err: </p>
  
  <blockquote>
    <p>android.view.InflateException: Binary XML file line #96: Error
    inflating class com.facebook.widget.LoginButton</p>
  </blockquote>
  
  <pre><code>10-01 12:03:24.591: E/AndroidRuntime(30559): FATAL EXCEPTION: main
  10-01 12:03:24.591: E/AndroidRuntime(30559): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.moroccotd.mtd/com.moroccotd.mtd.MainActivity}: android.view.InflateException: Binary XML file line #96: Error inflating class com.facebook.widget.LoginButton
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2114)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2139)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at android.app.ActivityThread.access$700(ActivityThread.java:143)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1241)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at android.os.Handler.dispatchMessage(Handler.java:99)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at android.os.Looper.loop(Looper.java:137)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at android.app.ActivityThread.main(ActivityThread.java:4960)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at java.lang.reflect.Method.invokeNative(Native Method)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at java.lang.reflect.Method.invoke(Method.java:511)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at dalvik.system.NativeStart.main(Native Method)
  10-01 12:03:24.591: E/AndroidRuntime(30559): Caused by: android.view.InflateException: Binary XML file line #96: Error inflating class com.facebook.widget.LoginButton
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at android.view.LayoutInflater.createView(LayoutInflater.java:619)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:693)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at android.view.LayoutInflater.rInflate(LayoutInflater.java:752)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at android.view.LayoutInflater.rInflate(LayoutInflater.java:760)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at android.view.LayoutInflater.rInflate(LayoutInflater.java:760)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at android.view.LayoutInflater.inflate(LayoutInflater.java:495)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:318)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at android.app.Activity.setContentView(Activity.java:1925)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at com.moroccotd.mtd.MainActivity.onCreate(MainActivity.java:47)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at android.app.Activity.performCreate(Activity.java:5203)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2078)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    ... 11 more
  10-01 12:03:24.591: E/AndroidRuntime(30559): Caused by: java.lang.reflect.InvocationTargetException
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at java.lang.reflect.Constructor.constructNative(Native Method)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at android.view.LayoutInflater.createView(LayoutInflater.java:593)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    ... 24 more
  10-01 12:03:24.591: E/AndroidRuntime(30559): Caused by: android.content.res.Resources$NotFoundException: File Activer services Google Play from drawable resource ID #0x7f060006: .xml extension required
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at android.content.res.Resources.loadColorStateList(Resources.java:2947)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at android.content.res.Resources.getColor(Resources.java:1619)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    at com.facebook.widget.LoginButton.&lt;init&gt;(LoginButton.java:210)
  10-01 12:03:24.591: E/AndroidRuntime(30559):    ... 27 more
  </code></pre>
  
  <p>Xml file :</p>
  
  <pre><code>&lt;com.facebook.widget.LoginButton
              android:id="@+id/btn_fcb_login"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_marginTop="10dip"
              android:text="@string/login_fcb_btn" /&gt;
  </code></pre>
  
  <p>Can anybody explain why this error occurs? Any clue on where I am going wrong?  </p>