Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Preview 3.0 - Application installation failed when running instant app

I am new to running instant app. I have created a new "Hello World" project with instant app support, according to android developer documents.

But, when running "instantapp", the following error occurs:

enter image description here

I would appreciate it if anyone could help.

like image 618
mm49307 Avatar asked May 18 '17 15:05

mm49307


1 Answers

Note: There is a known issue running Instant Apps on the emulator image that includes the Google Play Store which will give this same error. For now, please use the emulator without Play Store.

Google Play Services giving statusCode=API_UNAVAILABLE means your device is not able to run Instant Apps for one reason or another. For example, you are not using a supported device or you are not in a launched country. Please see here for a list of supported development devices and here for a list of countries Instant Apps are available in.

The emulator should still work for development and will run outside of any restrictions. For instructions on setting up an emulator for Instant App development see here:

https://developer.android.com/topic/instant-apps/getting-started/setup.html#setup-emulator

like image 76
AdamK Avatar answered Oct 21 '22 05:10

AdamK