我在尝试编译我的应用程序时遇到以下错误。我该如何解决它?
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':firebase_crashlytics'.
> Could not load compiled classes for build file 'C:\Users\chizuru\AppData\Local\Pub\Cache\hosted\pub.dev\firebase_crashlytics-2.9.0\android\build.gradle' from cache.
> Failed to notify project evaluation listener.
> Could not get unknown property 'android' for project ':firebase_crashlytics' of type org.gradle.api.Project.
> Could not find method implementation() for arguments [project ':firebase_core'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
> Could not get unknown property 'android' for project ':firebase_crashlytics' of type org.gradle.api.Project.
* 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.
* Get more help at https://help.gradle.org
BUILD FAILED in 14m 52s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
我尝试更新 fierbase_crashlytics 包,但似乎无法解决问题,但当我将其从项目中完全删除时,该应用程序能够编译,但当您单击它时,它无法打开。