In-App Update gives InstallException (ERROR_API_NOT_AVAILABLE)

前端 未结 7 880
野性不改
野性不改 2021-02-01 23:04

Implemented in-app update feature, using the following code snippet:

private void showInAppUpdateDialog(boolean isMandat         


        
7条回答
  •  鱼传尺愫
    2021-02-01 23:52

    Firstly, please check that you are using the latest version of the play library.

    Secondly, understated fact: Please check the app you are testing has the same package name which is available on the play store.

    Example:

    You have an app on the play store with package name com.example.app but you are testing your app with package name com.example.app.debug. You will get this error: ERROR_API_NOT_AVAILABLE

    Note: You need to have at least one version of your app on the play store when you are testing.

提交回复
热议问题