NativeScript/firebase

Nativescript 7.0.0 failed to build plugin @nativescript/firebase

srikanthuppena98 opened this issue · 1 comments

I have upgraded my nativescript project from 6 to 7, as part of upgrade process I've to change my nativescript-plugin-firebase: 10.6.3 to @nativescript/firebase: 11.1.3.

When I run android using "tns run android" it is failing with below error.

ERROR in The loader "/xxxxxx/xxxxxx/Downloads/mobileApp/Apex/src/app/app.component.html" didn't return a string.
Webpack compilation complete. Watching for file changes.
Webpack build done!
nativescript-plugin-firebase: /xxxxxx/xxxxxx/Downloads/mobileApp/Apex/platforms/android/.pluginfirebaseinfo not found, forcing prepare!
nativescript-plugin-firebase: running release build or change in environment detected, forcing prepare!

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project 'firebase'.

Could not resolve all files for configuration ':classpath'.
Could not find com.android.tools.build:gradle:7.3..
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.3./gradle-7.3..pom
- https://jcenter.bintray.com/com/android/tools/build/gradle/7.3./gradle-7.3..pom
Required by:
project :

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 1s
Failed to build plugin @nativescript/firebase :
Error: Command ./gradlew failed with exit code 1

Package.json

{
"scripts": {
"clean": "tns platform clean ios && tns platform clean android",
"android": "tns run android --env.aot",
"ios": "tns run ios --env.aot",
"ios-prod": "tns run ios --env.aot --env.name=production",
"android-prod": "tns run android --env.aot --env.name=production",
"deploy": "./appcenter_deploy.sh ",
"lint": "tslint "src/**/*.ts""
},
"dependencies": {
"@angular/animations": "10.2.5",
"@angular/common": "10.2.5",
"@angular/compiler": "10.2.5",
"@angular/core": "10.2.5",
"@angular/forms": "10.2.5",
"@angular/http": "8.0.0-beta.10",
"@angular/platform-browser": "10.2.5",
"@angular/platform-browser-dynamic": "10.2.5",
"@angular/router": "10.2.5",
"@nativescript/angular": "10.0.0",
"@nativescript/core": "7.0.0",
"@nativescript/firebase": "^11.1.3",
"@nativescript/webpack": "3.0.0",
"@ngx-translate/core": "^11.0.1",
"@ngx-translate/http-loader": "^4.0.0",
"@ngxs-labs/emitter": "^2.0.0",
"@ngxs/store": "^3.6.1",
"@nstudio/nativescript-cardview": "^1.0.0",
"@nstudio/nativescript-checkbox": "^1.0.0",
"@nstudio/nativescript-loading-indicator": "3.0.4",
"@nstudio/nativescript-pulltorefresh": "^1.1.1",
"ajv": "^6.10.0",
"base-64": "^0.1.0",
"bootstrap": "^4.3.1",
"core-js": "3.4.1",
"d3-ease": "^1.0.6",
"i": "^0.3.6",
"jquery": "^3.4.1",
"moment": "^2.24.0",
"nativescript-android-utils": "^1.0.2",
"nativescript-appavailability": "^1.3.2",
"nativescript-appversion": "^1.4.2",
"nativescript-audio": "^6.0.0",
"nativescript-azure-mobile-apps": "^2.0.3",
"nativescript-background-http": "^4.2.0",
"nativescript-camera": "^4.5.0",
"nativescript-drawingpad": "^3.1.0",
"nativescript-drop-down": "^5.0.4",
"nativescript-email": "^1.5.5",
"nativescript-exit": "^1.0.1",
"nativescript-fingerprint-auth": "^7.0.2",
"nativescript-geolocation": "^5.1.0",
"nativescript-imagepicker": "^7.1.0",
"nativescript-iqkeyboardmanager": "^1.5.1",
"nativescript-local-notifications": "^4.1.5",
"nativescript-mediafilepicker": "^4.0.0",
"nativescript-microsoft-appcenter": "^2.0.0",
"nativescript-permissions": "^1.3.8",
"nativescript-phone": "2.0.0",
"nativescript-photo-editor": "^1.1.0",
"nativescript-secure-storage": "^2.6.0",
"nativescript-swiss-army-knife": "^4.0.2",
"nativescript-theme-core": "^2.0.24",
"nativescript-toasty": "^3.0.0-alpha.2",
"nativescript-ui-calendar": "8.0.2",
"nativescript-ui-dataform": "8.0.1",
"nativescript-ui-listview": "^8.0.0",
"nativescript-ui-sidedrawer": "9.0.3",
"npm": "^6.14.4",
"popper.js": "^1.15.0",
"reflect-metadata": "~0.1.12",
"rxjs": "^6.4.0",
"tslib": "^1.10.0",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.1002.4",
"@angular/cli": "^10.2.4",
"@angular/compiler-cli": "~10.2.5",
"@nativescript/android": "7.0.0",
"@nativescript/ios": "7.0.1",
"@nativescript/schematics": "~0.7.3",
"@nativescript/types": "7.0.0",
"@ngtools/webpack": "~8.2.0",
"@types/d3-ease": "^1.0.9",
"@types/jasmine": "2.8.6",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1",
"codelyzer": "^5.1.2",
"ng-packagr": "^16.0.1",
"node-sass": "^4.13.1",
"protractor": "^6.0.0",
"ts-node": "8.5.0",
"ts-patch": "^2.1.0",
"tslint": "5.18.0",
"typescript": "4.0.8",
"webpack": "^4.46.0"
},
"main": "main.js"
}

please suggest me a solution thanks

Try updating the android runtime version