- Forum posts: 2
Nov 18, 2014, 10:51:13 AM via Website
Nov 18, 2014 10:51:13 AM via Website
- 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.
- 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)
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.