com.google.android.play.core.install.InstallException:安装错误(-


E/com.google.android.play.core.appupdate.j: b
com.google.android.play.core.install.InstallException: Install Error(-3): The API is not available on this device. (https://developer.android.com/reference/com/google/android/play/core/install/model/InstallErrorCode#ERROR_API_NOT_AVAILABLE)
at com.google.android.play.core.appupdate.j.b(Unknown Source)
at com.google.android.play.core.internal.p.a(Unknown Source)
at com.google.android.play.core.internal.j.onTransact(Unknown Source)
at android.os.Binder.execTransact(Binder.java:453)

以上错误仅适用于Android版本6。我保持了minSdkVersion21targetSdkVersion为<strong]28>。我们有解决这个错误的办法吗?

好吧,这个bug让我彻夜难眠。首先我面对

ERROR_INSTALL_NOT_ALLOWED

由于当前设备状态(例如电池电量不足、磁盘空间不足等(,不允许下载/安装。

常数值:-6(0xfffffffa(

解决方案理想的原因可能是电池电量低、磁盘空间不足等,但就我而言,我没有使用我的谷歌帐户登录play store。如果您正在使用模拟器或实际设备,请检查您是否登录了PlayStore

错误_API_NOT_AVAILABLE自动条码识别

API在此设备上不可用。

常数值:-3(0xfffffd(解决方案

1-我使用内部通道进行应用内测试,更新对话框仅显示在我的Gmail帐户登录Play Store并添加到内部通道的设备上。如果你的Gmail没有添加,对话框将不会显示

2-如果你已经为公众上传了应用程序,并试图减少测试的版本代码,这将没有帮助。您将无法获得Api。你应该从Play Store安装应用程序,然后增加版本代码并发布新版本。一旦新版本上线,请打开已安装的应用程序。将显示一个更新对话框。

最新更新