Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoClassDefFoundError: @ FacebookSocialNetwork class #98

Open
anvesh523 opened this issue Sep 16, 2015 · 2 comments
Open

NoClassDefFoundError: @ FacebookSocialNetwork class #98

anvesh523 opened this issue Sep 16, 2015 · 2 comments

Comments

@anvesh523
Copy link

In below line at runtime app is going to crash ..... with NoClassDefFoundError
" FacebookSocialNetwork fbNetwork = new FacebookSocialNetwork(this, fbScope); "

E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.NoClassDefFoundError: com.github.gorbin.asne.facebook.FacebookSocialNetwork$1
at com.github.gorbin.asne.facebook.FacebookSocialNetwork.(FacebookSocialNetwork.java:87)
at a2a.example.testapp.MainFragment.onCreateView(MainFragment.java:75)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1962)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1016)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1197)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1562)
at android.support.v4.app.FragmentController.execPendingActions(FragmentController.java:330)
at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:511)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1167)
at android.app.Activity.performStart(Activity.java:5192)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2279)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2358)
at android.app.ActivityThread.access$600(ActivityThread.java:156)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1340)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:153)
at android.app.ActivityThread.main(ActivityThread.java:5299)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)

@wahidstephen
Copy link

Even I have the same error. Help? Anyone?

@dryaz
Copy link

dryaz commented Jul 25, 2016

It happens when you try add newer facebook sdk for android and use ASNE same time.
ASNE uses
private Session.StatusCallback

And Session like many other classes is not available in facebook sdk 4+.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants