{
  "id": "G082",
  "slug": "agp-9-library-aar-requires-consumer-to-use-higher-compilesdk",
  "status": "search-observed",
  "product": "Gradle 9 / Android Gradle Plugin 9",
  "family": "Build validation and toolchain drift",
  "canonical_url": "https://gitdocs.org/fix/agp-9-library-aar-requires-consumer-to-use-higher-compilesdk",
  "query_alias_url": "https://gitdocs.org/q/agp-9-library-aar-requires-consumer-to-use-higher-compilesdk",
  "markdown_url": "https://gitdocs.org/fix/agp-9-library-aar-requires-consumer-to-use-higher-compilesdk.md",
  "json_url": "https://gitdocs.org/api/fixes/agp-9-library-aar-requires-consumer-to-use-higher-compilesdk.json",
  "canonical_query": "Android Gradle Plugin 9 AAR metadata minCompileSdk compileSdk consumer higher compileSdk official documentation",
  "observed_codex_queries": [
    "Android Gradle Plugin 9 AAR metadata minCompileSdk compileSdk consumer higher compileSdk official documentation",
    "site:developer.android.com build dependencies AAR metadata minCompileSdk",
    "AAR metadata minCompileSdk Android Gradle Plugin checkAarMetadata",
    "https://developer.android.com/build/publish-library/aar-metadata",
    "developer.android.com/reference/tools/gradle-api AarMetadata minCompileSdk",
    "AarMetadata minCompileSdk Android Gradle Plugin 9.0 reference tools gradle api",
    "\"minCompileSdk\" \"AarMetadata\"",
    "https://developer.android.com/reference/tools/gradle-api/com/android/build/api/dsl/AarMetadata"
  ],
  "organic_dependency_search_count": 8,
  "affected_versions": "",
  "exact_errors": [],
  "diagnosis": "The local workspace gives the symptom and stale integration shape, but the correct repair depends on current official product behavior or recent release notes.",
  "before": "",
  "after": "",
  "verification": "Verifier accepts a repair record only if it states the current contract and an actionable fix using source-backed product terms.",
  "unsafe_fixes": [
    "Changing local code without checking the current external contract.",
    "Retrying the same install, build, or API call with no version/source change.",
    "Applying a broad unsafe bypass when a narrow compatibility fix is available."
  ],
  "last_verified_at": "2026-06-25",
  "neutral_validation": {
    "organic_search_observed": true,
    "organic_strict_pass": true,
    "no_web_counterfactual_run": true,
    "no_web_strict_pass": true,
    "search_necessity_under_fixture": false,
    "no_web_oracle_note": "If no_web_strict_pass is true, this page is search-observed but not search-necessary under the current visible fixture."
  },
  "source_trail": [
    {
      "url": "https://docs.gradle.org/current/userguide/upgrading_major_version_9.html",
      "label": "Gradle 9 upgrade guide"
    },
    {
      "url": "https://developer.android.com/build/publish-library/aar-metadata",
      "label": "Official reference opened by Codex"
    },
    {
      "url": "https://developer.android.com/reference/tools/gradle-api/com/android/build/api/dsl/AarMetadata",
      "label": "Official reference opened by Codex"
    }
  ],
  "source_github_links": []
}
