Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Play Instant Development SDK Update Fails

Android Studio 3.2 RC3 keeps asking me to update the Google Play Instant Development SDK (from 1.3.0 to 1.4.0), but it always fails the update with this message:

Failed packages: - Google Play Instant Development SDK (extras;google;instantapps)

How can I fix this?

like image 254
Michel Feinstein Avatar asked Sep 13 '18 21:09

Michel Feinstein


People also ask

Why Google Play Instant not working?

You can also check these settings in the Play Store. Tap the hamburger menu in the top-right corner, then tap "Settings." On the following page, tap "Use apps without installation," then make sure one of your Google accounts has Android Instant Apps enabled.

How do I update my SDK?

Open the Preferences window by clicking File > Settings (on Mac, Android Studio > Preferences). In the left panel, click Appearance & Behavior > System Settings > Updates. Be sure that Automatically check for updates is checked, then select a channel from the drop-down list (see figure 1). Click Apply or OK.

How do you fix Unfortunately Google Play services for instant apps has stopped?

Solution 1 – Update Google Play Services to the latest version. You can download from here. You may be getting an error because you have a very outdated version or the one you have is having a conflict/bug with the current Android version in your phone. Solution 2 – Clear the Google Play Services cache.

What is Instantplay?

Google Play Instant enables native apps and games to launch on devices running Android 5.0 (API level 21) or higher without being installed. You can build these types of experiences, called instant apps and instant games, using Android Studio.


3 Answers

  • Close Android Studio completely

File -> Close.

  • Delete instantapps Folder form your sdk:

C:\Users\xxx\AppData\Local\Android\Sdk\extras\google\instantapps

  • update again.

read more http://syscurity.blogspot.com/2018/09/failed-packages-google-play-instant.html

like image 137
Samit Paneekan Avatar answered Nov 17 '22 02:11

Samit Paneekan


I was able to get this working by:

  1. Closing my project (File -> Close Project)
  2. Open SDK Manager from the gear at the bottom of the window
  3. Click Updates on the left
  4. I had to do this twice and it worked the second time.

If that won't work you can try File -> Invalidate Cache/restart -> Invalidate Restart. Android Studio will close and restart and then updates should install properly.

like image 33
Bryan Avatar answered Nov 17 '22 02:11

Bryan


After delete, you reinstall here "Instant"

enter image description here

like image 36
Croid Avatar answered Nov 17 '22 02:11

Croid