小编Tre*_*ore的帖子

错误:无法解析 Flutter 中的包名称

我尝试跑步flutter build apk --split-per-abi

我已经运行flutter pub get并且运行没有任何错误,只是一些依赖项警告。当我尝试构建 apk 文件时,我在终端日志中收到此错误。

Error: Couldn't resolve the package 'fuodz' in 'package:fuodz/services/auth.service.dart'.
Error: Couldn't resolve the package 'fuodz' in 'package:fuodz/services/cart.service.dart'.
Error: Couldn't resolve the package 'fuodz' in 'package:fuodz/services/general_app.service.dart'.
Error: Couldn't resolve the package 'fuodz' in 'package:fuodz/services/local_storage.service.dart'.
Error: Couldn't resolve the package 'fuodz' in 'package:fuodz/services/firebase.service.dart'.
Error: Couldn't resolve the package 'fuodz' in 'package:fuodz/services/notification.service.dart'.
lib/main.dart:6:8: Error: Not found: 'package:fuodz/my_app.dart'
import 'package:fuodz/my_app.dart';
       ^
lib/main.dart:7:8: Error: Not found: 'package:fuodz/services/auth.service.dart'
import 'package:fuodz/services/auth.service.dart';
       ^
lib/main.dart:8:8: Error: Not …
Run Code Online (Sandbox Code Playgroud)

android gradle dart flutter

5
推荐指数
1
解决办法
1618
查看次数

标签 统计

android ×1

dart ×1

flutter ×1

gradle ×1