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 | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Android - IllegalStateException newLatLngBounds

    GitHub | 1 year 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

  5. 0

    Could not find a method saveData(View)

    Google Groups | 6 months ago | Giuseppe Guarino
    java.lang.IllegalStateException: Could not find a method saveData(View) in the activity class com.example.giuse.secondly.NewSheet for onClick handler on view class android.widget.Button with id 'button_save' at android.view.View$1.onClick(View.java:4007) at android.view.View.performClick(View.java:4780) at android.view.View$PerformClick.run(View.java:19866) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)

    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