-
Notifications
You must be signed in to change notification settings - Fork 4
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
IllegalArgumentException: Unsupported value: 'com.cleveradssolutions.internal.content.zf' #10
Comments
Hello, can you tell me which kind of implementation banner ads you use? |
And can you show your code how you do it? |
Hi @wszak, thank you for raising the issue.
The issue you mentioned arose due to the Flutter update. Please find out more about it in the issue flutter/flutter#147210 |
|
Can you make an example project reproducing this error and send it to us? It will help us to fix this issue |
I'll try, but even when I take your example project and run it, then press Initialize I'm getting the following error: I/CASIntegrationHelper(10049): --- Verifying Integration --- I tried with Core version: 3.7.2 too. Any idea why this might be happening? I remember running your test example successfully in the past. Below is my Flutter doctor output: [✓] Flutter (Channel stable, 3.19.6, on Manjaro Linux 5.15.158-1-MANJARO, locale en_US.UTF-8) |
This issue has been fixed in CAS Core update 3.7.3. Please try updating the CAS core version. |
how to update? |
Now works with your original example, but still doesn't work with BannerView and latest clever_ads_solutions 0.3.0. So, take your example and:
Press Initialize and then press "TEST ERROR".
My main.dart:
ps. You should also test it on Flutter 3.x, I see that your example still uses 2.x in pubspec.yaml. |
Were you able to reproduce this error? |
Fixed in version 0.4.0. |
1st issue:
With a banner being displayed I'm getting following errors:
E/CAS.AI (17030): Callback: 6: java.lang.IllegalArgumentException
E/CAS.AI (17030): java.lang.IllegalArgumentException: Unsupported value: 'com.cleveradssolutions.internal.content.zf@68155a7' of type 'class com.cleveradssolutions.internal.content.zf'
E/CAS.AI (17030): at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:297)
E/CAS.AI (17030): at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:285)
E/CAS.AI (17030): at io.flutter.plugin.common.StandardMethodCodec.encodeSuccessEnvelope(StandardMethodCodec.java:61)
E/CAS.AI (17030): at io.flutter.plugin.common.EventChannel$IncomingStreamRequestHandler$EventSinkImplementation.success(EventChannel.java:251)
E/CAS.AI (17030): at com.cleveradssolutions.plugin.flutter.bannerview.BannerViewEventListener.onAdViewPresented(BannerViewEventListener.kt:22)
E/CAS.AI (17030): at com.cleveradssolutions.internal.content.zb.onAdRevenuePaid(SourceFile:3)
E/CAS.AI (17030): at com.cleveradssolutions.internal.content.zg.zb(SourceFile:7)
E/CAS.AI (17030): at com.cleveradssolutions.internal.content.zg.zb(SourceFile:6)
E/CAS.AI (17030): at com.cleveradssolutions.internal.content.zg.run(SourceFile:2)
E/CAS.AI (17030): at com.cleveradssolutions.internal.impl.zn.zb(SourceFile:1)
E/CAS.AI (17030): at com.cleveradssolutions.internal.impl.zn.zc(SourceFile:2)
E/CAS.AI (17030): at com.cleveradssolutions.sdk.base.CASHandler.main(SourceFile:1)
E/CAS.AI (17030): at com.cleveradssolutions.internal.content.zg.zb(SourceFile:4)
E/CAS.AI (17030): at com.cleveradssolutions.internal.content.zc.ze(SourceFile:16)
E/CAS.AI (17030): at com.cleveradssolutions.internal.content.zb.zb(SourceFile:30)
E/CAS.AI (17030): at com.cleveradssolutions.internal.impl.ze.zc(SourceFile:13)
E/CAS.AI (17030): at com.cleveradssolutions.internal.impl.ze.access$applyNewAdContent(SourceFile:22)
E/CAS.AI (17030): at com.cleveradssolutions.internal.impl.zd.run(SourceFile:12)
E/CAS.AI (17030): at com.cleveradssolutions.internal.impl.zn.zb(SourceFile:1)
E/CAS.AI (17030): at com.cleveradssolutions.internal.impl.zn.dispatchMessage(SourceFile:3)
E/CAS.AI (17030): at android.os.Looper.loopOnce(Looper.java:226)
E/CAS.AI (17030): at android.os.Looper.loop(Looper.java:313)
E/CAS.AI (17030): at android.app.ActivityThread.main(ActivityThread.java:8663)
E/CAS.AI (17030): at java.lang.reflect.Method.invoke(Native Method)
E/CAS.AI (17030): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:567)
E/CAS.AI (17030): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
94
E/FrameEvents(17030): updateAcquireFence: Did not find frame.
This exception is thrown every a couple of seconds.
The "updateAcquireFence: Did not find frame." might be also somehow related as it doesn't happen without CAS.
2nd issue:
I had to switch to SDK version 23 because I was getting error:
"UnsupportedOperationException
Platform views cannot be displayed below API level 23 You can prevent this issue by setting
minSdkVersion: 23
in build.gradle."Right now you seem to require SDK 21. The error was occuring on some older Android (5.1 IIRC).
Flutter 3.19.6, CAS 3.7.2, Cas-Flutter 0.3.0
The text was updated successfully, but these errors were encountered: