A problem occurred configuring project ':flutter_app_update'.
> Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
> Namespace not specified. Specify a namespace in the module's build file: /Users/littlesheep/.pub-cache/hosted/pub.dev/flutter_app_update-3.1.0/android/build.gradle. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.
If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.
最新 pub.dev 版本的包 (3.1.0)
在
.../android/build.gradle
的 android 块里面加一行配置就可以正常编译了
btw 我的项目 AGP 是 8.6.0 的