The android LVL class for handling licensing to applications in the Google Play market have some policy codes that will be shown depending on what the interpretation of the server response is. Here is a short list of some of the values of these codes when implementing a LicenseCheckerCallback class according to Android developer documetation.
Response Code | Value |
Licensed | 256 |
Not_licensed | 561 |
Error_Server_Failure | 291 |
Error_Contacting_Server | 291 |
Error_Not_Market_Managed | 3 |
Error_Invalid_Package_Name | 1 |
Error_Non_Matching_UID | 2 |
Hi. So if I keep getting error 291, what can I do? Thanks.
Please try the following steps as sugested in this stack-overflow post: https://stackoverflow.com/questions/13916922/error-contacting-licensing-server
– restarted network connection
– restarted your phone
– clear the data of google play store (settings -> apps -> google play store)
– clear the data of google play services
– logged in your device google play store with your publisher/testing account