-
-
Notifications
You must be signed in to change notification settings - Fork 63
java.lang.NoClassDefFoundError: com.parse.ParseFacebookUtils$1 #12
Comments
Thank you for your feedback. We prioritize issues that have clear and concise repro steps. Please see our Bug Reporting Guidelines about what information should be added to this issue.
|
what more info should I provide ? Any new project template from android studio, compiling those gradle libraries and initiation of ParseFacebookUtils in the ApplicationClass in onCreate(). |
Tested on windows also. Same problem. Switched to .jar instead of aar. Same problem. Please fix. It's a critical issue. compile files('libs/ParseFacebookUtilsV4-1.10.3.jar') |
compile files('libs/ParseFacebookUtilsV4-1.10.3.jar') If you use these 2 jars the error goes away, but the maven library ParseFacebookUtils can't be compiled with Parse android sdk from maven because you will get dex error. |
This is a problem with A workaround for now is to exclude (Note: |
@grantland i have this same issue and the solution you provided did not work for me. i still get the same error: Any advice? |
@heliumb are you sure that |
hey @grantland I'm pretty sure but I'm new at this so forgive me if I'm wrong. I just did several things that the parse website told me not to do and it worked...can you please tell me if this is going to be a problematic solution to this. In my dependencies, I included both parse-android and parsefacebookutils, which the parse website says should cause a DexException but I didn't get one. When I include only parsefacebookutils, it does not seem to be able to locate the standard parse library. Then I imported the entire bolts library (rather than just bolts-appslinks) and excluded bolts from the facebook sdk. Somehow these steps made it work....Is this a proper solution to this issue? I honestly have no idea why this works and I'm worried it won't work tomorrow...Thanks!
|
At the moment the following should work:
Notes:
This shouldn't be a problem, could you point me to the resource that says it would be?
This shouldn't be an issue. What are the errors your seeing and where?
Can you confirm whether or not you're having issues still? |
grantland, thanks for all the help! It is working for me, but I do have to include both the parsefacebookutils and parse-android dependencies. When I include only parsefacebookutils, it is unable to import anything from the standard parse library - i just get complier errors on everything to do with Parse in my code. The parse link that says it should create a DexException to have both parse-android and parsefacebookutils at the same time is https://parse.com/docs/android/guide under Users->Facebook Users->Setup->Step 4 where it says "Add com.parse:parsefacebookutils-v4-android:1.10.3@aar to your Gradle dependencies. This includes the contents of the Parse-*.jar and the com.parse:parse-android:1.10.+ repository, so be sure to remove as needed to prevent duplicate dependencies, otherwise a com.android.dex.DexException will be thrown." Not sure why I need to include both (regular parse-android and parsefacebookutils) but I guess as long as it works, it's fine with me. I will get rid of the wildcard versioning, thanks for the tip! |
strange that you need both, but you shouldn't have a problem with both. the problem outlined there is that you'll get a |
got it. thanks again! |
actually can i ask one more question - where would i look up the most current version of parse.bolts and parse.android so i know which ones to include (to get rid of the wildcard thing)? |
we try to keep the repository READMEs up-to-date, but looking them up on http://search.maven.org/ is always reliable. |
perfect, thanks! |
I have the same problem, but i dont know why for me the solutions don't work. @heliumb / @grantland Could you post your full solution for the grandle file? I'm using this:
Thanks. |
Android studio 1.5.
line that throws the error -> ParseFacebookUtils.initialize(getApplicationContext());
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.facebook.android:facebook-android-sdk:4.6.0'
compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
transitive = true;
}
compile 'com.parse:parsefacebookutils-v4-android:1.10.3@aar'
}
The text was updated successfully, but these errors were encountered: