Google maps not working once I did upgrade from google Maps v1 to google Maps v2

1. When I am using Maps V2 as a standalone application, its working fine. But When I am using Maps V2 which is a sub activity of my project getting below mentioned error logs.
2. My application works fine with Map v1 but I want to upgrade my application from Map V1 to V2

Added below mentioned code to call Map Activity : try { Class.forName("com.google.android.gms.maps.Support MapFragment");Intent n=new Intent(Information.this,Gmaps.class); n.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT); startActivity(n); }

Followed below steps to upgrade Google Maps v1 to v2

Added google-play-services.jar into my project.
Added library named_ google-play-services_lib found under the extras folder of my Android SDK setup folder to my Android project.
updated map.xml & Androidmanifiest.xml as per new version dependency

Error logs :

11-10 20:03:42.659: W/dalvikvm(9654): Unable to resolve superclass of Lcom/google/android/gms/maps/SupportMapFragment; (168)
11-10 20:03:42.659: W/dalvikvm(9654): Link of class 'Lcom/google/android/gms/maps/SupportMapFragment;' failed
11-10 20:03:42.659: W/System.err(9654): java.lang.ClassNotFoundException: com.google.android.gms.maps.SupportMapFragment
11-10 20:03:42.659: W/System.err(9654): at java.lang.Class.classForName(Native Method)
11-10 20:03:42.659: W/System.err(9654): at java.lang.Class.forName(Class.java:217)
11-10 20:03:42.659: W/System.err(9654): at java.lang.Class.forName(Class.java:172)

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by miller.willms
1 hour ago
Last post by rhansen
36 minutes ago
Last post by ztrantow
3 hours ago
Last post by joanny29
4 hours ago
Last post by osteuber
4 hours ago
Last post by ryleigh.zieme
2 hours ago
Last post by elmira96
2 hours ago
Last post by lucienne35
4 hours ago
Last post by carley.ziemann
2 hours ago
Last post by twiza
2 hours ago
Last post by davonte.frami
4 hours ago
Last post by milo.lehner
4 hours ago