Итак, я попытался установить новый плагин в свое (работающее) приложение Ionic, и это будет https://ionicframework.com/docs/native/firebase-dynamic-links/
У меня была странная ошибка, поэтому я попробовал несколько вещей и в конечном итоге вернулся к тому, где использовал git reset
, чтобы полностью отменить то, что было сделано.
... Но ошибка не исчезнет.
Я пытался обновить Cordova и Ionic, удалить node_modules и npm install
снова, удалить и добавить платформу Android ... ничего не помогает.
cordova build android
cordova-android-firebase-gradle-release: Android platform: V7+
cordova-android-firebase-gradle-release: No custom version found in config.xml - using plugin default
cordova-android-support-gradle-release: Android platform: V7+
cordova-android-support-gradle-release: Wrote custom version '27.+' to C:\Users\JB\Dropbox\dev\azkara\platforms\android\app\build.gradle
cordova-android-support-gradle-release: Wrote custom version '27.+' to C:\Users\JB\Dropbox\dev\azkara\platforms\android\cordova-android-support-gradle-release\azkara-cordova-android-support-gradle-release.gradle
Android Studio project detected
config file res/values/facebookconnect.xml requested for changes not found at C:\Users\JB\Dropbox\dev\azkara\platforms\android\res\values\facebookconnect.xml, ignoring
config file res/values/facebookconnect.xml requested for changes not found at C:\Users\JB\Dropbox\dev\azkara\platforms\android\res\values\facebookconnect.xml, ignoring
config file res/values/facebookconnect.xml requested for changes not found at C:\Users\JB\Dropbox\dev\azkara\platforms\android\res\values\facebookconnect.xml, ignoring
cordova-android-firebase-gradle-release: Android platform: V7+
cordova-android-firebase-gradle-release: No custom version found in config.xml - using plugin default
cordova-android-support-gradle-release: Android platform: V7+
cordova-android-support-gradle-release: Wrote custom version '27.+' to C:\Users\JB\Dropbox\dev\azkara\platforms\android\app\build.gradle
cordova-android-support-gradle-release: Wrote custom version '27.+' to C:\Users\JB\Dropbox\dev\azkara\platforms\android\cordova-android-support-gradle-release\azkara-cordova-android-support-gradle-release.gradle
Preparing Firebase on Android
ANDROID_HOME=C:\Users\JB\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_171
studio
:wrapper
BUILD SUCCESSFUL in 0s
1 actionable task: 1 executed
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-firebase-gradle-release: 15.+
+-----------------------------------------------------------------
+-----------------------------------------------------------------
| 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_889mq4973ul5dy09k37yyn7v6.run(C:\Users\JB\Dropbox\dev\azkara\platforms\android\app\build.gradle:155)
FAILURE: Build failed with an exception.
* Where:
Script 'C:\Users\JB\Dropbox\dev\azkara\platforms\android\cordova-support-google-services\azkara-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 1s
cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* Where:
Script 'C:\Users\JB\Dropbox\dev\azkara\platforms\android\cordova-support-google-services\azkara-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 1s
[ERROR] An error occurred while running subprocess cordova.
Мне действительно нужна помощь, чтобы понять, что, черт возьми, происходит и как я могу справиться с этим.