i am creating an app using google map api v2 but while launch the activity it will getting crashed.
logcat
05-04 11:57:09.128: D/dalvikvm(415): DexOpt: couldn't find field Landroid/content/res/Configuration;.smallestScreenWidthDp
05-04 11:57:09.128: W/dalvikvm(415): VFY: unable to resolve instance field 25
05-04 11:57:09.128: D/dalvikvm(415): VFY: replacing opcode 0x52 at 0x0012
05-04 11:57:09.138: D/dalvikvm(415): VFY: dead code 0x0014-0018 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.b (Landroid/content/res/Resources;)Z
05-04 11:57:09.258: W/GooglePlayServicesUtil(415): Google Play services is missing.
05-04 11:57:09.278: W/GooglePlayServicesUtil(415): Google Play services is missing.
05-04 11:57:09.308: W/GooglePlayServicesUtil(415): Google Play services is missing.
05-04 11:57:09.318: W/GooglePlayServicesUtil(415): Google Play services is missing.
05-04 11:57:09.338: W/GooglePlayServicesUtil(415): Google Play services is missing.
05-04 11:57:09.378: W/GooglePlayServicesUtil(415): Google Play services is missing.
05-04 11:57:09.418: D/AndroidRuntime(415): Shutting down VM
05-04 11:57:09.418: W/dalvikvm(415): threadid=1: thread exiting with uncaught exception (group=0x40015560)
05-04 11:57:09.448: E/AndroidRuntime(415): FATAL EXCEPTION: main
05-04 11:57:09.448: E/AndroidRuntime(415): java.lang.RuntimeException: Unable to start activity ComponentInfo{androidapp.aroundme/androidapp.aroundme.MainActivity}: java.lang.NullPointerException
05-04 11:57:09.448: E/AndroidRuntime(415): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
05-04 11:57:09.448: E/AndroidRuntime(415): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
05-04 11:57:09.448: E/AndroidRuntime(415): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
05-04 11:57:09.448: E/AndroidRuntime(415): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
05-04 11:57:09.448: E/AndroidRuntime(415): at android.os.Handler.dispatchMessage(Handler.java:99)
05-04 11:57:09.448: E/AndroidRuntime(415): at android.os.Looper.loop(Looper.java:130)
05-04 11:57:09.448: E/AndroidRuntime(415): at android.app.ActivityThread.main(ActivityThread.java:3683)
05-04 11:57:09.448: E/AndroidRuntime(415): at java.lang.reflect.Method.invokeNative(Native Method)
05-04 11:57:09.448: E/AndroidRuntime(415): at java.lang.reflect.Method.invoke(Method.java:507)
05-04 11:57:09.448: E/AndroidRuntime(415): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
05-04 11:57:09.448: E/AndroidRuntime(415): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
05-04 11:57:09.448: E/AndroidRuntime(415): at dalvik.system.NativeStart.main(Native Method)
05-04 11:57:09.448: E/AndroidRuntime(415): Caused by: java.lang.NullPointerException
05-04 11:57:09.448: E/AndroidRuntime(415): at androidapp.aroundme.MainActivity.onCreate(MainActivity.java:37)
05-04 11:57:09.448: E/AndroidRuntime(415): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
05-04 11:57:09.448: E/AndroidRuntime(415): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
05-04 11:57:09.448: E/AndroidRuntime(415): ... 11 more
05-04 11:57:11.438: I/Process(415): Sending signal. PID: 415 SIG: 9
please solve my problem.
No comments:
Post a Comment