Android Studio Preview 3.0 - 运行 免安装应用程序安装失败

Android Studio Preview 3.0 - Application installation failed when running instant app

我是 运行 免安装应用的新手。根据 android developer documents.

,我创建了一个支持即时应用程序的新 "Hello World" 项目

但是,当运行"instantapp"时,出现如下错误:

如果有人能提供帮助,我将不胜感激。

注意:在包含 Google Play 商店的模拟器图像上存在 运行ning Instant Apps 的已知问题,它会给出同样的错误.目前,请使用没有 Play Store 的模拟器。

Google Play 服务提供 statusCode=API_UNAVAILABLE 意味着您的设备由于某种原因无法 运行 Instant Apps。例如,您没有使用受支持的设备,或者您不在已发布的国家/地区。请参阅 here for a list of supported development devices and here 以获取可使用免安装应用程序的国家/地区列表。

模拟器应该仍然可以用于开发,并且 运行 不受任何限制。有关为 Instant App 开发设置模拟器的说明,请参见此处:

https://developer.android.com/topic/instant-apps/getting-started/setup.html#setup-emulator