Search code examples
android-instant-apps

Unable launch instant app from AS on phone


I want to debug my instant app from the android studio, but cannot:

  1. try using the default configuration for the instant app, but get this

  2. try using terminal by ia run instantapp-debug.zip (ia - jar from extras folder) or adb install-multiple -r -t --instantapp *.apk, but in both cases get the error db: failed to install \extras\google\instantapps\tools\apks\release\supervisor_armeabi-v7a.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]

can anyone help me this it?

Versions: Android Studio 3.1.3, gradle plugin 3.3.0-alpha02, gradle version 4.8, ia sdk 1.3.0

PS: instant app published and work fine in store (now in an internal test)

PS2: ia can be deployed to another phone. So the problem only with a specific phone.


Solution

  • For anyone else who runs into this issue, make sure you have the newest version of the Google Play Instant Development SDK (at least SDK 1.5).

    You can find it in the Tools > Android > SDK Manager > SDK Tools. Check the box next to the Google Play Instant SDK and apply the upgrade.