小编Are*_*tar的帖子

flutter使用flutter_local_notifications和位置包出现错误“ Android依赖关系'androidx.core:core'具有不同的版本”

美好的一天,我尝试制作一个带有android和ios通知的简易天气应用程序,为此,我们使用基础flutter应用程序和库flutter_local_notifications: ^0.5.1+2以及location: ^2.0.0,但同时使用它们会出现错误:

Launching lib\main.dart on SM A520F in debug mode...
Initializing gradle...
Resolving dependencies...
Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:preDebugBuild'.
> Android dependency 'androidx.core:core' has different version for the compile (1.0.0-rc01) and runtime (1.0.1) classpath. You should manually set the same version via DependencyResolution

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get …
Run Code Online (Sandbox Code Playgroud)

android gradle flutter

5
推荐指数
2
解决办法
4451
查看次数

标签 统计

android ×1

flutter ×1

gradle ×1