"No package name found"

未关闭
#7,896 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
android, react-native

调研方向

首先检查提交 6439f6858110fe79b7f9260b91f84dfd6e0e904d,以及对 node_modules/react-native-navigation/lib/android/app/build.gradle 及其 AndroidManifest.xml 的包名解析。使用 React Native Navigation 7.40.1 和 React Native 0.70.15 复现;当构建不再报告“No package name found.”时即表示完成。

由索引模型根据 Issue 内容生成。

描述

needs triage type: accepted/bug
What happened?

After upgrading react-native-navigation from 7.39.2 to 7.40.1, builds with React Native 0.70.x (or older?) fail:

error Failed to build the app: No package name found. We couldn't parse the namespace from neither your build.gradle[.kts] file at node_modules/react-native-navigation/lib/android/app/build.gradle nor your package in the AndroidManifest at node_modules/react-native-navigation/lib/android/app/src/main/AndroidManifest.xml.

This breaking change appears to have been introduced in https://github.com/wix/react-native-navigation/commit/6439f6858110fe79b7f9260b91f84dfd6e0e904d.

What was the expected behaviour?

No response

Was it tested on latest react-native-navigation?
  • I have tested this issue on the latest react-native-navigation release and it still reproduces.
Help us reproduce this issue!

No response

In what environment did this happen?

React Native Navigation version: 7.40.1
React Native version: 0.70.15
Node version: 18.19.0

主要语言
MDX
星标
13.2k
派生
2.6k
平均合并
3 小时 21 分钟
30 天内合并 PR
5

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

wix/react-native-navigation 的其他 Issue

查看 wix/react-native-navigation 的全部 Issue

相似的 Issue

更多 Build System Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。