即时应用程序未在模拟器上运行

问题描述 投票:1回答:1

我有一个即时应用程序项目,在几个障碍后我能够在模拟器上运行(Nexus 5X API 26)

Android: Instant app showing just white screen

现在,2个月后我试图运行同一个项目,但它没有成功

Nexus 5X(任何api):

Adb devices给出以下结果

emulator-5554 unauthorized enter image description here


Pixel APi 24:

侧面加载失败,显示消息:尝试阅读bundle时失败。无法连接到Google Play服务。 ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}

enter image description here

物理设备:

配置失败并显示消息:所使用的设备未列入Instant Apps部署的白名单。

按照doc的即时应用程序工作

Most Android devices running Android 5.1 (API level 21) or higher.

我试过的设备

  • Mi Redmi Note 3(棉花糖)
  • MotoGPlus(Nugat)

Android工作室版本3

如何才能工作?

android android-instant-apps
1个回答
1
投票

Pixel API 24仿真器:

  1. 您需要安装具有Google API的Android系统映像。您可以在创建新模拟器时看到这些图像,它们的名称类似于:“Android 7.1.1(Google API)”。
  2. 确保您的模拟器中包含最新版本的Google Play服务。要做到这一点:转到模拟器的扩展控件(通过单击三个点) - > Google Play - >更新。请注意,只有使用Google API安装系统映像时才会显示此信息(请参阅步骤1)。
  3. 确保在设备/模拟器上启用了Instant Apps。见:https://support.google.com/googleplay/answer/7240211?hl=en

物理设备:

只有少数选定的设备(如Pixel)与Instant Apps开发兼容。

见:https://github.com/googlesamples/android-instant-apps/issues/1


有关为Instant Apps开发设置设备或模拟器的信息,请参阅developer documents

© www.soinside.com 2019 - 2024. All rights reserved.