Android AppFunctions are indexed/enabled on device but Gemini cannot resolve custom function metadata
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
No repository file or test is named in the report. Start with the Android AppFunctions documentation and the minimal reproduction, then inspect dumpsys app_function and the reported Unable to resolve AppFunctionMetadata log. Done means establishing whether Gemini supports these custom schemas and documenting a confirmed compatibility limitation or actionable repository change.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Kotlin
- Stars
- 1.1k
- Forks
- 427
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 37
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from android/snippets
-
ListWithMultipleItemTypes.kt — Incorrect usage of items() lambda and contentTypePossibly taken @nero002 claimed this 139 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
android/snippets#863 · 1 comment ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 2 days
-
AbdulrezzakOpen
Difficulty 5/5 Over a week Newbie friendliness 10/100
Maintainers usually reply within 2 days
-
Difficulty 3/5 1-2 days Newbie friendliness 20/100
Maintainers usually reply within 2 days
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
Maintainers usually reply within 2 days
All issues in android/snippets
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
d4rken-org/amply#134 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
micronaut-projects/micronaut-guides#1925 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
nightscout/AndroidAPS#5211 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
JingMatrix/Vector#999 ·
Maintainers usually reply within 1 day