简体   繁体   中英

Error: Target of URI doesn't exist: 'package:flutter/material.dart'. (uri_does_not_exist at [myapp] test/widget_test.dart:8)

I made an app in Flutter and there are no errors on its Dart file but I suddenly end up with errors on widget_test.dart . can you guys help me out. Thanks

在此处输入图像描述

Run flutter clean , and then flutter pub get in the terminal respectively.

If that doesn't work, try running flutter upgrade , and then repeating the initial steps.

Finally, if it still isn't working, you can run flutter doctor to see if there's anything glaringly wrong with your project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM