Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Android AppFunctions are indexed/enabled on device but Gemini cannot resolve custom function metadata

Open
#830 1 comment 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
android, kotlin
Domain
ai, mobile

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.

Image
Environment
  • Device: Samsung Galaxy A34 (SM-A346B)
  • Android: 16 (SDK 36)
  • Build tools: AGP 8.9.1, Gradle 8.14.3
  • Language/tooling: Kotlin 2.1.10, KSP 2.1.10-1.0.31
  • Libraries:
    • androidx.appfunctions:appfunctions:1.0.0-alpha07
    • androidx.appfunctions:appfunctions-service:1.0.0-alpha07
    • androidx.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.xml
    • assets/app_functions_v2.xml
    • assets/app_functions_schema.xsd
  • Manifest contains merged AppFunction services/properties.
  • Device has com.android.extensions.appfunctions library.
  • dumpsys app_function shows all six functions with runtime metadata and enabled: [1].
  • App-side diagnostics report 6/6 functions indexed.
Minimal reproduction
  1. Build and install app on Android 16 device.
  2. Launch app and wait for AppFunction registration/indexing.
  3. Confirm indexed state via dumpsys app_function and app logs.
  4. 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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from android/snippets

All issues in android/snippets

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.