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 | 9 months ago
  1. 0

    Android - IllegalStateException newLatLngBounds

    GitHub | 9 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 | 11 months 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

  5. 0

    Zoom in to markers google map V2

    Stack Overflow | 3 years ago | user3079559
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.bridge.bridgeinventory/com.bridge.bridgeinventory.MainActivity}: 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.
  6. 0

    Add bounds to map to avoid swiping outside a certain region

    Stack Overflow | 2 years ago | smartmouse
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myapp/com.example.myapp.MapViewer}: 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.

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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