fa-component 运行报错 项目没跑起来

来源:1-8 本章作业

ifbrave

2023-11-19

Warning: The plugin package_info_plus requires Android SDK version 33.
For more information about build configuration, see https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.

FAILURE: Build failed with an exception.

  • Where:
    Build file ‘C:\Users\Local\Pub\Cache\hosted\pub.flutter-io.cn\package_info_plus-4.2.0\android\build.gradle’ line: 31

  • What went wrong:
    A problem occurred evaluating project ‘:package_info_plus’.

Could not find method namespace() for arguments [dev.fluttercommunity.plus.packageinfo] on extension ‘android’ of type com.android.build.gradle.LibraryExtension.

  • 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.

BUILD FAILED in 1s
Exception: Gradle task assembleDebug failed with exit code 1

写回答

1回答

CrazyCodeBoy

2023-11-20

更新下package_info_plus到最新版本在试试https://pub.dev/packages/package_info_plus
0
3
CrazyCodeBoy
回复
ifbrave
嗯嗯,好的。
2023-11-21
共3条回复

Flutter高级进阶实战-仿哔哩哔哩-掌握Flutter高阶技能

一次性掌握Flutter高阶技能+商业级复杂项目架构设计与开发方案

1722 学习 · 870 问题

查看课程