Android Question Sudden Issues with Google Maps

Similar threads

B4A Tutorial Google Maps
B4A Question Google maps and security exemptions on android 7
B4A Tutorial Integrating Firebase Services
B4A Question Google Map
B4A Question Out of memory

GeoffT660

Active Member
Licensed 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

Well-Known Member
Licensed 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.
 

michw

Member
Licensed 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?
 

Alex_197

Active Member
Licensed 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
 

JohnC

Well-Known Member
Licensed User
Clearing the cache of my app did NOT work.
 

JohnC

Well-Known Member
Licensed User
Top