下载失败,因为您可能没有购买此应用程序 - 模拟器

Download failed because you may not have purchased this app - emulator

亲爱的, 我的 apk 扩展在真实设备上运行良好,但在模拟器上出现此错误

Download failed because you may not have purchased this app

这是logcat:

BE/Checking_download: expansion not delivered E/Checking_download: try intent E/Checking_download: intented launched E/Checking_download: Category isandroid.intent.category.LAUNCHER E/Checking_download: Start the download service E/Checking_download: initialize activity to show progress , result is: 2 ro.sf.lcd_density must be defined as a build property

[ 04-25 00:08:50.630  8167: 8167 D/         ]

HostConnection::get() New Host Connection established 0x9f4b1d40, tid 8167 E/Checking_download: service_resume :

                  [ 04-25 00:08:50.828  8167: 8190 D/         ]
                  HostConnection::get() New Host Connection established 0xa1fdf2c0, tid 8190

E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008824 E/Checking_download: service_to_connected : E/Checking_download: service_connected : E/FA: Discarding data. Failed to send app launch E/FA: Failed to get app instance id E/FA: Failed to send current screen to service E/FA: Discarding data. Failed to send event to service E/Checking_download: DownloadStateChanged : Looking for resources to download E/Checking_download: DownloadStateChanged : Download failed because you may not have purchased this app

备注:

1-Again 应用程序在 google 上运行,可在真实设备上正常运行。

2-Emulator API 版本是:google play API-25.

3-Google 帐户已添加到模拟器。 (使用我的 gmail 登录)。

4-Google 已安装播放服务。

提前致谢。

答案很简单,应用程序版本代码必须与上传版本相同才能播放google。 即(在 build.gradle 中,应用级别检查

versionCode 2

那你得从googleplay确认一下这个版本已经上传好了