Issue with instant run and Google Maps
Asked Answered
L

1

8

There seems to be an issue with instant run and Google Maps. Upon re-running an application to see changes, if the application is using Google Maps, a crash will occur. Here is part of the stack trace:

java.lang.RuntimeException: 
android.content.res.Resources$NotFoundException: File res/drawable/common_google_signin_btn_text_light_focused.xml from drawable resource ID 
           at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
           ........
Caused by: android.content.res.Resources$NotFoundException: File res/drawable/common_google_signin_btn_text_light_focused.xml from drawable resource ID 
          at android.content.res.Resources.loadDrawableForCookie(Resources.java:2640)
          .....
Caused by: android.content.res.Resources$NotFoundException: File res/drawable-xxhdpi-v4/maps_btn_myl_pressed.png from drawable resource ID

The crash is occuring because of a ResourcesNotFoundException, which seems to be caused by files such as those listed in the above stacktrace.

Has anyone run into this issue, and if so, what is the fix?

Lost answered 9/1, 2017 at 22:53 Comment(5)
it clearly saying the drawable is not found, plz check again for thatRoentgenogram
@Roentgenogram These drawables are not part of my project.Lost
common_google_signin_btn_text_light_focused.xml has the problem with id, check that issue.Roentgenogram
I'm having the same issue, and still no solution.Mesdames
Same problem here so upvoted question... looks like pretty old, did you found solution ?Crossroad
A
0

try this in gradle file :

android {  
    defaultConfig {  
         vectorDrawables.useSupportLibrary = true  
        }  
}

and use latest buildToolsVersion '28.0.3'

Aweather answered 24/10, 2018 at 14:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.