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

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

问题描述:

我是刚开始运行即时应用程序的人.根据 Android开发者文档.

I am new to running instant app. I have created a new "Hello World" project with instant app support, according to android developer documents.

但是,当运行"instantapp"时,发生以下错误:

But, when running "instantapp", the following error occurs:

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

I would appreciate it if anyone could help.

注意:在包含Google Play商店的模拟器映像上运行Instant Apps时存在一个已知问题,这将产生相同的错误.目前,请使用不带Play商店的模拟器.

Note: There is a known issue running Instant Apps on the emulator image that includes the Google Play Store which will give this same error. For now, please use the emulator without Play Store.

提供statusCode=API_UNAVAILABLE的Google Play服务意味着您的设备由于某种原因而无法运行Instant Apps.例如,您未使用受支持的设备,或者您不在被启动的国家/地区.请参阅此处以获取列表支持的开发设备以及此处以获取国家/地区列表应用可用.

Google Play Services giving statusCode=API_UNAVAILABLE means your device is not able to run Instant Apps for one reason or another. For example, you are not using a supported device or you are not in a launched country. Please see here for a list of supported development devices and here for a list of countries Instant Apps are available in.

仿真器仍应可以进行开发,并且可以不受任何限制地运行.有关为即时应用程序开发设置模拟器的说明,请参见此处:

The emulator should still work for development and will run outside of any restrictions. For instructions on setting up an emulator for Instant App development see here:

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