Skip to main content

SDK Error Codes

A list of errors returned from the SDK is as follows:

info
  • Error codes where the sentence "Unnecessary to handle this error especially" is written on the Recommended action column mean that it is not necessary to handle the error code and to separate something out especially.
  • Error codes where the "Common" is written on the "Method which returns the error"  column may be returned from all methods. In the other hand, error codes where other method name is written (ex, Initialize) may be returned from only the method.
CodeMethod which returns the errorDescriptionRecommended action
-1XXXX series (Unknown)
-10001

Common

Unknown ErrorUnnecessary to handle this error especially.
-20 XXX series (background process related in SDK)

-20001

CommonCould not connect to the background process from the SDK because the AndAppHelper/AndAppDevHelper process was not started and so on.Encourage the user to shutdown the application and to restart the application via the AndApp client.
-21 XXX series (background process related)
-21000Common

Communication with AndApp server failed.

If possible, display a message (ex. Please check the network environment) to the end user.

-21001CommonWhen an unexpected response was returned from the AndApp server.Unnecessary to handle this error especially.
-21002Common

Communication with the server was successful but data in response was invalid

Unnecessary to handle this error especially.
-21003CommonIllegal parameterUnnecessary to handle this error especially.
-21004CommonBackground process internal errorUnnecessary to handle this error especially.
-21005Common

Attempted to connect from multiple processes with same clientId because multiple applications were launched.

In order to prevent this error, implement a process to prevent to launch multiple applications at the same time.
-21014CommonConnection error with a background process.Unnecessary to handle this error especially.
-21015InitializeThere is a possibility that the binary has been tampered.Encourage to reinstall to the end user.
-21050Initialize

When the SDK version is too old against the supportable SDK version of AndApp client.

Unnecessary to handle this error especially, if the application updates a SDK periodically and encourage to download the latest version for the end user.

-21051InitializeWhen the AndApp client is too old against SDK version

Normally, this error is rarely encountered since AndApp clients are updated by an automatic update cycle earlier than the SDK.

If it occurs, encourage to restart the AndApp client for the end user.

-21071Common

When a creation of the AndApp user is incomplete

(This error will occur when executing the exe directly and calling initialize after switching the user.)

This error occurs when executing the exe directly which found by myself without the AndApp client has never been launched after switching the user.

Normally, all users and applications are deleted at uninstalling. Therefore, the behavior above will never occur on a product environment. If this error occurs, encouraging to launch the application via the AndApp client (that is launching from the application shortcut) is recommended.

-21 XXX series (settlement related)
-21011RequestPurchase

Payment cancellation

It occurs in the case where the payment is canceled by the user's operation. Restore the status of before starting the payment.
-21012RequestPurchasePayment failed (synchronize)

Although unnecessary to handle this error especially, need to restore the status of before starting the payment, as the same at cancelling a payment.

-21022RequestPurchasePayment failed because of the existence of unused products.Although unnecessary to handle this error especially, need to restore the status of before starting the payment, as the same at cancelling a payment.
-21013RequestPurchasePayment failed (asynchronous)Although unnecessary to handle this error especially, need to restore the status of before starting the payment, as the same at cancelling a payment.
-21022RequestPurchaseWhen trying to purchase ProductId which has not been consumed in ConsumePurchaseStart the payment process after executing the recovery process to complete the incomplete payment.
-21032RequestPurchaseThe payment function is restricted

Although unnecessary to handle this error especially, need to restore the status of before starting the payment, as the same at cancelling a payment.

Or, implement the process to start a payment process after confirming the Payment.IsBillingSupported property.

-21042RequestPurchasePayment was tried in multiple windows

Although unnecessary to handle this error especially, need to restore the status of before starting the payment, as the same at cancelling a payment.

In addition, an error message is displayed on another screen. Normally it is not necessary to implement to display a message.
-21 XXX series (related to SetInAppUserId / GetInAppUserId)
-21061SetInAppUserIDWhen the inAppUserId specified at executing the SetInAppUserId has already been linked to the player ID connected to the IdP.In this case, the application cannot be launched. Therefore, back to the title page.
-21062GetInAppUserIDWhen the GetInAppUserId was executed without setting the inAppUserId linked to the player ID.

Handle this error, and call both the SetInAppUsrId and the inAppUserId.

-21063SetInAppUserID

When the inAppUserId specified at executing the SetInAppUserId was already linked to the player ID connected to other IdP.

(Under AndApp client 1.1.1, in this case -21061 will be returned)

In this case, the application cannot be launched. Therefore, back to the title page.
-3XXXX series (SDK internal)
-30001CommonWhen some API which is not the initialize was executed before completing calling the initialize.Revise the implementation method of API.
-30002InitializeInitialize completed and initialize was executed again.Revise the implementation method of API.
-30003CommonInvalid argument.Revise the implementation method of API.
-30004CommonResponse from a background process is invalidUnnecessary to handle this error especially.
-30005CommonWhen the connection destination file of the AndApp client exists but can not be connectedEncourage the user to shutdown the application and to restart the application via the AndApp client.
-30010CommonWhen an unknown internal error occursUnnecessary to handle this error especially.

Change log​

  • 2017/03/09
    • With the AndApp client 1.1.1 release, error code addition
  • 2016/12/9
    • Since the item of error code -21000 was missing, they were added.
    • The description content of the error code -21001 was incorrect so we fixed it.
  • 2016/12/01
    • We have added details of the recommended processing that you would like to do with the error code.
    • We have described the explanation of the error code in detail.
    • Since there were omissions of error codes - 21005, -21015, -21050, -21051, -21071, - 30010, it was added.
  • 2016/11/19
    • Since error codes -21032 and -21042 were added, they were added.
  • 2016/11/02
    • Added error code as AndApp client update
  • 2016/09/17
    • Created