Knowee
Questions
Features
Study Tools

/var/workspace/.pub-cache/hosted/pub.dev/google_fonts-2.1.0/lib/src/google_fonts_base.dart:15:1: Error: 'AssetManifest' is imported from both 'package:flutter/src/services/asset_manifest.dart' and 'package:google_fonts/src/asset_manifest.dart'.

Question

/var/workspace/.pub-cache/hosted/pub.dev/google_fonts-2.1.0/lib/src/google_fonts_base.dart:15:1: Error: 'AssetManifest' is imported from both 'package:flutter/src/services/asset_manifest.dart' and 'package:google_fonts/src/asset_manifest.dart'.

🧐 Not the exact question you are looking for?Go ask a question

Solution

This error message indicates that there is a conflict in the import statements for the 'AssetManifest' class. It is being imported from both 'package:flutter/src/services/asset_manifest.dart' and 'package:google_fonts/src/asset_manifest.dart'.

To resolve this issue, you need to remove one of the import statements for 'AssetManifest'.

You can either remove the import statement for 'package:flutter/src/services/asset_manifest.dart' or the import statement for 'package:google_fonts/src/asset_manifest.dart', depending on which one is not needed for your code.

Once you have removed the conflicting import statement, the error should be resolved.

This problem has been solved

Similar Questions

This command checks your environment and displays a report in the terminal window. Flutter bundles the Dart SDK. You don’t need to install Dart.To get greater detail on what you need to fix

What website offers packages/modules that you can add to your Flutter project?*1 pointMavennpmJSpub.devApp Store

Do you need the font installers on the desktop app?

What Flutter command lets you create a build of your web application that is ready to be deployed/tested?*1 pointflutter devicesflutter build androidflutter build webflutter run

Among the following files, which one is NOT present in the src folder? Gradle file activity_main.xml AndroidManifest.xml MainActivity File

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.