Problem with build android after add plugin-firebase-dynamiclinks

hello everyone
i have problem with build android after add cordova-plugin-firebase-dynamiclinks
i don’t have any idea about this problem
help please

this is problem

D:\ionic\basabiso>ionic cordova build android

ionic-app-scripts build --target cordova --platform android
[10:47:01] ionic-app-scripts 3.2.0
[10:47:01] build dev started …
[10:47:01] clean started …
[10:47:01] clean finished in 8 ms
[10:47:01] copy started …
[10:47:01] deeplinks started …
[10:47:01] deeplinks finished in 37 ms
[10:47:01] transpile started …
[10:47:14] transpile finished in 12.34 s
[10:47:14] preprocess started …
[10:47:14] preprocess finished in 1 ms
[10:47:14] webpack started …
[10:47:14] copy finished in 13.51 s
[10:47:24] webpack finished in 9.95 s
[10:47:24] sass started …
[10:47:27] sass finished in 3.71 s
[10:47:27] postprocess started …
[10:47:27] postprocess finished in 11 ms
[10:47:27] lint started …
[10:47:27] build dev finished in 26.49 s
[10:47:33] lint finished in 6.08 s
cordova build android
cordova-android-support-gradle-release: Android platform: cordova-android@7
cordova-android-support-gradle-release: Wrote custom version ‘27.+’ to D:\ionic\basabiso\platforms\android\app\build.gradle
cordova-android-support-gradle-release: Wrote custom version ‘27.+’ to D:\ionic\basabiso\platforms\android\app\cordova-android-support-gradle-release\properties.gradle
Android Studio project detected
cordova-android-support-gradle-release: Android platform: cordova-android@7
cordova-android-support-gradle-release: Wrote custom version ‘27.+’ to D:\ionic\basabiso\platforms\android\app\build.gradle
cordova-android-support-gradle-release: Wrote custom version ‘27.+’ to D:\ionic\basabiso\platforms\android\app\cordova-android-support-gradle-release\properties.gradle
Preparing Firebase on Android
ANDROID_HOME=C:\Users\ahmadklsany\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_91
studio
Subproject Path: CordovaLib
Subproject Path: app
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
Configuration ‘compile’ in project ‘:app’ is deprecated. Use ‘implementation’ instead.
±----------------------------------------------------------------
| cordova-android-support-gradle-release: 27.+
±----------------------------------------------------------------
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_b35xubhbwry0787n2j1bzz2ig.run(D:\ionic\basabiso\platforms\android\app\build.gradle:169)

FAILURE: Build failed with an exception.

  • Where:
    Script ‘D:\ionic\basabiso\platforms\android\cordova-support-google-services\basabiso-build.gradle’ line: 16

  • What went wrong:
    A problem occurred evaluating project ‘:app’.

Failed to apply plugin [class ‘com.google.gms.googleservices.GoogleServicesPlugin’]
Cannot add extension with name ‘googleServices’, as there is an extension already registered with that name.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

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

BUILD FAILED in 2s
(node:3548) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • Where:
    Script ‘D:\ionic\basabiso\platforms\android\cordova-support-google-services\basabiso-build.gradle’ line: 16

  • What went wrong:
    A problem occurred evaluating project ‘:app’.

Failed to apply plugin [class ‘com.google.gms.googleservices.GoogleServicesPlugin’]
Cannot add extension with name ‘googleServices’, as there is an extension already registered with that name.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

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

BUILD FAILED in 2s
at ChildProcess.whenDone (D:\ionic\basabiso\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

ionic info :

Ionic:

ionic (Ionic CLI) : 4.1.2 (C:\Users\ahmadklsany\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0

Cordova:

cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 7.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.1.3, (and 15 other plugins)

System:

Android SDK Tools : 25.2.3 (C:\Users\ahmadklsany\AppData\Local\Android\sdk)
NodeJS : v8.11.4 (C:\Program Files\nodejs\node.exe)
npm : 5.6.0
OS : Windows 10

thanks :slightly_smiling_face: