Интеграция firebase с флаттером не удалась с зависимостью от геолокации - PullRequest
0 голосов
/ 14 мая 2018

Мне интересно, когда я интегрирую FireBase с флаттером, он прекрасно работает, но если я добавлю геолокационный пакет в зависимости:

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

Есть идеи, что происходит ??1007*

1 Ответ

0 голосов
/ 14 мая 2018

Я думаю, что ваша проблема с отступом.

Попробуйте с

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
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...