Execution failed for task ':processDebugResources'. Ionic compile

Hi , im beginner developer in Ionic.
cli packages: (c:\xampp\htdocs\projectsMovil\PudApp\node_modules)

@ionic/cli-plugin-cordova       : 1.6.1
@ionic/cli-plugin-ionic-angular : 1.4.1
@ionic/cli-utils                : 1.7.0
ionic (Ionic CLI)               : 3.7.0

global packages:

Cordova CLI : 6.5.0

local packages:

@ionic/app-scripts : 2.1.3
Cordova Platforms  : android 6.1.2
Ionic Framework    : ionic-angular 3.6.0

System:

Android SDK Tools : 26.0.1
Node              : v6.10.3
OS                : Windows 10
npm               : 3.10.10

Im trying to compile app using gms:play-services firebase… etc. its ok. My real problem is when its compile app and show me this error:

Parsing json file: C:\xampp\htdocs\projectsMovil\PudApp\platforms\android\google-services.json
:generateDebugResources

:mergeDebugResources
UP-TO-DATE
:processDebugManifest
UP-TO-DATE
:processDebugResources
FAILED

BUILD FAILED

Total time: 3.176 secs
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:processDebugResources’.

Error: A library uses the same package as this project: io.itsoluciones.starter

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    Error: cmd: Command failed with exit code 1 Error output:
    FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:processDebugResources’.

Error: A library uses the same package as this project: io.itsoluciones.starter

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

[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.

[ERROR] An error occurred while running cordova run android (exit code 1).

Reseaching in google only say this in starkoverflow but a dont believe to be my case.

“Have you tried changing/removing duplicated applicationId from the defaultConfig in library’s build.gradle? That should resolve your issue.”

Hope your help plz. thank friends.

What’s your package.json?

Hi, it this:

{
“name”: “PudApp”,
“version”: “0.0.1”,
“author”: “Ionic Framework”,
“homepage”: “http://ionicframework.com/”,
“private”: true,
“scripts”: {
“clean”: “ionic-app-scripts clean”,
“build”: “ionic-app-scripts build”,
“lint”: “ionic-app-scripts lint”,
“ionic:build”: “ionic-app-scripts build”,
“ionic:serve”: “ionic-app-scripts serve”
},
“dependencies”: {
"@angular/animations": “^4.3.4”,
"@angular/common": “4.1.3”,
"@angular/compiler": “4.1.3”,
"@angular/compiler-cli": “4.1.3”,
"@angular/core": “4.1.3”,
"@angular/forms": “4.1.3”,
"@angular/http": “4.1.3”,
"@angular/platform-browser": “4.1.3”,
"@angular/platform-browser-dynamic": “4.1.3”,
"@ionic-native/core": “3.12.1”,
"@ionic-native/splash-screen": “3.12.1”,
"@ionic-native/sqlite": “^4.1.0”,
"@ionic-native/status-bar": “3.12.1”,
"@ionic/cloud-angular": “^0.12.0”,
"@ionic/storage": “2.0.1”,
“cordova-android”: “^5.0.0”,
“cordova-plugin-app-event”: “file:node_modules\cordova-plugin-app-event”,
“cordova-plugin-console”: “^1.0.5”,
“cordova-plugin-device”: “^1.1.4”,
“cordova-plugin-fcm”: “^2.1.2”,
“cordova-plugin-splashscreen”: “^4.0.3”,
“cordova-plugin-statusbar”: “^2.2.2”,
“cordova-plugin-whitelist”: “^1.3.1”,
“cordova-sqlite-storage”: “^2.0.4”,
“css-animator”: “^2.1.1”,
“de.appplant.cordova.plugin.local-notification”: “^0.8.5”,
“ionic-angular”: “3.6.0”,
“ionic-plugin-keyboard”: “^2.2.1”,
“ionicons”: “3.0.0”,
“phonegap-plugin-push”: “~1.9.2”,

"rxjs": "5.4.0",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.12"

},
“devDependencies”: {
"@ionic/app-scripts": “2.1.3”,
"@ionic/cli-plugin-cordova": “1.6.1”,
"@ionic/cli-plugin-ionic-angular": “1.4.1”,
“ionic”: “3.7.0”,
“typescript”: “2.3.4”
},
“description”: “An Ionic project”,
“cordova”: {
“plugins”: {
“cordova-plugin-console”: {},
“cordova-plugin-device”: {},
“cordova-plugin-splashscreen”: {},
“cordova-plugin-statusbar”: {},
“cordova-plugin-whitelist”: {},
“ionic-plugin-keyboard”: {},
“de.appplant.cordova.plugin.local-notification”: {},
“cordova-sqlite-storage”: {},
“cordova-plugin-fcm”: {}
},
“platforms”: []
}
}

Are you using libraries that don’t appear there? I don’t see Firebase for example. Are you using the FCM plugin but not Firebase?

Add firebased → ionic cordova plugin add cordova-plugin-firebase

"firebase": "^4.3.0", -> package.

and config.xml plugin name=“cordova-plugin-firebase” spec=“~0.1.23”
but in cmd show its:

c:\xampp\htdocs\projectsMovil\PudApp>ionic cordova plugin add cordova-plugin-firebase

cordova plugin add cordova-plugin-firebase --save
× Running command - failed!

[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.

[ERROR] An error occurred while running cordova plugin add cordova-plugin-firebase --save (exit code 1):

    Installing "cordova-plugin-firebase" for android
    ANDROID_HOME=C:\Users\Usuario\AppData\Local\Android\sdk
    JAVA_HOME=C:\Program Files\java\jdk1.8.0_131
    Subproject Path: CordovaLib
    google-services plugin could not detect any version for com.google.android.gms or com.google.firebase, default
    version: 9.0.0 will be used.
    please apply google-services plugin at the bottom of the build file.
    google-services plugin could not detect any version for com.google.android.gms or com.google.firebase, default
    version: 9.0.0 will be used.
    please apply google-services plugin at the bottom of the build file.
    Incremental java compilation is an incubating feature.
    :clean
    :CordovaLib:clean

    BUILD SUCCESSFUL

    Total time: 3.008 secs
    Error during processing of action! Attempting to revert...
    Failed to install 'cordova-plugin-firebase':CordovaError: Uh oh!
    "c:\xampp\htdocs\projectsMovil\PudApp\platforms\android\google-services.json" already exists!
    at copyNewFile (c:\xampp\htdocs\projectsMovil\PudApp\platforms\android\cordova\lib\pluginHandlers.js:248:15)
    at install (c:\xampp\htdocs\projectsMovil\PudApp\platforms\android\cordova\lib\pluginHandlers.js:43:17)
    at Object.process
    (c:\xampp\htdocs\projectsMovil\PudApp\platforms\android\cordova\node_modules\cordova-common\src\ActionStack.js:56:25)
    at PluginManager.doOperation
    (c:\xampp\htdocs\projectsMovil\PudApp\platforms\android\cordova\node_modules\cordova-common\src\PluginManager.js:117:20)
    at PluginManager.addPlugin
    (c:\xampp\htdocs\projectsMovil\PudApp\platforms\android\cordova\node_modules\cordova-common\src\PluginManager.js:147:17)
    at c:\xampp\htdocs\projectsMovil\PudApp\platforms\android\cordova\Api.js:254:18
    at _fulfilled (c:\xampp\htdocs\projectsMovil\PudApp\platforms\android\cordova\node_modules\q\q.js:834:54)
    at self.promiseDispatch.done
    (c:\xampp\htdocs\projectsMovil\PudApp\platforms\android\cordova\node_modules\q\q.js:863:30)
    at Promise.promise.promiseDispatch
    (c:\xampp\htdocs\projectsMovil\PudApp\platforms\android\cordova\node_modules\q\q.js:796:13)
    at c:\xampp\htdocs\projectsMovil\PudApp\platforms\android\cordova\node_modules\q\q.js:604:44
    Error: Uh oh!
    "c:\xampp\htdocs\projectsMovil\PudApp\platforms\android\google-services.json" already exists!

I’m Compile compile with ( ionic cordova run andorid --prod)

Show me again → Execution failed for task ‘:processDebugResources :confused:

any solution to this?