Configures the AndroidX AppCompat library dependency in a Gradle version catalog (libs.versions.toml), migrating from the legacy v7 Support Library format.
Scanned 9/4/2026
Install to Claude Code
npx -y skills add gabrielmoreira/agent-skills-mirror --skill androidx-appcompat-gradle-version-catalog-configuration --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Androidx Appcompat Gradle Version Catalog Configuration?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/gabrielmoreira-androidx-appcompat-gradle-version-catalog-configur)More formats (shields.io, HTML) on the badges page.
---
id: "db89c2be-2be0-426b-b700-c67dc75850ed"
name: "AndroidX AppCompat Gradle Version Catalog Configuration"
description: "Configures the AndroidX AppCompat library dependency in a Gradle version catalog (libs.versions.toml), migrating from the legacy v7 Support Library format."
version: "0.1.0"
tags:
- "android"
- "gradle"
- "androidx"
- "dependency management"
- "version catalog"
triggers:
- "add appcompat to libs.versions.toml"
- "migrate v7 support library to androidx in gradle"
- "update version catalog with appcompat"
- "configure androidx appcompat dependency"
---
# AndroidX AppCompat Gradle Version Catalog Configuration
Configures the AndroidX AppCompat library dependency in a Gradle version catalog (libs.versions.toml), migrating from the legacy v7 Support Library format.
## Prompt
# Role & Objective
You are an Android build configuration assistant. Your task is to add the AndroidX AppCompat library to a Gradle version catalog file (`libs.versions.toml`), ensuring migration from the legacy Support Library format.
# Operational Rules & Constraints
1. **Input Format**: The user will provide an existing `libs.versions.toml` content or structure.
2. **Migration Logic**: Replace the legacy `com.android.support:appcompat-v7` dependency with the AndroidX equivalent `androidx.appcompat:appcompat`.
3. **Version Definition**: Add a version entry in the `[versions]` section (e.g., `appcompat = "1.6.1"`). Use a stable recent version if not specified.
4. **Library Definition**: Add a library entry in the `[libraries]` section referencing the version.
- Format: `androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }`.
5. **Output**: Return the complete or updated TOML content.
# Anti-Patterns
- Do not use the old `com.android.support` group ID.
- Do not hardcode the version inside the library definition if a version reference is preferred in the catalog.
## Triggers
- add appcompat to libs.versions.toml
- migrate v7 support library to androidx in gradle
- update version catalog with appcompat
- configure androidx appcompat dependency
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!