https://developer.android.com/agents/skills/play/play-billing-library-version-upgrade/skill

Upgrade Play Billing Library dependencies with version-aware migration checklists.

5|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/fornewid/android-developers-changelog --skill https-developer-android-com-agents-skills-play-play-billing-library-version-upgrade-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: https://developer.android.com/agents/skills/play/play-billing-library-version-upgrade/skill
Source: https://github.com/fornewid/android-developers-changelog/tree/main/docs/agents/skills/play/play-billing-library-version-upgrade
Command: npx skills add https://github.com/fornewid/android-developers-changelog --skill https-developer-android-com-agents-skills-play-play-billing-library-version-upgrade-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It solves the problem of breaking changes when upgrading Play Billing Library (PBL) by guiding a developer through a version-aware, checklist-driven migration from their current effective billing API level to the latest stable release.

Core Features & Use Cases

  • Effective version detection: Detects your baseline using build config plus fallback scanning for deprecated artifacts (e.g., SkuDetails presence).
  • Direct or stepped migration planning: Chooses a direct path if you are within two major versions, otherwise migrates two major versions at a time.
  • Version-specific refactoring: Applies required code changes for reconnection handling, ProductDetails querying, subscription modernization, purchase querying, pending purchase rules, and SDK/compile/min SDK alignment.
  • Verification and final validation: Runs build/sync/test/clean checks and validates version-specific requirements with a smart checklist.

Quick Start

Ask the assistant to run an end-to-end Play Billing Library version upgrade for your Android project to the latest stable PBL version, including detection of your effective current version, the appropriate migration path, the required code refactors, and the verification commands.

Frequently Asked Questions about https://developer.android.com/agents/skills/play/play-billing-library-version-upgrade/skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I upgrade the Play Billing Library in my Android app without breaking in-app purchases?

To upgrade the Play Billing Library safely, you need a version-aware migration that detects your current billing API baseline, maps it to the latest stable release, and applies required code refactors for purchases and subscriptions before validating the build.

What is the process for migrating Android subscriptions across major Play Billing versions?

Migrating Android subscriptions across major Play Billing versions requires synthesizing per-version migration guides into a checklist, refactoring ProductDetails querying, modernizing subscription logic, and running assemble/build/test commands to verify version-specific requirements.

How does Play Billing migration handle deprecated artifacts like SkuDetails?

Play Billing migration detects deprecated artifacts like SkuDetails by scanning your project's build config and fallback code, establishing your effective billing API baseline to determine whether a direct or stepped migration path is needed.

Can I skip major versions when upgrading Google Play Billing dependencies?

You can skip major versions if your project is within two major versions of the target release, choosing a direct migration path; otherwise, the upgrade process migrates two major versions at a time to prevent breakages.

What code refactors are required when updating the Play Billing Library?

Required code refactors when updating the Play Billing Library include reconnection handling, ProductDetails querying, purchase querying, pending purchase rules, and aligning SDK/compile/min SDK requirements with the target PBL version.

How do I verify a successful Play Billing Library version upgrade?

You verify a successful Play Billing Library version upgrade by running build, sync, test, and clean checks, then validating version-specific requirements using a smart checklist to ensure no migration steps were missed.