I have One instant app project, which after few hurdles I was able to run on the emulator (Nexus 5X API 26)
Android: Instant app showing just white screen
Now, after 2 months I am trying to run the same project but its not working out
Nexus 5X(Any api):
Adb devices give the following result
emulator-5554 unauthorized
Pixel APi 24 :
Side loading failed with message: Failure when trying to read bundle.Unable to connect to Google Play services. ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
Physical Device's :
Provision failed with message: The device used is not whitelisted for Instant Apps deployment.
As per doc's Instant apps work on
Most Android devices running Android 5.1 (API level 21) or higher.
Devices that I have tried on
Mi Redmi Note 3(marshmallow)
Moto G4 plus (Nougat)
Android studio version 3
How can it be made to work?
Pixel API 24 emulator:
You need to install an Android system image that have Google APIs. You can see those images while creating new emulator, they have a name like: "Android 7.1.1 (Google APIs)".
Make sure you have the latest version of Google Play Services in your emulator. To do that: go to emulator's extended controls (by clicking three dots) -> Google Play -> Update. Note that this only visible if you install a system image with Google APIs (see step 1.)
Make sure you enabled Instant Apps on your device/emulator. See: https://support.google.com/googleplay/answer/7240211?hl=en
Physical Device:
Only few selected devices (such as Pixel) are compatible with Instant Apps development.
See: https://github.com/googlesamples/android-instant-apps/issues/1
See the developer documents about setting up device or emulator for Instant Apps development.
Related
I'm running android emulator with a virtual device API version 21 (also same testing on 22) because apparently my processor, AMD Phenon II x6 1055t, is not supported by google anymore as I have researched here on SO. Indeed creating a device with version 21 or 22 successfully made the emulator open and boot the virtual device OS.
Now my problem is that the app I'm developing does not open, it either crashes or freeze during load.
This is not unique to the app I'm developing, maps, settings, and the sample project from android studio also do not open. For maps and settings I see the message that google play services stopped working.
BTW if I reboot the device, this message that google play services stopped working floods with popups for about 2 minutes until it stops after that time.
I have captured the error messages by running the emulator with this command: emulator #Pixel2_21 -logcat '*:v'
and pasted the complete log here: pastebin.com/acgF6A8K
I can provide more logs if someone instructs me on how to do so.
I wonder if shows any clues or if I'm still at a stage that it could be anything
Thanks in advance
Update 1.
By selecting another image that does not include google API I was able to launch some of the native apps that were not loading before. Same API version 21, just selected another one that do not include the google API.
The app I'm developing still does not load though
Update 2
See the link below for more info on specific compatibility for my processor related to the Android OS API versions:
https://issuetracker.google.com/issues/37076174
Recently my Pixel started showing the following message:
Development Mode Active -
URLs will be routed to Dev Manager in order to launch Instant Apps locally.
Also, in settings -> apps I can see Google play services for Instant apps.
Now, when I tried wish and buzzfeed tasty so that I can run their Instant apps I was taken to their site and not in the Instant app.
I built an Instant app in Android Studio 3.0 Canary 4.
It is working fine on the emulator but when I connected my Pixel running on android 7 it shows the following error -
Side loading instant app failed: Reading bundle timed out.
and when I retry some more times it shows this -
Side loading instant app failed: Failure when trying to read bundle.
Unable to connect to Google Play Service ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
A same question has been asked here but in this case the problem is with the emulator not a real device.
CompiledSdkVersion 25 targetSdkVersion 25 buildToolsVersion 25.0.3
Any help would be appreciated and also a list of some already published instant apps I can try.
Unfortunately Instant Apps is not yet available in India. That means, Instant Apps features are by default turned off on the real devices, including in development environment. See the list of supported countries here: https://support.google.com/googleplay/android-developer/answer/7381861#production
We are working on this issue and will provide an update in a few weeks. In the mean time, please use emulators for you development.
In your instant App run configuration.
Try To enable Instant APP Provision and "Clear Provisioned Devices Cache"
Now Instant apps is available in India.
You can check by searching buzzfeed tasty in chrome.
Attaching screenshot below
Or you could visit https://developer.android.com/topic/instant-apps/index.html and click the screenshot on that site. Post clicking website will open. Below that website a popup will show to "open app". Post clicking "open app", instant app will get opened
Note : Turn on instant app in Google menu in Settings in phone before trying above
I can make an emulator with Marshmallow. I can see the target (with Google APIs), but when I select that it defaults back to a similar setting but without the Google API's. Without it I get the message to update the google play service.
Settings I choose but shouldn't matter:
Phone, Nexus 5, 4,95", 1080x1920, xxhpdi.
Marshmallow, 23, x86, Android 6.0 (with Google APIs)
The goal is to get by the 'Update Google Play Service' message to test apps on an emulator.
When I create new target with Google APIs 23 using Android Studio —— AVD Manager,I meet the same trouble with you. So I turn off Android Studio,just open AVD Manager only,try to create target with Google APIs,I succeed.
You can try another way to create new target,command line is a good choice,you can see the log to confirm where the problem is.
Open SDK Manager , and install Google APIs Intel x86 and google APIs if they re not installed
I'm thinking of use this to interact with G+ circles:
https://developers.google.com/+/mobile/android/getting-started
The question is, does it works in Android devices 4.1 or later?
Cause in the "get started" page says in prerequisites: A physical device to use for developing and testing because Google Play services can only be installed on an emulator with an AVD that runs Google APIs platform based on Android 4.2.2 or higher.
This apply only to AVD, right?
Google Play Services supports Android devices running Android 2.3+ and emulated devices running Android 4.2.2+.
https://developer.android.com/google/play-services/setup.html
I am trying to test a Simple Map application on Emulator.I also Installed the Following Apks on emulator com.google.android.gms-1.apk and com.android.vending-1.apk and Google Play Store 4110.apk and Here is Preview of My emulator
device 3.2 HVGA SLIER(320480*)
TARGER Google APIs Api Level 15
internal storage 200 mib
sd card 500 mb
Any One Help Me to Get Out of This Issue Plz i am trying Since two days But Map is not loading On emulator
You should test your map application on a real device. I would suggest you to test it on a real device.
There is a work around. Drawing from the below link. I have not tested it. But you can give it a try.
http://blog-emildesign.rhcloud.com/?p=527
Download com.android.vending.apk from
http://www.mediafire.com/download/pxpjfkveemq29qk/com.android.vending.apk
Download com.google.android.gms.apk from
http://www.mediafire.com/download/zn8wna5wf4ek5le/com.google.android.gms.apk
Open eclipse and the AVD Manager and create an AVD with the following configuration:
Start the AVD and wait for it to finish booting, next open you command prompt and install
both apk’s using the “adb install” command. for example:
To install use the following command
adb install com.android.vending.apk
You should receive “SUCCESS” message at the end of the installation process (that may take some time).
When you finish installing both apk files, close the AVD and reopen it. Now you should see a map in your application when you use the AVD instead of this annoying message.
Note : This will work only if you are using google-play-service lib revision #4 in your application (and workspace). If you have already updated google-play-services using the SDK Manager to the latest version (Currently: revision #6) you will receive an error telling you that you that the google-play-services used by your application is too old and needs to be updated:
Further you can check this blog by Emil Adz.
http://blog-emildesign.rhcloud.com/?p=435
You need any of the below to test Google Play Services .apk:
A compatible Android device that runs Android 2.2 or higher and
includes Google Play Store.
The Android emulator with an AVD that runs the Google APIs
platform based on Android 4.2.2 or higher.
Yours is 4.0.3
There's a new emulator called Genymotion that supports play store and google play services