I have a problem to try my app on emulator and I would like to uninstall googleplus but I get an error and do not delete
PS C:\Users\ludo\migration> ionic cordova plugin rm cordova-plugin-googleplus
> cordova plugin remove cordova-plugin-googleplus --save
Uninstalling cordova-plugin-googleplus from android
Android Studio project detected
Subproject Path: CordovaLib
Subproject Path: app
Variable(s) missing: WEB_APPLICATION_CLIENT_ID
[ERROR] An error occurred while running subprocess cordova.
cordova plugin remove cordova-plugin-googleplus --save exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
an idea?
thank you in advance
ludo
with --verbose
PS C:\Users\ludo\migration> ionic cordova plugin rm cordova-plugin-googleplus --verbose
ionic:lib Terminal info: { tty: true, ci: false, windows: true } +0ms
ionic:lib CLI global options: { _: [ 'cordova', 'plugin', 'rm', 'cordova-plugin-googleplus' ], help: null, h: null, verbose: true, quiet: null, interactive: true, color: true, confirm: null, json: null, project: null, '--': [] } +9ms
ionic:lib:project Project type from config: @ionic/angular (angular) +0ms
ionic:lib:project Project details: { configPath: 'C:\\Users\\ludo\\migration\\ionic.config.json', errors: [], context:
'app', type: 'angular' } +1ms
ionic Context: { binPath: 'C:\\Users\\ludo\\AppData\\Roaming\\npm\\node_modules\\ionic\\bin\\ionic', libPath: 'C:\\Users\\ludo\\AppData\\Roaming\\npm\\node_modules\\ionic', execPath: 'C:\\Users\\ludo\\migration', version: '4.9.0' } +0ms
ionic:lib:integrations:cordova:config Using config.xml: C:\Users\ludo\migration\config.xml +0ms
ionic:lib:telemetry Sending telemetry for command: 'ionic cordova plugin' [ 'remove',
ionic:lib:telemetry 'cordova-plugin-googleplus',
ionic:lib:telemetry '--verbose',
ionic:lib:telemetry '--interactive',
ionic:lib:telemetry '--color' ] +0ms
> cordova plugin remove cordova-plugin-googleplus --verbose --save
No scripts found for hook "before_plugin_rm".
Calling plugman.uninstall on plugin "cordova-plugin-googleplus" for platform "android"
Running command: cmd "/s /c "C:\Users\ludo\migration\platforms\android\cordova\version.bat""
Command finished with error code 0: cmd /s /c "C:\Users\ludo\migration\platforms\android\cordova\version.bat"
Finding scripts for "before_plugin_uninstall" hook from plugin cordova-plugin-googleplus on android platform only.
No scripts found for hook "before_plugin_uninstall".
Uninstalling cordova-plugin-googleplus from android
PlatformApi successfully found for platform android
Android Studio project detected
Beginning processing of action stack for android project...
Uninstalling Android library: com.google.android.gms:play-services-auth:11.8.0
Uninstalling Android library: com.google.android.gms:play-services-identity:11.8.0
Action stack processing complete.
Updating build files since android plugin contained <framework>
Subproject Path: CordovaLib
Subproject Path: app
Calling plugman.uninstall on plugin "cordova-plugin-googleplus" for platform "browser"
Variable(s) missing: WEB_APPLICATION_CLIENT_ID
Error: Variable(s) missing: WEB_APPLICATION_CLIENT_ID
at Object.mergeVariables (C:\Users\ludo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\variable-merge.js:58:15)
at runUninstallPlatform (C:\Users\ludo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\uninstall.js:248:35)
at C:\Users\ludo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\uninstall.js:93:16
at _fulfilled (C:\Users\ludo\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:854:54)
at C:\Users\ludo\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:883:30
at Promise.promise.promiseDispatch (C:\Users\ludo\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:816:13)
at C:\Users\ludo\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:570:49
at runSingle (C:\Users\ludo\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:137:13)
at flush (C:\Users\ludo\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:125:13)
at process._tickCallback (internal/process/next_tick.js:61:11)
[ERROR] An error occurred while running subprocess cordova.
cordova plugin remove cordova-plugin-googleplus --verbose --save exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
ionic:cli-framework:utils:process onBeforeExit handler: process.exit received +0ms
ionic:cli-framework:utils:process onBeforeExit handler: running 1 functions +6ms
ionic:cli-framework:utils:process error while killing process tree for 12092: { Error: Command failed: taskkill /pid 12092 /T /F
ionic:cli-framework:utils:process Erreur�: le processus "12092" est introuvable.
ionic:cli-framework:utils:process
ionic:cli-framework:utils:process at ChildProcess.exithandler (child_process.js:294:12)
ionic:cli-framework:utils:process at ChildProcess.emit (events.js:182:13)
ionic:cli-framework:utils:process at maybeClose (internal/child_process.js:962:16)
ionic:cli-framework:utils:process at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
ionic:cli-framework:utils:process killed: false,
ionic:cli-framework:utils:process code: 128,
ionic:cli-framework:utils:process signal: null,
ionic:cli-framework:utils:process cmd: 'taskkill /pid 12092 /T /F' } +716ms
ionic:cli-framework:utils:process onBeforeExit handler: error from function: { Error: Command failed: taskkill /pid 12092 /T /F ionic:cli-framework:utils:process Erreur�: le processus "12092" est introuvable.
ionic:cli-framework:utils:process
ionic:cli-framework:utils:process at ChildProcess.exithandler (child_process.js:294:12)
ionic:cli-framework:utils:process at ChildProcess.emit (events.js:182:13)
ionic:cli-framework:utils:process at maybeClose (internal/child_process.js:962:16)
ionic:cli-framework:utils:process at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
ionic:cli-framework:utils:process killed: false,
ionic:cli-framework:utils:process code: 128,
ionic:cli-framework:utils:process signal: null,
ionic:cli-framework:utils:process cmd: 'taskkill /pid 12092 /T /F' } +3ms
ionic:cli-framework:utils:process onBeforeExit handler: exiting (exit code 1) +1ms
PS C:\Users\ludo\migration>
Estou com o mesmo problema, encontrou uma solução?
Bonjour.
Je suis passé sur ionic v4 avec une app propre donc plus de probleme
For whoever still has this problem, cordova platform rm platform browser if you still have it
Hi,
I had the same problem. The solution was remove the ios platform and then remove the plugin:
ionic cordova platform remove ios
ionic cordova plugin remove cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=your_reversed_client_id
Hope that it helps you.
thanks.
4 Likes
thank you so much it works for me