Skip to content

Android: no serializer found for class dd.a and no properties discovered to create BeanSerializer #47

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

Closed
Luk3s opened this issue Mar 14, 2023 · 3 comments

Comments

@Luk3s
Copy link

Luk3s commented Mar 14, 2023

The plugin works fine on iOS and in the Android emulator.
When I build the APK and install it on a real device I get a PlatformException.

This is the exact exception I see in the logs

PlatformException(error, No serializer found for class dd.a and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: java.util.HashMap["experimentflag"]), null, java.lang.IllegalArgumentException: No serializer found for class dd.a and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: java.util.HashMap["experimentflag"])
 	at x3.t.f(SourceFile:21)
 	at x3.t.r(SourceFile:1)
 	at dd.i.r(SourceFile:13)
 	at dd.j.onMethodCall(SourceFile:19)
 	at pe.j$a.a(SourceFile:2)
 	at ce.c.j(SourceFile:2)
 	at ce.c.k(SourceFile:2)
 	at ce.c.g(Unknown Source:0)
 	at ce.b.run(Unknown Source:12)
 	at android.os.Handler.handleCallback(Handler.java:942)
 	at android.os.Handler.dispatchMessage(Handler.java:99)
 	at android.os.Looper.loopOnce(Looper.java
 #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:653)
 #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:296)
 <asynchronous suspension>
 #2      OptimizelyUserContext._decide (package:optimizely_flutter_sdk/src/user_context/optimizely_user_context.dart:145)
 <asynchronous suspension>
 #3      OptimizelyUserContext.decideForKeys (package:optimizely_flutter_sdk/src/user_context/optimizely_user_context.dart:125)
...

From flutter doctor

[✓] Flutter (Channel stable, 3.3.10, on macOS 13.2 22D49 darwin-x64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)

From build.gradle

compileSdkVersion 33
minSdkVersion 21
targetSdkVersion 33

Let me know if there is anything else I can provide.

@russell-loube-optimizely

Hi @Luk3s , thank you for raising this. We're taking a look as a team on this issue later today and I will provide any updates from our initial investigation.

@russell-loube-optimizely

Hi @Luk3s , I apologize for the lack of reply via GitHub. We've been communicating with our Support and CSM teams internally about this issue, but that does not excuse the lack of follow-up here.

We appreciate the additional information provided by your team. I'm currently evaluating when we can pick this up with as much urgency as possible.

@TannerLessen
Copy link

FYI for anyone else affected as our team was and find this page.. this issue was fixed by this PR and released in v1.0.1 though the versioning is unclear

@Luk3s Luk3s closed this as completed May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants