Unable to use Android Emulator, for testing the Instant Apps!! Every-time I\'m getting \"Side loading instant app failed: Reading bundle timed out.\"
<I had a similar error when building the project using compileSDK 26
and targetSDK 26
.
Going back to SDK 25
and supportLibrary 25.4.0
solved the problem for me.
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).
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.
In my case the option in (in the emulator)Settings -> Google -> Instant Apps was disabled.
I manually enabled it, then it worked fine.
devman.apk
is missing under sdk/extras/google/instantapps/tools/apks/debug
folder. Please sideload it manually before running your instant app:
adb install /path/to/android/sdk/extras/google/instantapps/tools/apks/release/devman.apk