parse-community / ParseFacebookUtils-Android

A utility library to authenticate ParseUsers with the Facebook SDK
http://docs.parseplatform.org/android/guide/#facebook-users
Other
53 stars 63 forks source link

java.lang.NoClassDefFoundError: com.parse.ParseFacebookUtils$1 persistent error #18

Closed JulianoEngineer closed 8 years ago

JulianoEngineer commented 8 years ago

At Issue #12 apparently the solution for this problem was found. But following the instructions i don't find the same result, and the error using ParseFacebookUtils.initialize() continues to throwing the error. Please provides the correct gradle dependencies for solve this problem. I'm using:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.2.0'
    compile project(':facebook')
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.github.chrisbanes.photoview:library:1.2.3'
    compile 'com.google.android.gms:play-services-ads:8.3.0'
    compile 'com.parse:parsefacebookutils-v4-android:1.10.4@aar'
    //compile fileTree(dir: 'libs', include: 'Parse-*.jar')
grantland commented 8 years ago
  1. What's in your /libs folder?
  2. Is your local :facebook module required?
  3. What's your gradle build output?
rejish4gt commented 8 years ago

The reason why you get the error is because the dependencies for parsefacebookutils isn't being pulled on build so you'd have to add it manually. parsefacebookutils depends on facebooksdk and parse-android. Add the following code into your gradle and it should work fine.

`dependencies { ...

compile 'com.parse:parse-android:1.13.0'
compile 'com.parse:parsefacebookutils-v4-android:1.10.3@aar'
compile 'com.facebook.android:facebook-android-sdk:4.9.0'

... }`

parse-github-bot commented 8 years ago

This issue has not been updated for 7 days. If you have additional information to help pinpoint this issue as an SDK bug, please comment on this issue. We will close this issue in 7 days if no additional information is provided. Thank you for your feedback.

liquiddandruff commented 8 years ago

I get this error too on the vanilla sample project when trying to launch ParseLoginSampleBasic. The other builds like ParseLoginSampleWithDispatchActivity work fine though.

This is on Android Studio 2 beta 4 by the way. Stack trace

                                                                         --------- beginning of crash
02-15 00:04:37.950 303-303/com.parse.loginsample.basic E/AndroidRuntime: FATAL EXCEPTION: main
                                                                         Process: com.parse.loginsample.basic, PID: 303
                                                                         java.lang.NoClassDefFoundError: Failed resolution of: Lcom/parse/Parse;
                                                                             at com.parse.loginsample.basic.SampleApplication.onCreate(SampleApplication.java:35)
                                                                             at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013)
                                                                             at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4707)
                                                                             at android.app.ActivityThread.-wrap1(ActivityThread.java)
                                                                             at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405)
                                                                             at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                             at android.os.Looper.loop(Looper.java:148)
                                                                             at android.app.ActivityThread.main(ActivityThread.java:5417)
                                                                             at java.lang.reflect.Method.invoke(Native Method)
                                                                             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
                                                                             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
                                                                          Caused by: java.lang.ClassNotFoundException: Didn't find class "com.parse.Parse" on path: DexPathList[[zip file "/data/app/com.parse.loginsample.basic-2/base.apk"],nativeLibraryDirectories=[/data/app/com.parse.loginsample.basic-2/lib/x86_64, /vendor/lib64, /system/lib64]]
                                                                             at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
                                                                             at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
                                                                             at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
                                                                             at com.parse.loginsample.basic.SampleApplication.onCreate(SampleApplication.java:35) 
                                                                             at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013) 
.... a lot more 
parse-github-bot commented 8 years ago

This issue has not been updated for 7 days. If you have additional information to help pinpoint this issue as an SDK bug, please comment on this issue. We will close this issue in 7 days if no additional information is provided. Thank you for your feedback.

parse-github-bot commented 8 years ago

We are closing this issue due to another 7 days of inactivity. If you have additional information to help pinpoint this issue as an SDK bug, please reopen it with the additional information.Thank you for your feedback.