Failed to execute instant lateral download application: schedule timeout

Unable to use Android Emulator to test Instant Apps! Every time I get "Side loading instant application failed: packet timeout for distribution."


I am using Android Studio 3.0 Canary-5

Emulator . Image Nexus 5X is running Android 6.0 (API level 23), x86, with Google APIs. Google API Intel X86 Atom System Image (Revision 21)

Note. After updating Android Studio 3.0 (Canary-4> Canary-5) & Image system emulator from version (20> 21) . I can not start an instant application through the emulator. I always get an error saying "Lateral download instant application failed: timeout schedule."

com.google.android.gms.persistent E/InstantApps: DomainFilterImpl: Error while reading domain filter from WHAPI
                                                                              java.util.concurrent.ExecutionException: awjr: INVALID_ARGUMENT: Application credential header not valid. Please fix the client to pass a valid application credential header.
                                                                                  at java.util.concurrent.FutureTask.report(FutureTask.java:94)
                                                                                  at java.util.concurrent.FutureTask.get(FutureTask.java:164)
                                                                                  at tey.get(:com.google.android.gms:1)
                                                                                  at tir.a(:com.google.android.gms:25)
                                                                                  at tir.a(:com.google.android.gms:16)
                                                                                  at tir.a(:com.google.android.gms:9)
                                                                                  at tir.b(:com.google.android.gms:0)
                                                                                  at tio.b(:com.google.android.gms:0)
                                                                                  at com.google.android.gms.instantapps.routing.DomainFilterUpdateChimeraService.a(:com.google.android.gms:14)
                                                                                  at tiu.run(:com.google.android.gms:0)
                                                                                  at lhb.run(:com.google.android.gms:24)
                                                                                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
                                                                                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
                                                                                  at lmc.run(:com.google.android.gms:0)
                                                                                  at java.lang.Thread.run(Thread.java:818)
                                                                               Caused by: awjr: INVALID_ARGUMENT: Application credential header not valid. Please fix the client to pass a valid application credential header.
                                                                                  at awjn.c(:com.google.android.gms:0)
                                                                                  at lbb.a(:com.google.android.gms:97)
                                                                                  at tem.b(:com.google.android.gms:43)
                                                                                  at tem.a(:com.google.android.gms:0)
                                                                                  at tez.call(:com.google.android.gms:1)
                                                                                  at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                                                                                  at lhb.run(:com.google.android.gms:24) 
                                                                                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 
                                                                                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 
                                                                                  at lmc.run(:com.google.android.gms:0) 
                                                                                  at java.lang.Thread.run(Thread.java:818) 

    W/ActivityManager: Unable to start service Intent { act=com.google.android.instantapps.devman.iapk.LOAD cmp=com.google.android.instantapps.devman/.iapk.IapkLoadService (has extras) } U=0: not found

Appreciate your help.


Update:

The solution found in the Android studio release notes is here . This is a known issue in Android Studio canary-5.

. , Android Studio, , Android Studio /. , . instantapp . " " " : Gradle -aware Make, Instant App Provision" ( ) " "

+3
4

" ", , , , ( ), , ( Android Studio).

- : InstantApp → → → → .

+3

compileSDK 26 targetSDK 26. SDK 25 supportLibrary 25.4.0, .

+1

devman.apkmissing in the folder sdk/extras/google/instantapps/tools/apks/debug. Before starting the application, instantly download it manually:

adb install /path/to/android/sdk/extras/google/instantapps/tools/apks/release/devman.apk
+1
source

In my case, the option in (in the emulator) Settings → Google → Instant Applications was disabled.
I manually turned it on, then it worked fine.

0
source

Source: https://habr.com/ru/post/1681825/


All Articles