自从我从 Android SDK Manager(我使用的是 Eclipse 4.2.2)将我的 Google Play 服务从 Rev. 6 更新到 Rev. 7 之后,每当我使用地图导航到任何选项卡时,我的应用程序都会崩溃。该应用程序在更新之前运行良好。
这是我发现的一行错误日志:
05-21 13:08:56.603: E/AndroidRuntime(11981): FATAL EXCEPTION: main
05-21 13:08:56.603: E/AndroidRuntime(11981): java.lang.ExceptionInInitializerError
05-21 13:08:56.603: E/AndroidRuntime(11981): at java.lang.Class.newInstanceImpl(Native Method)
05-21 13:08:56.603: E/AndroidRuntime(11981): at java.lang.Class.newInstance(Class.java:1319)
05-21 13:08:56.603: E/AndroidRuntime(11981): at android.app.Fragment.instantiate(Fragment.java:577)
05-21 13:08:56.603: E/AndroidRuntime(11981): at android.app.Fragment.instantiate(Fragment.java:552)
05-21 13:08:56.603: E/AndroidRuntime(11981): at com.projectswiminsg.AmkActivity$TabListener.onTabSelected(AmkActivity.java:67)
05-21 13:08:56.603: E/AndroidRuntime(11981): at com.android.internal.app.ActionBarImpl.selectTab(ActionBarImpl.java:570)
05-21 13:08:56.603: E/AndroidRuntime(11981): at com.android.internal.app.ActionBarImpl$TabImpl.select(ActionBarImpl.java:1067)
05-21 13:08:56.603: E/AndroidRuntime(11981): at com.android.internal.widget.ScrollingTabContainerView$TabClickListener.onClick(ScrollingTabContainerView.java:489)
05-21 13:08:56.603: E/AndroidRuntime(11981): at android.view.View.performClick(View.java:4147)
05-21 13:08:56.603: E/AndroidRuntime(11981): at android.view.View$PerformClick.run(View.java:17161)
05-21 13:08:56.603: E/AndroidRuntime(11981): at android.os.Handler.handleCallback(Handler.java:615)
05-21 13:08:56.603: E/AndroidRuntime(11981): at android.os.Handler.dispatchMessage(Handler.java:92)
05-21 13:08:56.603: E/AndroidRuntime(11981): at android.os.Looper.loop(Looper.java:213)
05-21 13:08:56.603: E/AndroidRuntime(11981): at android.app.ActivityThread.main(ActivityThread.java:4786)
05-21 13:08:56.603: E/AndroidRuntime(11981): at java.lang.reflect.Method.invokeNative(Native Method)
05-21 13:08:56.603: E/AndroidRuntime(11981): at java.lang.reflect.Method.invoke(Method.java:511)
05-21 13:08:56.603: E/AndroidRuntime(11981): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
05-21 13:08:56.603: E/AndroidRuntime(11981): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
05-21 13:08:56.603: E/AndroidRuntime(11981): at dalvik.system.NativeStart.main(Native Method)
05-21 13:08:56.603: E/AndroidRuntime(11981): Caused by: java.lang.NoClassDefFoundError: com.google.android.gms.maps.model.LatLng
05-21 13:08:56.603: E/AndroidRuntime(11981): at com.projectswiminsg.AmkMapFragment.<clinit>(AmkMapFragment.java:23)
05-21 13:08:56.603: E/AndroidRuntime(11981): ... 19 more
任何帮助将不胜感激 =)