googleads-mobile-flutter: WriteBuffer buffer error
Plugin Version
Steps to Reproduce
- Run
flutter create bug
. - Update the files as follows: …
- …
Expected results:
Actual results:
Logs
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 29
Add this line
Running Smoothly Now
Looks like this is only happening on 3.0. Upgrading to 3.3 fixes this.
I also got this problem user_messaging_codec.dart:27:19: Error: ‘WriteBuffer’ isn’t a type and Error: ‘ReadBuffer’ isn’t a type. Cause for google mobile ads plugin.
solution goto this location of your drive:- C:\src\flutter.pub-cache\hosted\pub.dartlang.org\google_mobile_ads-2.3.0\lib\src\ump\user_messaging_codec.dart
and edit googleads user_messaging_codec.dart and add :-- “import ‘package:flutter/foundation.dart’ show ReadBuffer, WriteBuffer;” this line to import the read and write buffer then save the file using ctrl+s and ctrl+s+k.
then do :- 1) flutter clean 2) flutter pub get
it solve my problem, this answer is not found in internet . Follow our youtube channel THECOMPUTERMIND for more. link:-https://www.youtube.com/@thecomputermind1
Not sure why this issue is closed, I reproduce in my project too. Any news?
##my troubleshooting steps were as follows:
My Assumption. I was working on my old project in Android studio flutter project. A pop up message displayed for an update and asked to backup my project otherwise it will overwrite. I didn’t check properly and just ignore the message and simply click on update. After that i face this same issue.
Found changes in project after update.
So, I followed my troubleshooting steps. It took me atleast 1hour trying this & that here & there. Finally decided to remove admob and found 1 by 1.
##All the best. 👍
Anyone still facing this, you have two options: