Nativescript 7.0.0 failed to build plugin @nativescript/firebase
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 25/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- android, angular, typescript
- 領域
- build-system, mobile
研究方向
從 package.json 中的版本開始,並使用 "tns run android" 重現此失敗。追蹤 @nativescript/firebase 的建置輸出,尤其是無法解析的相依性 com.android.tools.build:gradle:7.3.;Android 建置成功完成即表示完成。
由索引模型根據 Issue 內容生成。
描述
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.
- Get more help at https://help.gradle.org
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
- 主要語言
- TypeScript
- 星號
- 62
- 分支
- 53
- 平均合併
- 8 天 4 小時
- 30 天內合併 PR
- 2
環境準備
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
NativeScript/firebase 的其他 Issue
-
難度 3/5 1-2 天 新手友好度 48/100
NativeScript/firebase#292 ·
-
難度 3/5 1-2 天 新手友好度 35/100
NativeScript/firebase#289 ·
-
難度 4/5 3-5 天 新手友好度 35/100
NativeScript/firebase#288 · 4 個 reaction ·
-
[messaging-core][ios] getCurrentToken stalls可能重新可做 @triniwiz 於 180 天前認領,目前沒有進行中的 PR。 未關閉bug ios
NativeScript/firebase#287 · 已指派 1 人 ·
-
Uh-Oh Shazam未關閉
難度 4/5 3-5 天 新手友好度 20/100
NativeScript/firebase#286 ·
查看 NativeScript/firebase 的全部 Issue
相似的 Issue
-
module-request
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 90/100
appandflow/stim#1604 · 1 則留言 ·
維護者通常 1 天內回覆
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難度 1/5 1 小時以內 新手友好度 92/100
lingdojo/kana-dojo#31060 · 1 則留言 · 5 個 reaction ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 90/100
paperclipai/paperclip#14173 ·
維護者通常 1 天內回覆
-
needs-triage
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆