-
-
Notifications
You must be signed in to change notification settings - Fork 735
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
Library source does not match the bytecode for class ParseFacebookUtils #1140
Comments
Thanks for opening this issue!
|
It seems to say that there was no such method:
Is the method there and accessible? Can you try with SDK 1.26.0? The Facebook SDK and maybe some methods have been touched in #1105. |
Within ParseFacebookUtils.java there is not a " static " method for this so I guess the error is correct. I can only see an override for a public Task at the bottom of this file however, this is not static
I have tried with SDK 1.26.0, cleaned and rebuild the project but still the exact same error, I wonder if there is any way around this ? |
Let's go one step back and look at your code. |
I keep trying to go over the code however I cannot identify where I may be calling the wrong method or an alternative, I apologize as I am not well versed in Kotlin or Android Studio but I have copied the code (with the method suggested) from the ParseFacebookUtils documentation and still receive the same error, the code is as below:
The method being called is |
You could set a breakpoint and debug step through the code to see what is going on. As you can see in the SDK, Parse-SDK-Android/facebook/src/main/java/com/parse/facebook/ParseFacebookUtils.java Lines 608 to 626 in 2945b30
And it's also defined in
Unless your proguard config removes that method, I can't think of a reason it couldn't be called. Maybe paste your SDK implementation from gradle here to take a look at. |
I've tried stepping through the code but without a real understanding of what's happening its hard to determine what is going on. I can see that it appears to be running onActivityResult from within ParseFacebookUtils.java at the point it seems to crash is when it try's to run this code from the FacebookController.java
(more specifically at the point of trySetResult, the getAuthData itself seems to have populated with values). My list of gradle dependencies are as below:
Proguard is set up as it is by default:
|
Some time everything was consolidated into the Android SDK repository and published together. @Code-B1 you should use
instead of the deprecated and archived
|
@L3K0V Thank you so much, changing this code seems to stop the application from crashing and I can see I now have a user created inside back4app so seems to have resolved the issue. @mtrezza Thank you also for taking so much time to help assist me with this one. |
New Issue Checklist
Issue Description
When following the instructions to implement Facebook login using the Parse SDK (instructions provided by Back4App) I have reached a hurdle where on clicking on the log in button the project has a fatal exception and crashes.
The fatal exception details the below:
When looking within the ParseFacebookUtils.java it appears (at least the first clickable link in the error) that there is an issue relating to bolts:
Required type: bolts.Task
Provided: com.parse.boltsinternal.Task
I know this file is read-only as such unsure how I can resolve this issue. Unfortunately I am very new to Kotlin and Android Studio and searching online has not brought much luck with " similar " issues being resolved by cleaning and the project, rebuilding, changing compileSdk versions etc but none of these have worked for me and I am at a point where I am wondering if I will be able to use this SDK for Facebook login at all due to this error so could do with some assistance.
Steps to reproduce
Using the latest SDK and following the steps for implementing Facebook Login provided on the back4app tutorials.
Actual Outcome
I get this error when trying to log in
Expected Outcome
The code to execute without error and create a user in my dashboard.
Environment
Parse Android SDK
2.0.4
The text was updated successfully, but these errors were encountered: