Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.

Get Started Now!

Error: The getter ‘addressOf’ isn’t defined for the class in Flutter

/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf8.dart:63:33: Error: The getter ‘addressOf’ isn’t defined for the class ‘Utf8’.

  • ‘Utf8’ is from ‘package:ffi/src/utf8.dart’ (‘/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf8.dart’). Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’. String toString() => fromUtf8(addressOf); ^^^^^^^^^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.18.1/lib/src/picture_provider.dart:50:59: Error: No named parameter with the name ‘nullOk’. context != null ? Localizations.localeOf(context, nullOk: true) : null, ^^^^^^ /C:/src/flutter/packages/flutter/lib/src/widgets/localizations.dart:413:17: Context: Found this candidate, but the arguments don’t match. static Locale localeOf(BuildContext context) { ^^^^^^^^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.4+3/lib/src/path_provider_windows_real.dart:126:25: Error: The getter ‘addressOf’ isn’t defined for the class ‘GUID’.

FAILURE: Build failed with an exception.

  • Where: Script ‘C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle’ line: 1035
  • What went wrong: Execution failed for task ‘:app:compileFlutterBuildDebug’.

Process ‘command ‘C:\src\flutter\bin\flutter.bat” finished with non-zero exit value 1

  • Try: Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output. Run with –scan to get full insights.

Solution:

I got this error today. Here is what I did,

  1. Deleted .idea folder and build folder as well as pubspec-lock file.
  2. run flutter pub get
run in terminal in vs code
  1. flutter clean
  2. flutter pub get

after that app run successfully

Related Posts

I am getting error “cmdline-tools component is missing” after installing Flutter and Android Studio… I added the Android SDK. How can I solve them?

Solution: Step 1: I fixed the problem by opening Android Studio. Step 2: Click to More Actions. Step 3: Then click on ‘SDK Manager’. Step 4: In Read More

Read More

What is Flutter? & How it is Better than it’s Counterparts? – Cross Platform

What is Flutter? Flutter is an open-source UI software development kit created by Google. It’s used to develop cross-platform applications for Android, iOS, Linux, Mac, Windows, Google Read More

Read More

Creating Your First Flutter Project: A Step-by-Step Guide

Creating your first Flutter project is an exciting journey into mobile app development. Here’s a step-by-step guide to help you get started: 1. Install Flutter Before you Read More

Read More

What is flutter and How Flutter Works & Architecture

What is flutter? Flutter is an open-source UI software development kit created by Google. It is used to build natively compiled applications for mobile, web, and desktop Read More

Read More

Execution failed for task’:app:processDebugGoogleServices’.> No matching client found for package name’com.cotocus.holidaylandmark.publisher.holidaylandmark_publisher’ android studio-SOLVED

What went wrong: Execution failed for task ‘:app:processDebugGoogleServices’. No matching client found for package name ‘com.example.myapp ‘ Step -1: check your google-services.json and build.gradle matching applicationId and Read More

Read More

How to Make a Confirm Dialog in Flutter

A confirm dialog is a dialog box that asks users to approve the requested operation. It usually appears with button pairs like Yes/No, OK/Cancel, Agree/Disagree. Confirm dialogs Read More

Read More
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x