Android Studio 配置项目“:firebase_core”时出现问题

wa7juj8i  于 2022-12-13  发布在  Android
关注(0)|答案(1)|浏览(306)

我在构建移动的/ android flutter应用程序时遇到了这个问题,请帮助。名称空间是必需的,但在firebase_core库中不存在。如何禁用IDE以不验证库的名称空间?:

[        ] Using default execution profile
[        ] Could not execute [class org.jetbrains.kotlin.gradle.plugin.statistics.KotlinBuildStatHandler.buildFinished]
[   +4 ms] FAILURE: Build failed with an exception.
[   +4 ms] * What went wrong:
[        ] A problem occurred configuring project ':firebase_core'.
[        ] > Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
[        ]    > Namespace not specified. Please specify a namespace in the module's build.gradle file like so:
[        ]      android {
[        ]          namespace 'com.example.namespace'
[        ]      }
[        ]      If the package attribute is specified in the source AndroidManifest.xml, it can be migrated automatically to the namespace value in the build.gradle file using the AGP Upgrade Assistant; please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information.
[        ] * Try:
[        ] > Run with --debug option to get more log output.
[        ] > Run with --scan to get full insights.
[   +1 ms] * Exception is:
[        ] org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':firebase_core'
hpcdzsge

hpcdzsge1#

已降级以使用此

classpath 'com.android.tools.build:gradle:7.2.2'

如下图所示:flutterfire issue 10094

相关问题