我如何解决 android studio 中与 sdk 冲突的 sqflite?

How I can solve a sqflite conflicting with sdk in android studio?

我在将 sqflite 添加到我的项目(flutter)到 SDK 31.0.0 中的依赖项时遇到问题,控制台在 make 运行 时像这样制作:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':sqflite:compileDebugAidl'.
> Failed to find Build Tools revision 30.0.2

* 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 13s
Exception: Gradle task assembleDebug failed with exit code 1

您可以按照图片中的步骤安装缺少的版本:

Tools - SDK Manager - SDK Tools - Show Package Details

Select您需要的版本,点击应用按钮安装: