且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

侧加载即时应用程序失败:读取包超时

更新时间:2023-11-22 18:06:04

该设备被视为已为免安装应用程序配置",但事实并非如此,可能是因为之前使用了具有相同序列号的另一台设备(相同的模拟器)和修改或因为设备被外部修改(不是由 Android Studio).

The device is being considered as "already provisioned for instant apps" but it's not, probably because another device with the same serial number (same emulator) was used before and modified or because the device was modified externally (not by Android Studio).

解决方法是在每次运行之前清除缓存:InstantApp 运行配置 -> 运行前任务 -> 配置即时应用任务 -> 编辑 -> 清除配置的设备缓存.

A workaround for that is to clear the cache before each run: InstantApp run configuration -> before run tasks -> provision for instant app task -> edit -> clear provisioned devices cache.