本文介绍了未在 Pixel 上运行的 Android 免安装应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我的 Pixel 开始显示以下消息:

Recently my Pixel started showing the following message:

Development Mode Active -
URLs will be routed to Dev Manager in order to launch Instant Apps locally.

此外,在 设置中 ->应用 我可以看到免安装应用的 Google Play 服务.
现在,当我尝试 wishbuzzfeed 美味 以便我可以运行他们的 Instant 应用程序时,我被带到了他们的网站,而不是 Instant 应用程序.

Also, in settings -> apps I can see Google play services for Instant apps.
Now, when I tried wish and buzzfeed tasty so that I can run their Instant apps I was taken to their site and not in the Instant app.

我在 Android Studio 3.0 Canary 4 中构建了一个免安装应用.
它在模拟器上运行良好,但是当我连接在 android 7 上运行的 Pixel 时,它显示以下错误 -

I built an Instant app in Android Studio 3.0 Canary 4.
It is working fine on the emulator but when I connected my Pixel running on android 7 it shows the following error -

侧加载免安装应用失败:读取包超时.

当我再试几次时它会显示这个 -

and when I retry some more times it shows this -

Side loading instant app failed: Failure when trying to read bundle.
Unable to connect to Google Play Service ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}

此处提出了同样的问题但是在这种情况下,问题在于模拟器而不是真正的设备.

A same question has been asked here but in this case the problem is with the emulator not a real device.

CompiledSdkVersion 25
targetSdkVersion 25
buildToolsVersion 25.0.3

如果您能提供任何帮助,以及我可以尝试的一些已发布的免安装应用的列表,我们将不胜感激.

Any help would be appreciated and also a list of some already published instant apps I can try.

推荐答案

遗憾的是,Instant Apps 尚未在印度推出.这意味着,默认情况下,即时应用功能在真实设备上是关闭的,包括在开发环境中.在此处查看支持的国家/地区列表:https://support.google.com/googleplay/android-developer/answer/7381861#production

Unfortunately Instant Apps is not yet available in India. That means, Instant Apps features are by default turned off on the real devices, including in development environment. See the list of supported countries here: https://support.google.com/googleplay/android-developer/answer/7381861#production

我们正在解决这个问题,并将在几周内提供更新.同时,请使用模拟器进行开发.

We are working on this issue and will provide an update in a few weeks. In the mean time, please use emulators for you development.

这篇关于未在 Pixel 上运行的 Android 免安装应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-07 20:16