-
Notifications
You must be signed in to change notification settings - Fork 82
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
Missing classes detected while running R8 in android release mode #226
Comments
Got a fix . Step 1: Locate the proguard-rules.pro File Check if a file named proguard-rules.pro exists. If it doesn't, create a new file named proguard-rules.pro in this directory. Step 2: Add the Required ProGuard Rules -dontwarn com.fasterxml.jackson.databind.deser.std.StdDeserializer Step 3: Clean and Rebuild the Project |
Yes, this works to build the project, but I think this is just an action to "remove warning", does not solve the real problem that could cause unexpected errors and bugs. |
Testing it form my side , integration seems solid in release mode also. So far no errors or bugs . |
I found a bug that only happens in release mode too (on Android), where the Connection Status does not work correctly due to probably a parsing problem, could it be related to these missing classes? I say this because there are missing classes which have a role of serializing json like In the function "C:\Users{USERNAME}\AppData\Local\Pub\Cache\hosted\pub.dev\spotify_sdk-3.0.2\lib\models\connection_status.g.dart" The parameter json is filled with keys:'a', 'b', 'c' and 'd' when in release mode, instead of 'connected', 'message', 'errorCode' and 'errorDetails'. The values are ok but the json keys are wrong. I had to make changes to an automatically generated function so that the returned json was read correctly. |
@GabrielCoffee9 thank you for reporting this, yes please open a separate issue |
Is this a how to question?
No
Is this a native Spotify SDK issue?
No
Have you searched for existing issues?
Yes
Are you using a Free or Premium Spotify account?
Premium
Are you aware of the limitations of Free Spotify accounts?
Yes
Expected behavior
Flutter Build successful
Describe the bug
"On console -> ERROR: Missing classes detected while running R8."
Steps to Reproduce
Steps to reproduce the behavior:
Screenshots
Spotify_sdk Flutter package version 3.0.2
Flutter version 3.24.3
Target Platform, Version & Device
Development OS
Tried to build the release apk in my personal project and get this error, I created a new flutter android project and followed the steps above, getting the same error. This Error doesn't occurs in debug mode.
The text was updated successfully, but these errors were encountered: