Find and troubleshoot your license key

Google Play offers a licensing service that lets you enforce licensing policies for the apps that you publish on Google Play. With the licensing service, your apps can query Google Play at runtime to obtain their licensing status for the current user, then allow or disallow further use as appropriate.

Go to the App Licensing section of our Android Developers site to learn more about the licensing service and how to add it to your app.

Find your app's license key

  1. Open Play Console and select the app that you want to find the license key for.
  2. Go to the Monetization setup page (Monetize > Monetization setup).
  3. Your license key is under "Licensing."

Verify Google Play Licensing implementation

Before uploading your app to Google Play
If no app with that package name and version code is on Google Play, sign in to an Android device with the same account that you use in Play Console. Use this account as the primary account on your Android device. Then, set the test response and verify that your app behaves appropriately for those responses.

Note: ServerManagedPolicy caches test LICENSED responses for only one minute. Normal (non-test) LICENSED responses will be cached longer.
After uploading the app to Google Play
If you've uploaded the app with license checking to Google Play (regardless of the current publish state), sign in to an Android device with the same account that you use in Play Console or a license-test account as the primary account. Then, set the test response and verify that your app behaves appropriately for those responses.

Note: ServerManagedPolicy caches test LICENSED responses for only one minute. Normal (non-test) LICENSED responses will be cached longer.
I need more help implementing my license check
Development and testing issues
This includes License Verification Library (LVL) download and integration, library projects, policy questions, user experience ideas, handling of responses, obfuscator, IPC, and test environment setup. For more information, go to Stack Overflow.

Reporting issues with the licensing library
For License Verification Library (LVL) bug and issue reports, visit our issue tracker.

Reporting issues with Google Play Licensing service
For issues in publisher accounts, licensing-key pair, test accounts, server responses, test responses, app deployment, and results, contact us.

 

Troubleshooting licensing server issues

Intermittent licensing server failures
Make sure that you're using the latest copy of the licensing server. If you haven't recently updated your code, download the latest version of licensing server.
Licensing server failing for a specific customer
If a customer experiences licensing issues while accessing your app, they might be using a different account than the one used at the time of purchase. Since the app is associated with a different Google Account, the license then fails. Make sure that the user is signed in to the appropriate Google Play account before opening your app.
Questions about technical implementation
If you have questions regarding the technical implementation of Copy Protection or the licensing server, go to the Android Developers site.

 

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Google apps
Main menu
356125401098398218
true
Search Help Center
true
true
true
true
true
92637
false
false