【问题标题】:Apk Expansion file is not downloaded through emulatorApk 扩展文件不是通过模拟器下载的
【发布时间】:2018-04-22 20:29:56
【问题描述】:

我的应用已上传到 Play 商店,它有一个 APK 扩展文件。在真实设备中测试并且工作正常。有时我会收到崩溃报告,我想在模拟器中模拟它们。 我收到这条消息“Download failed because the resources could not be found

这里是 Logcat:

E/Checking_download: service_to_connected : E/Checking_download: service_connected : E/Checking_download: DownloadStateChanged : 寻找要下载的资源 E/vending: [125] VendingApplication.getAuthTokenBlocking(): ANDROID 没有匹配的帐户 E/vending:[125] AsynchRequestRunner$1.runRequestRetryingFailure(): Got ApiException from async request: Sent a bad request. E/vending: [125] VendingApplication.getAuthTokenBlocking(): ANDROID 没有匹配的帐户 E/vending:[125] AsynchRequestRunner$1.runRequestRetryingFailure(): Got ApiException from async request: Sent a bad request. E/vending: [125] VendingApplication.getAuthTokenBlocking(): ANDROID 没有匹配的帐户 E/vending:[125] AsynchRequestRunner$1.runRequestRetryingFailure(): Got ApiException from async request: Sent a bad request. E/vending: [125] VendingApplication.getAuthTokenBlocking(): ANDROID 没有匹配的帐户 E/vending:[125] AsynchRequestRunner$1.runRequestRetryingFailure(): Got ApiException from async request: Sent a bad request. E/vending: [125] VendingApplication.getAuthTokenBlocking(): ANDROID 没有匹配的帐户 E/vending:[125] AsynchRequestRunner$1.runRequestRetryingFailure(): Got ApiException from async request: Sent a bad request. E/vending: [125] VendingApplication.getAuthTokenBlocking(): ANDROID 没有匹配的帐户 E/vending:[125] AsynchRequestRunner$1.runRequestRetryingFailure(): Got ApiException from async request: Sent a bad request. E/Checking_download: DownloadStateChanged : 下载失败,因为找不到资源 E/dalvikvm:找不到类 'android.os.UserManager',引用自方法 com.google.android.gms.common.GooglePlayServicesUtilLight.isRestrictedUserProfile E/FA:丢弃数据。发送应用启动失败 E/FA: 获取应用实例 ID 失败 E/FA:无法将当前屏幕发送到服务 E/FA:丢弃数据。无法将事件发送到服务 E/FA:丢弃数据。向服务发送事件失败

请注意,我尝试了许多 Google API。 26,27,.....

以上 logcat 来自 API 15。

模拟器配置:- 感谢大家一如既往的支持。

【问题讨论】:

    标签: android android-emulator apk apk-expansion-files


    【解决方案1】:

    您确定要运行带有 Google Play 服务和 Play 商店的模拟器吗?从那个 logcat 看起来你不是。如果您确定是,它们是最新的吗?

    【讨论】:

    • 配置为Android 4.0.3(Google APIs)。我在上面添加了 AVD 管理器的屏幕截图。它们是最新的,因为我 2 天前刚刚安装了它们。我再次检查了 SDK 管理器,没有可用的更新。谢谢。
    • 您需要一个拥有 Play 商店的产品。请参阅此博文:androidstudio.googleblog.com/2017/04/…
    • 我将 Google API 更改为 Google Play,错误变为“下载失败,因为您可能没有购买此应用”,这意味着您的解决方案已被接受
    • 澄清一下,如果它在模拟器配置中显示“Google APIs”,则它不是必需的 Google Play 启用模拟器。转到 Tools -> AVD Manager 并创建或编辑虚拟设备。查看推荐列表 - 括号中的“Google Play”。
    猜你喜欢
    • 1970-01-01
    • 2014-01-31
    • 2012-05-04
    • 1970-01-01
    • 2016-06-29
    • 2015-02-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多