NativeScript / NativeScript/plugins
A problem occurred configuring root project 'background_http'. Failed to build plugin @nativescript/background-http :
還沒有人認領這個 Issue。
- 主要語言
- TypeScript
- 星號
- 206
- 分支
- 123
- 平均合併
- 2 天 1 小時
- 30 天內合併 PR
- 1
描述
I got this issue while generating build
build.gradle and package.json has been attached
- What went wrong:
A problem occurred configuring root project 'background_http'.
Failed to notify project evaluation listener.
Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
> Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.
If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.
Could not get unknown property 'generateReleaseBuildConfig' for root project 'background_http' of type org.gradle.api.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 25s
Failed to build plugin @nativescript/background-http :
Error: Command gradlew.bat failed with exit code 1
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先,結合 Android 建置輸出檢查隨附的 app.gradle.txt、build.gradle 和 package.json。重現 @nativescript/background-http 的建置,並調查回報的 namespace 和 generateReleaseBuildConfig 失敗問題。使用回報的專案設定成功建置外掛程式即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- android
- 領域
- build-system, mobile
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100