Closed JulianoEngineer closed 8 years ago
/libs
folder?:facebook
module required?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'
... }`
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.
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
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.
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.
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: