谷歌地图v1 NPE崩溃

时间:2016-02-22 12:10:37

标签: android google-maps

由于Google地图代码崩溃,我的应用程序崩溃了。它仍然是Google Play服务(4.x)的第1版

我完全无法重现这次崩溃。 (Nexus 5x,Galaxy S4)我在互联网上找不到类似的东西(既不是同一个问题,也不是同一个方法调用/等等。)

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{[xxx].app2/[xxx].app.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
       at android.app.ActivityThread.-wrap11(ActivityThread.java)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:148)
       at android.app.ActivityThread.main(ActivityThread.java:5417)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference
       at com.google.maps.api.android.lib6.e.es.a(Unknown Source)
       at com.google.maps.api.android.lib6.e.es.<init>(Unknown Source)
       at com.google.maps.api.android.lib6.e.ev.a(Unknown Source)
       at com.google.maps.api.android.lib6.e.af.a(Unknown Source)
       at com.google.android.gms.maps.internal.w.onTransact(SourceFile:66)
       at android.os.Binder.transact(Binder.java:387)
       at com.google.android.gms.maps.internal.IMapViewDelegate$a$a.onCreate(Unknown Source)
       at com.google.android.gms.maps.MapView$a.onCreate(Unknown Source)
       at com.google.android.gms.dynamic.a$3.b(Unknown Source)
       at com.google.android.gms.dynamic.a$1.a(Unknown Source)
       at com.google.android.gms.maps.MapView$b.ip(Unknown Source)
       at com.google.android.gms.maps.MapView$b.a(Unknown Source)
       at com.google.android.gms.dynamic.a.a(Unknown Source)
       at com.google.android.gms.dynamic.a.onCreate(Unknown Source)
       at com.google.android.gms.maps.MapView.onCreate(Unknown Source)
       at [xxx].app.views.MapWithSearchView.onCreate(MapWithSearchView.java:124)
       at [xxx].app.MainActivity.onCreate(MainActivity.java:279)
       at android.app.Activity.performCreate(Activity.java:6251)
       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
       at android.app.ActivityThread.-wrap11(ActivityThread.java)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:148)
       at android.app.ActivityThread.main(ActivityThread.java:5417)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

[xxx]是我的应用程序包名称。

0 个答案:

没有答案