android - Error inflating class fragment error in google maps API -


getting below error while trying insert map fragment project. can't life of me figure our going on... have racked brain trying simple thing work following instructions in basic tutorial word word , still stuck.

03-24 15:28:38.740: e/androidruntime(3683): fatal exception: main 03-24 15:28:38.740: e/androidruntime(3683): java.lang.runtimeexception: unable start activity componentinfo{com.main.pkg/com.main.pkg.newhomepage}: android.view.inflateexception: binary xml file line #41: error inflating class fragment 03-24 15:28:38.740: e/androidruntime(3683):     @ android.app.activitythread.performlaunchactivity(activitythread.java:2211) 03-24 15:28:38.740: e/androidruntime(3683):     @ android.app.activitythread.handlelaunchactivity(activitythread.java:2261) 03-24 15:28:38.740: e/androidruntime(3683):     @ android.app.activitythread.access$600(activitythread.java:141) 03-24 15:28:38.740: e/androidruntime(3683):     @ android.app.activitythread$h.handlemessage(activitythread.java:1256) 03-24 15:28:38.740: e/androidruntime(3683):     @ android.os.handler.dispatchmessage(handler.java:99) 03-24 15:28:38.740: e/androidruntime(3683):     @ android.os.looper.loop(looper.java:137) 03-24 15:28:38.740: e/androidruntime(3683):     @ android.app.activitythread.main(activitythread.java:5103) 03-24 15:28:38.740: e/androidruntime(3683):     @ java.lang.reflect.method.invokenative(native method) 03-24 15:28:38.740: e/androidruntime(3683):     @ java.lang.reflect.method.invoke(method.java:525) 03-24 15:28:38.740: e/androidruntime(3683):     @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:737) 03-24 15:28:38.740: e/androidruntime(3683):     @ com.android.internal.os.zygoteinit.main(zygoteinit.java:553) 03-24 15:28:38.740: e/androidruntime(3683):     @ dalvik.system.nativestart.main(native method) 03-24 15:28:38.740: e/androidruntime(3683): caused by: android.view.inflateexception: binary xml file line #41: error inflating class fragment 03-24 15:28:38.740: e/androidruntime(3683):     @ android.view.layoutinflater.createviewfromtag(layoutinflater.java:713) 03-24 15:28:38.740: e/androidruntime(3683):     @ android.view.layoutinflater.rinflate(layoutinflater.java:755) 03-24 15:28:38.740: e/androidruntime(3683):     @ android.view.layoutinflater.rinflate(layoutinflater.java:758) 03-24 15:28:38.740: e/androidruntime(3683):     @ android.view.layoutinflater.inflate(layoutinflater.java:492) 03-24 15:28:38.740: e/androidruntime(3683):     @ android.view.layoutinflater.inflate(layoutinflater.java:397) 03-24 15:28:38.740: e/androidruntime(3683):     @ android.view.layoutinflater.inflate(layoutinflater.java:353) 03-24 15:28:38.740: e/androidruntime(3683):     @ com.android.internal.policy.impl.phonewindow.setcontentview(phonewindow.java:267) 03-24 15:28:38.740: e/androidruntime(3683):     @ android.app.activity.setcontentview(activity.java:1895) 03-24 15:28:38.740: e/androidruntime(3683):     @ com.main.pkg.newhomepage.oncreate(newhomepage.java:34) 03-24 15:28:38.740: e/androidruntime(3683):     @ android.app.activity.performcreate(activity.java:5133) 03-24 15:28:38.740: e/androidruntime(3683):     @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1087) 03-24 15:28:38.740: e/androidruntime(3683):     @ android.app.activitythread.performlaunchactivity(activitythread.java:2175) 03-24 15:28:38.740: e/androidruntime(3683):     ... 11 more 03-24 15:28:38.740: e/androidruntime(3683): caused by: android.app.fragment$instantiationexception: unable instantiate fragment com.google.android.gms.maps.mapfragment: make sure class name exists, public, , has empty constructor public 03-24 15:28:38.740: e/androidruntime(3683):     @ android.app.fragment.instantiate(fragment.java:592) 03-24 15:28:38.740: e/androidruntime(3683):     @ android.app.fragment.instantiate(fragment.java:560) 03-24 15:28:38.740: e/androidruntime(3683):     @ android.app.activity.oncreateview(activity.java:4738) 03-24 15:28:38.740: e/androidruntime(3683):     @ android.view.layoutinflater.createviewfromtag(layoutinflater.java:689) 03-24 15:28:38.740: e/androidruntime(3683):     ... 22 more 03-24 15:28:38.740: e/androidruntime(3683): caused by: java.lang.classnotfoundexception: didn't find class "com.google.android.gms.maps.mapfragment" on path: dexpathlist[[zip file "/data/app/com.main.pkg-1.apk"],nativelibrarydirectories=[/data/app-lib/com.main.pkg-1, /system/lib]] 03-24 15:28:38.740: e/androidruntime(3683):     @ dalvik.system.basedexclassloader.findclass(basedexclassloader.java:53) 03-24 15:28:38.740: e/androidruntime(3683):     @ java.lang.classloader.loadclass(classloader.java:501) 03-24 15:28:38.740: e/androidruntime(3683):     @ java.lang.classloader.loadclass(classloader.java:461) 03-24 15:28:38.740: e/androidruntime(3683):     @ android.app.fragment.instantiate(fragment.java:582) 03-24 15:28:38.740: e/androidruntime(3683):     ... 25 more' 

here xml:

<relativelayout    xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:orientation="vertical"     >      <textview     android:id="@+id/number_mail"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_toleftof="@+id/mail_button"     android:layout_marginright="7dp"     android:layout_margintop="9dp"     android:textcolor="#f900"     />      <button     android:background="@drawable/button_image"     android:layout_width="26dp"     android:layout_height="19dp"     android:layout_alignparentright="true"     android:layout_marginright="5dp"     android:layout_margintop="5dp"     android:id="@+id/mail_button"     />             <linearlayout               android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:orientation="vertical"             android:layout_margintop="50dp"             >             <textview             android:id="@+id/firstname"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             />              <fragment              android:id="@+id/map"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:name="com.google.android.gms.maps.mapfragment"             />                 </linearlayout>  </relativelayout> 

i've tried using 'com.google.android.gms.maps.supportmapfragment' instead same error.

what possibly missing here? manifest seems have correct info.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -