Note. There is a known issue with running Instant Apps on an emulator image that includes the Google Play Store, which will give the same error. For now, use an emulator without a Play Store.
The Google Play service, which provides statusCode=API_UNAVAILABLE , means that your device cannot start Instant Apps for one reason or another. For example, you are not using a supported device or are not in a running country. See here for a list of supported development devices and here a list of countries. Instant applications are available.
The emulator should still work for development and will work beyond any restrictions. For instructions on how to configure the emulator for developing the Instant App, see here:
https://developer.android.com/topic/instant-apps/getting-started/setup.html#setup-emulator
Adamk
source share