android - FragmentActivity blows up with a simple xml file -


i have simple layout file looks this:

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:orientation="vertical" >      <!-- put map fragment here -->     <fragment           android:id="@+id/map"           android:layout_width="match_parent"           android:layout_height="match_parent"           class="com.google.android.gms.maps.supportmapfragment">      </fragment>  </linearlayout> 

then, have class extends fragmentactivity begins this:

protected void oncreate(bundle savedinstancestate) {         super.oncreate(savedinstancestate);         setcontentview(r.layout.activity_map_view); 

when hits setcontentview, runtime exception. can't figure out why.

added:

well, i'm not including rest of oncreate, because never reaches it. relevant parts of logcat seem be:

05-09 22:31:35.604: e/dalvikvm(922): not find class 'com.google.android.gms.maps.model.markeroptions', referenced method com.molavi.homeworkfive.localmap.setupmap 05-09 22:31:35.604: w/dalvikvm(922): vfy: unable resolve new-instance 470 (lcom/google/android/gms/maps/model/markeroptions;) in lcom/molavi/homeworkfive/localmap; 05-09 22:31:35.635: d/dalvikvm(922): vfy: replacing opcode 0x22 @ 0x0002 05-09 22:31:35.744: e/dalvikvm(922): not find class 'com.google.android.gms.maps.mapview', referenced method com.molavi.homeworkfive.localmap.setupmapifneeded 05-09 22:31:35.744: w/dalvikvm(922): vfy: unable resolve check-cast 466 (lcom/google/android/gms/maps/mapview;) in lcom/molavi/homeworkfive/localmap; 05-09 22:31:35.744: d/dalvikvm(922): vfy: replacing opcode 0x1f @ 0x000b 05-09 22:31:35.754: e/dalvikvm(922): not find class 'com.google.android.gms.maps.supportmapfragment', referenced method com.molavi.homeworkfive.localmap.oncreate 05-09 22:31:35.764: w/dalvikvm(922): vfy: unable resolve check-cast 467 (lcom/google/android/gms/maps/supportmapfragment;) in lcom/molavi/homeworkfive/localmap; 05-09 22:31:35.784: d/dalvikvm(922): vfy: replacing opcode 0x1f @ 0x003f 05-09 22:31:35.814: i/dalvikvm(922): not find method com.google.android.gms.maps.supportmapfragment.ondestroy, referenced method com.molavi.homeworkfive.localmap.ondestroy 05-09 22:31:35.814: w/dalvikvm(922): vfy: unable resolve virtual method 3401: lcom/google/android/gms/maps/supportmapfragment;.ondestroy ()v 05-09 22:31:35.814: d/dalvikvm(922): vfy: replacing opcode 0x6e @ 0x0002 05-09 22:31:35.856: i/dalvikvm(922): not find method com.google.android.gms.maps.supportmapfragment.onlowmemory, referenced method com.molavi.homeworkfive.localmap.onlowmemory 05-09 22:31:35.864: w/dalvikvm(922): vfy: unable resolve virtual method 3402: lcom/google/android/gms/maps/supportmapfragment;.onlowmemory ()v 05-09 22:31:35.864: d/dalvikvm(922): vfy: replacing opcode 0x6e @ 0x0005 05-09 22:31:35.904: i/dalvikvm(922): not find method com.google.android.gms.maps.supportmapfragment.onpause, referenced method com.molavi.homeworkfive.localmap.onpause 05-09 22:31:35.904: w/dalvikvm(922): vfy: unable resolve virtual method 3403: lcom/google/android/gms/maps/supportmapfragment;.onpause ()v 05-09 22:31:35.934: d/dalvikvm(922): vfy: replacing opcode 0x6e @ 0x0002 05-09 22:31:35.944: i/dalvikvm(922): not find method com.google.android.gms.maps.supportmapfragment.onresume, referenced method com.molavi.homeworkfive.localmap.onresume 05-09 22:31:35.964: w/dalvikvm(922): vfy: unable resolve virtual method 3404: lcom/google/android/gms/maps/supportmapfragment;.onresume ()v 05-09 22:31:35.964: d/dalvikvm(922): vfy: replacing opcode 0x6e @ 0x0005 05-09 22:31:35.984: i/dalvikvm(922): not find method com.google.android.gms.maps.supportmapfragment.onsaveinstancestate, referenced method com.molavi.homeworkfive.localmap.onsaveinstancestate 05-09 22:31:35.984: w/dalvikvm(922): vfy: unable resolve virtual method 3405: lcom/google/android/gms/maps/supportmapfragment;.onsaveinstancestate (landroid/os/bundle;)v 05-09 22:31:36.014: d/dalvikvm(922): vfy: replacing opcode 0x6e @ 0x0005 05-09 22:31:36.024: d/dalvikvm(922): dexopt: unable opt direct call 0x0d4f @ 0x04 in lcom/molavi/homeworkfive/localmap;.setupmap 05-09 22:31:36.044: d/dalvikvm(922): dexopt: unable opt direct call 0x0d4e @ 0x15 in lcom/molavi/homeworkfive/localmap;.setupmap 05-09 22:31:37.464: e/throttleservice(287): problem during onpollalarm: java.lang.illegalstateexception: problem parsing stats: java.io.filenotfoundexception: /proc/net/xt_qtaguid/iface_stat_all: open failed: enoent (no such file or directory)

but don't because seems saying can't find methods on mapfragment, mapfragment has methods.


Comments

Popular posts from this blog

Java sticky instances of class com.mysql.jdbc.Field aggregating -