Я создал cordova app
в своей папке.
(cordova create MyApp
)
(cordova platform add android
)
Я перешел google-services.json
на MyApp/platforms/android/app/
.
Но когда я попытался бежать:
(cordova run android
)
Я получил эту ошибку:
* What went wrong:
A problem occurred evaluating project ':app'.
> Could not find method implementation() for arguments [com.google.firebase:firebase-core:16.0.9] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Я попытался изменить implementation()
на compile()
, но он сообщил, что метод compile () отсутствует.
В dependencies
версия Gradle - 3.3.0.
В gradle-wrapper.properties
версия distributionUrl
- 4.10.3.
В gradle -v
в моем терминале версия 5.4.1.
cordova plugins
=> только cordova-plugin-whitelist 1.3.3 "Whitelist"