# play-billing-library-version-upgrade

> Claude/Codex skill by [@android](https://omgskills.com/library/android/index.md) · 8.6k stars · Updated 2026-10-16

Use this skill when upgrading or migrating an Android project from any legacy Google Play Billing Library (PBL) version to the latest stable version of PBL.

Tags: skills

## Install

```sh
git clone https://github.com/android/skills /tmp/skills && ln -s /tmp/skills/play/play-billing-library-version-upgrade ~/.claude/skills/play-billing-library-version-upgrade
```

## From README

Phase 0: Intent Message Reporting Action: Before proceeding, immediately tell the user: "I will upgrade Play Billing Library to the latest version." Phase 1: Discovery \\& Situational Awareness Primary Check (Build Version) : Locate the project's billing dependency (e.g., com.android.billingclient:billing) in build.gradle, build.gradle.kts, or libs.versions.toml. Initial Compilation Test: Attempt to sync and build the project immediately. Fallback Discovery (Effective Version) : Trigger: Only if the build fails immediately, scan the source code for deprecated artifacts. Logic : The presence of deprecated APIs indicates the "Effective Version" ---defined as the version where those specific APIs were last available, not when they were introduced. Example : If SkuDetails is present, treat the baseline as PBL v7 or earlier (regardless of the version string in build.gradle).

## Links

- HTML page: https://omgskills.com/library/android/skills/play-billing-library-version-upgrade/
- GitHub: https://github.com/android/skills
- Author: [@android](https://omgskills.com/library/android/index.md)

## More from this repo

- [android-cli](https://omgskills.com/library/android/skills/android-cli/index.md) — Provides instructions for installing and using the \`android\` CLI.
   - [@android](https://omgskills.com/library/android/index.md) · 10k stars
- [android-intent-security](https://omgskills.com/library/android/skills/android-intent-security/index.md) — Best practices for Android Intent security.
   - [@android](https://omgskills.com/library/android/index.md) · 10k stars
- [navigation-3](https://omgskills.com/library/android/skills/navigation-3/index.md) — Learn how to install and migrate to Jetpack Navigation 3, and how to implement features and patterns such as deep...
   - [@android](https://omgskills.com/library/android/index.md) · 10k stars
