我是运行即时应用程序的新手。我创建了一个新的“Hello World”项目,具有即时应用程序支持,根据安卓开发者文档 https://developer.android.com/topic/instant-apps/getting-started/first-instant-app.html.
但是,当运行“instantapp”时,出现以下错误:
如果有人可以提供帮助,我将不胜感激。
注意:在包含 Google Play 商店的模拟器映像上运行即时应用程序时存在一个已知问题,该问题会出现相同的错误。目前,请使用没有 Play 商店的模拟器。
Google Play 服务给予statusCode=API_UNAVAILABLE
意味着您的设备由于某种原因无法运行即时应用程序。例如,您没有使用受支持的设备,或者您不在已推出的国家/地区。请参见here https://developer.android.com/topic/instant-apps/getting-started/setup.html#setup-emulator有关受支持的开发设备的列表以及here https://support.google.com/googleplay/android-developer/answer/7381861#production查看可使用即时应用程序的国家/地区列表。
模拟器应该仍然可以用于开发,并且可以不受任何限制地运行。有关设置模拟器以进行即时应用程序开发的说明,请参阅此处:
https://developer.android.com/topic/instant-apps/getting-started/setup.html#setup-emulator https://developer.android.com/topic/instant-apps/getting-started/setup.html#setup-emulator
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)