Ошибка с Google Maps Flutter в Android Studio - PullRequest
1 голос
/ 19 июня 2019

Я пытаюсь добавить Google Maps на флаттер, я добавил следующую зависимость:

dependencies:
 google_maps_flutter: ^0.5.17

и соответствующий ему ключ API в Android и IOS.

Но при запуске проекта он отмечаетследующее:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:preDebugBuild'.
> Android dependency 'com.google.android.gms:play-services-tasks' has different version for the compile (15.0.1) and runtime (16.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 more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 4s
Finished with error: Gradle task assembleDebug failed with exit code 1

и попробуйте добавить зависимости вручную в build.gradle

dependencies {
        classpath 'com.google.gms:google-services:4.2.0'
    }

, и это в build.gradle на уровне проекта

apply plugin: 'com.google.gms.google-services'

но все же с тем же.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...