push-plugin
push-plugin copied to clipboard
Google services plugin version conflict
Make sure to check the demo app(s) for sample usage
Make sure to check the existing issues in this repository
If the demo apps cannot help and there is no issue for your problem, tell us about it
Please, ensure your title is less than 63 characters long and starts with a capital letter.
Which platform(s) does your issue occur on?
- iOS/Android/Both Both- Trying to get Android fixed first
- iOS/Android versions
- emulator or device. What type of device?
Please, provide the following version numbers that your issue occurs with:
Execution failed for task ':app:processF0F1F2F3F4F5F6F7F8DebugGoogleServices'.
Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 11.2.+.
- CLI: (run
tns --versionto fetch it) 3.4.1 - Cross-platform modules: (check the 'version' attribute in the
node_modules/tns-core-modules/package.jsonfile in your project) - Runtime(s): (look for the
"tns-android"and"tns-ios"properties in thepackage.jsonfile of your project) - Plugin(s): (look for the version numbers in the
package.jsonfile of your "nativescript-push-notifications": "^1.1.5", project and paste your dependencies and devDependencies here)
"dependencies": { "lodash": "^4.17.5", "nativescript-10hook-release-info": "^1.0.0", "nativescript-appversion": "^1.4.1", "nativescript-background-http": "^3.2.0", "nativescript-camera": "3.2.1", "nativescript-directions": "1.2.0", "nativescript-drop-down": "3.2.4", "nativescript-email": "^1.5.1", "nativescript-fresco": "^3.0.6", "nativescript-geolocation": "4.2.3", "nativescript-google-maps-sdk": "2.5.0", "nativescript-imagepicker": "5.0.0", "nativescript-iqkeyboardmanager": "1.2.0", "nativescript-localstorage": "^1.1.5", "nativescript-open-app": "^0.2.0", "nativescript-permissions": "^1.2.3", "nativescript-phone": "^1.3.1", "nativescript-push-notifications": "^1.1.5", "nativescript-theme-core": "^1.0.4", "nativescript-ui-calendar": "^3.5.0", "tns-core-modules": "3.4.1" }, "devDependencies": { "babel-traverse": "6.26.0", "babel-types": "6.26.0", "babylon": "6.18.0", "filewalker": "0.1.2", "lazy": "1.0.11", "nativescript-dev-typescript": "^0.5.1", "tns-platform-declarations": "^3.1.1", "typescript": "^2.4.1" }
Please, tell us how to recreate the issue in as much detail as possible.
(1) Added the plugin (2) Added google-services.json (3) Updated app.gradle (firebaseMessagingVersion = "+") (4) ran tns build android
Is there any code involved?
- provide a code example to recreate the problem
- (EVEN BETTER) provide a .zip with application or refer to a repository with application where the problem is reproducible.
Hi @halaharr,
Why are you setting firebaseMessagingVersion = "+" in the app.gradle? The problem most-probably comes from the different versions that your app use, and the fixed version that the push-plugin uses:
compile 'com.google.firebase:firebase-messaging:12.0.1'
Aside from that, the push-plugin is now deprecated, and you'd better switch to the Firebase plugin (especially if you are beginning with push notifications). Also, you might not hit this issue there ;)