gpt4 book ai didi

firebase 与 flutter 的集成在地理位置依赖性方面不成功

转载 作者:IT王子 更新时间:2023-10-29 06:44:15 25 4
gpt4 key购买 nike

我想知道当我将 firebase 与 flutter 集成时它会完美运行,但是如果我在依赖项中添加地理定位包:

dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.0
geolocation: ^0.2.1

我在编译项目时在调试中收到此消息:

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task
':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> java.lang.RuntimeException: java.lang.RuntimeException:
com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

* 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 5s
Finished with error: Gradle build failed: 1

知道发生了什么吗?

最佳答案

我认为您的问题在于缩进。

试试

dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.0
geolocation: ^0.2.1

关于firebase 与 flutter 的集成在地理位置依赖性方面不成功,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50326993/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com