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