Android Question Sudden Issues with Google Maps

GeoffT660

Active Member
Licensed User
Longtime User
Just about an hour ago my app started having issues using google maps when loading the Activity with a MapFragment. Have there been any changes or does anyone know why this might be happening all of a sudden? My App just stops with this error:
java.lang.ArrayIndexOutOfBoundsException: length=1; index=12
at com.google.maps.api.android.lib6.gmm6.vector.ct.<init>:)com.google.android.gms.dynamite_mapsdynamite@201216081@20.12.16 (120400-0):9)
at com.google.maps.api.android.lib6.gmm6.vector.cv.a:)com.google.android.gms.dynamite_mapsdynamite@201216081@20.12.16 (120400-0):23)
at com.google.maps.api.android.lib6.gmm6.util.m.run:)com.google.android.gms.dynamite_mapsdynamite@201216081@20.12.16 (120400-0):14)
at java.lang.Thread.run(Thread.java:919)
 

JohnC

Expert
Licensed User
Longtime User
Its a problem on google's backend.

You can try running the regular google maps app and it will also crash.

Because google's own maps app crashes, I'm sure google is on it and will be fixed on their end shortly.
 
Upvote 0

michw

Member
Licensed User
Longtime User
Hello,
I have the same problem with my application. Tonight he throws me the same error.
I don't know what's going on, but Google Maps works ok.
Maybe someone knows something more?
 
Upvote 0

Alex_197

Well-Known Member
Licensed User
Longtime User
Guys, as a work around (at least it works for me) try this code

Google Map:
private Sub ShowMap
    
    Try
        
        Dim Intent1 As Intent
        Dim urlMap As String="https://www.google.com/maps/search/"
        Dim su As StringUtils
        Dim Address As String
            
        Address=lblAddress.Text
        Address=Address.Replace(CRLF," ")
        Address=su.EncodeUrl(Address,"UTF-8")
        urlMap=urlMap & Address
                
        Intent1.Initialize(Intent1.ACTION_VIEW,urlMap)
        Intent1.SetComponent("googlemaps")
        StartActivity(Intent1)
    Catch
        Log("ShowMap " & LastException)
        modFun.ShowError("ShowMap " & LastException)
    End Try
    
End Sub
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
Clearing the cache of my app did NOT work.
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
This might work:

 
Upvote 0
Top