0

flutter version 1.22.6用来运行我的颤振应用程序..并有一些包,包括

  cloud_firestore: 0.16.0+1

一切运行正常并flutter pub get成功完成,但是当我尝试运行应用程序时出现此错误:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':firebase_auth:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* 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 49s
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin cloud_firestore...
Running Gradle task 'assembleAarRelease'...
Exception: The plugin cloud_firestore could not be built due to the issue above.

4

1 回答 1

1

在 StackOverflow 中发现这个问题有一个类似的问题,可以帮助解决您面临的问题。

找到另一个stackoverflow线程,建议查看以下github问题并更新以下行[Project Directory]/android/build.gradle

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

之后,建议在您的 : 中运行以下命令project directory

flutter clean && flutter pub get

然后作为最后一步再次构建项目。

于 2021-09-09T08:57:08.570 回答