merge wiki into developer.android.com if necessary and delete
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 文档
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- android
调研方向
将链接的 ndk-samples wiki 部分与 developer.android.com 上的三个页面以及报告的 AGP 8.1 行为进行比较。确认哪些 AGP 版本会自动安装 NDK,然后确定是否应将 wiki 内容合并到 developer.android.com 并删除;完成的标准是指南保持一致,并且迁移决策已记录在案。
由索引模型根据 Issue 内容生成。
描述
Hi, I'm hoping for some clarification on when AGP will install the NDK, i.e. asking if
https://github.com/android/ndk-samples/wiki/Configure-NDK-Path#ndk-with-agp-41
is also relevant to newer AGP versions.
Per https://github.com/android/ndk-samples/wiki/Configure-NDK-Path#ndk-with-agp-41,
AGP 4.1 (but maybe not newer?) will automatically install the NDK if it isn't installed already.
Per https://developer.android.com/studio/projects/install-ndk#install_ndk_and_cmake_automatically
AGP 4.2+ will automatically install the specified NDK version the first time the project is built, and only if the licenses are pre-accepted.
Per https://developer.android.com/studio/projects/configure-agp-ndk#agp_version_41,
Maybe this is only done by Android Studio? For AGP 4.2+.
The reason I ask is because I'm trying to decide on a path for Flutter to get debug symbols included in app bundles by default (one of our most liked issues https://github.com/flutter/flutter/issues/60240). Ideally, I'd like avoid re-inventing the wheel and instead rely on AGP to do this, as AGP has the ability to strip prebuilt libraries and package the debug symbols appropriately within the app bundle.
But per @DanAlbert's comment on https://github.com/android/ndk/discussions/1844, this behavior only works if the ndk is installed, so I'd like to be sure that users will have the NDK installed (otherwise from my local testing, the debug symbols end up getting included in the actual app, which would be a very bad outcome).
Per my local testing, if I remove all locally installed ndk versions and then make a new (Flutter) project using AGP 8.1, the ndk doesn't seem to be get installed, and instead we see logs:
C/C++: Folder /Users/mackall/Library/Android/sdk/ndk/26.1.10909125 does not exist. Ignoring.
[ ] C/C++: Folder /Users/mackall/Library/Android/sdk/ndk-bundle does not exist. Ignoring.
[ ] Unable to strip library '/Users/mackall/development/BugTesting/fifth/build/app/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/x86_64/libflutter.so' due to missing strip tool for ABI
'x86_64'. Packaging it as is.
Is this expected behavior, or is Flutter somehow missing some configuration that would be required to get the ndk installed automatically?
Also sorry if this is the wrong place to ask the question - it relates to the first sample page, but I'm aware the question is also slightly more broad than that so feel free to redirect me if this isn't the right place to ask.
- 主要语言
- C++
- 星标
- 10.5k
- 派生
- 4.2k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
android/ndk-samples 的其他 Issue
-
难度 5/5 一周以上 新手友好度 35/100
android/ndk-samples#1172 ·
-
难度 4/5 3-5 天 新手友好度 25/100
android/ndk-samples#1170 ·
-
难度 3/5 1-2 天 新手友好度 35/100
android/ndk-samples#1166 ·
-
难度 4/5 3-5 天 新手友好度 35/100
android/ndk-samples#1094 · 1 条评论 ·
-
resurrect PGO sample可能重新可做 @DanAlbert 于 864 天前认领,目前没有进行中的 PR。 未关闭
android/ndk-samples#1070 · 已指派 1 人 ·
查看 android/ndk-samples 的全部 Issue
相似的 Issue
-
difficulty:easy func:python os:windows prio:high type:bug
难度 2/5 1-3 小时 新手友好度 78/100
NatronGitHub/Natron#2029 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
ardazishvili/Sota#114 ·
维护者通常 1 天内回复
-
`Rect::containsPoint` is not `const`, so a `const Rect` cannot be asked whether it holds a point未关闭Needs: Triage :mag:
难度 1/5 1 小时以内 新手友好度 82/100
react/react-native#60349 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100