EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 441 forks source link

Error while tns run android after updating to nativescript 7.0.0 #1679

Open LakshmiEvana opened 4 years ago

LakshmiEvana commented 4 years ago

Failed to build plugin nativescript-plugin-firebase : Error: Command ./gradlew failed with exit code 1 Facing above error while tns run android. Here is my package.json file

{ "description": "NativeScript Application", "license": "SEE LICENSE IN ", "repository": "", "scripts": { "lint": "tslint \"src/*/.ts\"" }, "dependencies": { "@angular/animations": "~10.1.0", "@angular/common": "~10.1.0", "@angular/compiler": "~10.1.0", "@angular/core": "~10.1.0", "@angular/forms": "~10.1.0", "@angular/platform-browser": "~10.1.0", "@angular/platform-browser-dynamic": "~10.1.0", "@angular/router": "~10.1.0", "@nativescript/angular": "~10.1.0", "@nativescript/core": "~7.0.0", "@nativescript/theme": "~2.3.0", "@nativescript/webpack": "3.0.0", "@nstudio/nativescript-cardview": "^1.0.0", "@nstudio/nativescript-loading-indicator": "^1.0.0", "@nstudio/nativescript-snackbar": "^1.0.0", "nativescript-app-tour": "^2.0.2", "nativescript-appversion": "^1.4.2", "nativescript-exit": "^1.0.1", "nativescript-fancyalert": "^3.0.9", "nativescript-feedback": "^1.3.12", "nativescript-image-cache": "^1.1.6", "nativescript-local-notifications": "^4.1.1", "nativescript-permissions": "^1.3.8", "nativescript-phone": "^1.4.1", "nativescript-plugin-firebase": "^10.5.2", "nativescript-social-share": "^1.6.0", "nativescript-sqlite": "^2.3.3", "nativescript-theme-core": "~1.0.6", "nativescript-toasts": "^1.0.3", "nativescript-ui-sidedrawer": "~9.0.0", "reflect-metadata": "~0.1.12", "rxjs": "^6.6.0", "rxjs-compat": "^6.4.0", "zone.js": "~0.11.1" }, "devDependencies": { "@angular/compiler-cli": "~10.1.0", "@nativescript/android": "7.0.0", "@nativescript/webpack": "~3.0.0", "@ngtools/webpack": "~10.1.0", "codelyzer": "~6.0.0", "node-sass": "^4.14.1", "tslint": "~6.1.3", "typescript": "~3.9.0" }, "gitHead": "1964ea9e8ca1a0518e0d6370781eedcf6c23db42", "readme": "NativeScript Application", "main": "main.js" }

Klunk75 commented 4 years ago

Hi, as already written several times, with NS 7 you have to use the new plugin version: "@nativescript/firebase": "11.0.0". You have to modify the import statements in your code as well: import { firebase, firestore } from "@nativescript/firebase"; Hope this will solve your issues! Bye, Paolo

LakshmiEvana commented 4 years ago

Thank you @Klunk75.Issue solved.