Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8041213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:08:19+00:00 2026-06-05T04:08:19+00:00

While integrating fb sdk in my application i get following error : 06-05 16:01:42.758:

  • 0

While integrating fb sdk in my application i get following error :

06-05 16:01:42.758: E/AndroidRuntime(892): FATAL EXCEPTION: main
06-05 16:01:42.758: E/AndroidRuntime(892): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.biz.fbapp/com.biz.fbapp.FBAppActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class com.facebook.android.LoginButton
06-05 16:01:42.758: E/AndroidRuntime(892):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
06-05 16:01:42.758: E/AndroidRuntime(892):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
06-05 16:01:42.758: E/AndroidRuntime(892):  at android.app.ActivityThread.access$600(ActivityThread.java:123)
06-05 16:01:42.758: E/AndroidRuntime(892):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
06-05 16:01:42.758: E/AndroidRuntime(892):  at android.os.Handler.dispatchMessage(Handler.java:99)
06-05 16:01:42.758: E/AndroidRuntime(892):  at android.os.Looper.loop(Looper.java:137)
06-05 16:01:42.758: E/AndroidRuntime(892):  at android.app.ActivityThread.main(ActivityThread.java:4424)
06-05 16:01:42.758: E/AndroidRuntime(892):  at java.lang.reflect.Method.invokeNative(Native Method)
06-05 16:01:42.758: E/AndroidRuntime(892):  at java.lang.reflect.Method.invoke(Method.java:511)
06-05 16:01:42.758: E/AndroidRuntime(892):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
06-05 16:01:42.758: E/AndroidRuntime(892):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
06-05 16:01:42.758: E/AndroidRuntime(892):  at dalvik.system.NativeStart.main(Native Method)
06-05 16:01:42.758: E/AndroidRuntime(892): Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class com.facebook.android.LoginButton
06-05 16:01:42.758: E/AndroidRuntime(892):  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:691)
06-05 16:01:42.758: E/AndroidRuntime(892):  at android.view.LayoutInflater.rInflate(LayoutInflater.java:739)
06-05 16:01:42.758: E/AndroidRuntime(892):  at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
06-05 16:01:42.758: E/AndroidRuntime(892):  at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
06-05 16:01:42.758: E/AndroidRuntime(892):  at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
06-05 16:01:42.758: E/AndroidRuntime(892):  at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:251)
06-05 16:01:42.758: E/AndroidRuntime(892):  at android.app.Activity.setContentView(Activity.java:1835)
06-05 16:01:42.758: E/AndroidRuntime(892):  at com.biz.fbapp.FBAppActivity.onCreate(FBAppActivity.java:53)
06-05 16:01:42.758: E/AndroidRuntime(892):  at android.app.Activity.performCreate(Activity.java:4465)
06-05 16:01:42.758: E/AndroidRuntime(892):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
06-05 16:01:42.758: E/AndroidRuntime(892):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
06-05 16:01:42.758: E/AndroidRuntime(892):  ... 11 more
06-05 16:01:42.758: E/AndroidRuntime(892): Caused by: java.lang.ClassNotFoundException: com.facebook.android.LoginButton
06-05 16:01:42.758: E/AndroidRuntime(892):  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
06-05 16:01:42.758: E/AndroidRuntime(892):  at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
06-05 16:01:42.758: E/AndroidRuntime(892):  at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
06-05 16:01:42.758: E/AndroidRuntime(892):  at android.view.LayoutInflater.createView(LayoutInflater.java:552)
06-05 16:01:42.758: E/AndroidRuntime(892):  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680)
06-05 16:01:42.758: E/AndroidRuntime(892):  ... 21 more

on this line

setContentView(R.layout.main);

code on main.xml is

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="fill_parent"
    android:layout_height="fill_parent" android:background="@drawable/white"
    android:gravity="center_horizontal">

    <com.biz.fbapp.LoginButton
        android:id="@+id/login"
        android:src="@drawable/login_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:layout_margin="30dp"
        />

    <TextView android:id="@+id/txt" 
        android:text="@string/hello"
        android:textColor="@drawable/black"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        />

    <Button android:id="@+id/uploadButton"
        android:text="@string/upload"
        android:visibility="invisible"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:paddingRight="20dp" 
        android:paddingLeft="20dp"
        android:layout_margin="20dp" 
        />

    <Button android:id="@+id/requestButton"
        android:text="@string/request"
        android:visibility="invisible"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:paddingRight="20dp" 
        android:paddingLeft="20dp"
        android:layout_margin="20dp" 
        />


    <Button android:id="@+id/postButton" 
        android:text="@string/post"
        android:visibility="invisible"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:paddingRight="20dp" 
        android:paddingLeft="20dp"
        android:layout_margin="20dp" 
        />

    <Button android:id="@+id/deletePostButton" 
        android:text="@string/delete"
        android:visibility="invisible"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:paddingRight="20dp" 
        android:paddingLeft="20dp"
        android:layout_margin="20dp" 
        />



</LinearLayout>

Please help me by telling what I have missed or done wrong.

Edit :

Now I get noclassdeffound even after i imported that file, unable to add library on that specific project..

Thanks
Shruti

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T04:08:21+00:00Added an answer on June 5, 2026 at 4:08 am

    Caused by: android.view.InflateException: Binary XML file line #7:
    Error inflating class com.facebook.android.LoginButton

    There is no LoginButton in the main source of that SDK.
    It’s available in the sample code only, so it just fails to load the unavailable class (ClassNotFoundException)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While integrating backgroundrb-rails3 I get the following error, ~/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:148:in `parse': couldn't parse YAML at
I am getting following weird error while integrating SWF,Primefaces 2.2.1,JSF 2,Spring Security 3,Spring 3.1.0
I am new in this field.i am integrating LinkedIn in my native application.While i
I got this error while adding the hash key to the facebook application, for
So, if I try to remove elements from a Java HashSet while iterating, I
I integrated third party scanning sdk in my iPhone application. My application is navigationbased
I'm integrating coredata into my existing application as given in http://wiresareobsolete.com/wordpress/2009/12/adding-core-data-existing-iphone-projects/ . I'm facing
I have a web application that is integrating with Twitter's OAuth API. I registered
While integrating a Django app I have not used before, I found two different
While integrating two subsystems, we were forced to use multiple SessionFactory instances, which lead

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.