Note that there are some explanatory texts on larger screens.

plurals
  1. PONoClassDefFoundError when running Facebook official example
    primarykey
    data
    text
    <blockquote> <p>Sorry I am new, stackoverflow does not allow me to post image and links...</p> </blockquote> <p>I try to use Official Android SDK (<a href="http://github.com/facebook/facebook-android-sdk/" rel="nofollow noreferrer">http://github.com/facebook/facebook-android-sdk/</a>). I install the SDK and try to run the Example</p> <p>At first, it fails at "build", it cannot find the Facebook SDK, so I try to follow the steps found in SDK page:</p> <blockquote> <p>Add a dependency on the Facebook Android SDK library on your application:</p> <ol> <li>from the File menu, select "Properties"</li> <li>once the project Properties are displayed, open the Android section, which should list the build targets and libraries</li> <li>in the bottom "Library" section, click "Add..." and select the Facebook SDK project</li> <li>refer to <a href="http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject" rel="nofollow noreferrer">http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject</a> for more details</li> </ol> </blockquote> <p>I check the link at #4, it shows a Mac OS X version Eclipse, which has Library section, but on my Vista PC, with Eclipse 3.5.2, it does not have Library section...</p> <p>-<a href="http://developer.android.com/images/developing/adt-props-isLib.png" rel="nofollow noreferrer">http://developer.android.com/images/developing/adt-props-isLib.png</a></p> <p>-<a href="http://farm5.static.flickr.com/4138/4852346022_fc8f6bedbe_b.jpg" rel="nofollow noreferrer">http://farm5.static.flickr.com/4138/4852346022_fc8f6bedbe_b.jpg</a></p> <p>I try to add the Facebook SDK in Java Build Path. Now it can "build" and start, on both Emulator and Device. However, once it started, it crash, the logcat shows:</p> <p>ERROR/AndroidRuntime(518): java.lang.NoClassDefFoundError: com.facebook.android.Util</p> <p>-<a href="http://farm5.static.flickr.com/4138/4852346048_f4a3b998a3_b.jpg" rel="nofollow noreferrer">http://farm5.static.flickr.com/4138/4852346048_f4a3b998a3_b.jpg</a>)</p> <p>I searched around, about "NoClassDefFoundError" program, but seems those solution is solving external JARs files. I have no problem adding other JARs files, and this Facebook SDK is not JAR...</p> <p>I tried Clean, rebuild, delete everything and config again, but can't solve this problem yet.</p> <p>Anyone have idea please help, Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload