java.lang.IllegalStateException: Error using newLatLngBounds(LatLngBounds, int): Map size can't be 0. Most likely, layout has not yet occured for the map view. Either wait until layout has occurred or use newLatLngBounds(LatLngBounds, int, int, int) which allows you to specify the map's dimensions.

GitHub | CliffCawley | 12 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Android - IllegalStateException newLatLngBounds

    GitHub | 12 months ago | CliffCawley
    java.lang.IllegalStateException: Error using newLatLngBounds(LatLngBounds, int): Map size can't be 0. Most likely, layout has not yet occured for the map view. Either wait until layout has occurred or use newLatLngBounds(LatLngBounds, int, int, int) which allows you to specify the map's dimensions.
  2. 0

    Map activity not shown the map

    Stack Overflow | 1 year ago | Kasun Sampath
    java.lang.IllegalStateException: Error using newLatLngBounds(LatLngBounds, int): Map size can't be 0. Most likely, layout has not yet occured for the map view. Either wait until layout has occurred or use newLatLngBounds(LatLngBounds, int, int, int) which allows you to specify the map's dimensions.
  3. 0

    I can't getmylocation on doInBackground Android

    Stack Overflow | 1 year ago | A. Ast
    java.lang.RuntimeException: An error occured while executing doInBackground()
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Error using newLatLngBounds(LatLngBounds, int): Map size can't be 0. Most likely, layout has not yet occured for the map view. Either wait until layout has occurred or use newLatLngBounds(LatLngBounds, int, int, int) which allows you to specify the map's dimensions.

      at com.google.a.a.ae.b()
    2. com.google.a
      ae.b
      1. com.google.a.a.ae.b(Unknown Source)
      1 frame
    3. com.google.maps
      ev.b
      1. com.google.maps.api.android.lib6.gmm6.c.a.a(Unknown Source)
      2. com.google.maps.api.android.lib6.e.dy.a(Unknown Source)
      3. com.google.maps.api.android.lib6.gmm6.c.a.a(Unknown Source)
      4. com.google.maps.api.android.lib6.e.ev.b(Unknown Source)
      4 frames
    4. com.google.android
      j.onTransact
      1. com.google.android.gms.maps.internal.j.onTransact(SourceFile:92)
      1 frame
    5. Android Platform
      Binder.transact
      1. android.os.Binder.transact(Binder.java:395)
      1 frame
    6. com.google.android
      GoogleMap.animateCamera
      1. com.google.android.gms.maps.internal.IGoogleMapDelegate$zza$zza.animateCamera(Unknown Source)
      2. com.google.android.gms.maps.GoogleMap.animateCamera(Unknown Source)
      2 frames
    7. mono.java.lang
      RunnableImplementor.run
      1. mono.java.lang.RunnableImplementor.n_run(Native Method)
      2. mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:29)
      2 frames
    8. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:145)
      4. android.app.ActivityThread.main(ActivityThread.java:6862)
      4 frames
    9. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    10. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
      2 frames