Android AppFunctions are indexed/enabled on device but Gemini cannot resolve custom function metadata
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
报告中没有指明任何仓库文件或测试。先从 Android AppFunctions 文档和最小复现开始,然后检查 dumpsys app_function 以及报告中的 Unable to resolve AppFunctionMetadata 日志。完成的标准是确定 Gemini 是否支持这些自定义 schema,并记录已确认的兼容性限制或可执行的仓库变更。
由索引模型根据 Issue 内容生成。
描述
Description of the bug
I integrated Android AppFunctions in a third-party app and verified that the platform indexes and enables all functions. However, Gemini does not discover or execute these functions and logs metadata resolution failures.
Environment
- Device: Samsung Galaxy A34 (
SM-A346B) - Android: 16 (
SDK 36) - Build tools: AGP
8.9.1, Gradle8.14.3 - Language/tooling: Kotlin
2.1.10, KSP2.1.10-1.0.31 - Libraries:
androidx.appfunctions:appfunctions:1.0.0-alpha07androidx.appfunctions:appfunctions-service:1.0.0-alpha07androidx.appfunctions:appfunctions-compiler:1.0.0-alpha07
What was validated already
- KSP aggregation is enabled:
appfunctions:aggregateAppFunctions=true - APK includes required assets:
assets/app_functions.xmlassets/app_functions_v2.xmlassets/app_functions_schema.xsd
- Manifest contains merged AppFunction services/properties.
- Device has
com.android.extensions.appfunctionslibrary. dumpsys app_functionshows all six functions with runtime metadata andenabled: [1].- App-side diagnostics report
6/6 functions indexed.
Minimal reproduction
- Build and install app on Android 16 device.
- Launch app and wait for AppFunction registration/indexing.
- Confirm indexed state via
dumpsys app_functionand app logs. - Attempt discovery/execution through Gemini.
Actual vs expected behavior
Actual behavior
- Gemini does not discover/execute the custom app functions.
- Logs repeatedly show:
D/AppFunctions: Unable to resolve AppFunctionMetadata.
Expected behavior
- Once functions are indexed and enabled by the Android AppFunctions platform, Gemini should discover and be able to execute them, or provide a clear compatibility reason if custom schemas are unsupported.
Any other information you'd like to share?
- This may be a support/compatibility question rather than a pure runtime bug.
- If custom app-defined schemas are not currently supported in Gemini, please confirm current limitations and any roadmap for support.
- 主要语言
- Kotlin
- 星标
- 1.1k
- 派生
- 427
- 平均合并
- 3 天 3 小时
- 30 天内合并 PR
- 37
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
android/snippets 的其他 Issue
-
ListWithMultipleItemTypes.kt — Incorrect usage of items() lambda and contentType可能已有人在做 @nero002 于 142 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
android/snippets#863 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
Wrong example: Basic list-detail layout (custom Scene and strategy)可能已有人在做 @nero002 于 141 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 55/100
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 25/100
android/snippets#773 · 1 条评论 ·
维护者通常 1 天内回复
-
Inconsistent API未关闭
难度 3/5 1-2 天 新手友好度 35/100
android/snippets#755 · 1 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 64/100
maplibre/maplibre-native-ffi#792 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 74/100
维护者通常 1 天内回复
-
an:enhancement
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 74/100
-
bug
难度 2/5 1-3 小时 新手友好度 72/100