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 7248889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T22:12:09+00:00 2026-05-28T22:12:09+00:00

I’m trying to build an application using the facebook-android-sdk. I’ve pulled the sdk off

  • 0

I’m trying to build an application using the facebook-android-sdk. I’ve pulled the sdk off github and imported the project into eclipse (under com_android_facebook). From there, I’ve added com_android_facebook to the build path of my project library. Looks like this:

   main_project
   |
   +---shared_project_library ([x] Is Library)
   |
   |       ^ 
   |       | project added to build path properties of 'shared_project_library'
   |       .
   +---com_facebook_android 
       v src
          v [+] com.facebook.android
             > AsyncFacebookRunner.java
             > DialogError.java
             > ...

My main project is actually loading the shared_project_library as a library itself. Because I will have other projects based off shared_project_library, I’ve added the com_facebook_android project (imported facebook-sdk) at that level. Is it valid to pile up libraries on top of shared libraries like this? Might be my problem.

Things compile fine but when I go to run it, Dalvik cannot find the com.facebook.android.Facebook method. It’s like the application only knows about com_facebook_android at compile time, but not run-time. Any ideas what’s wrong? I’ve also tried exporting the com_android_facebook project as a Java JAR and including it under the “Libraries” section of the shared_project_library but still no luck.

dalvikvm  E  Could not find class 'com.facebook.android.Facebook', referenced from method com.lib.shared.myShare_fbook.<init>

PS: I’ve added the myShare_fbook to the AndroidManifest Activity permissions (of main_project), as well as added INTERNET permissions (per facebook sdk instructions)

  • 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-05-28T22:12:10+00:00Added an answer on May 28, 2026 at 10:12 pm

    I had the JAR and com_facebook_android included in the shared_project_library properties. I removed the JAR and left the com_facebook_android reference in under Android > Library and it’s working fine now. To verify I created a quick test project and tried to use the JAR, and got the errors below so guess this one was my fault.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
We're building an app, our first using Rails 3, and we're having to build
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I am currently running into a problem where an element is coming back from

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.