我真的需要你的幫助。 OSMDROID地圖不加載,我一直在逐行查看代碼,並沒有得到它............... 這段代碼在手機上工作(完美地顯示地圖) ........ 此代碼在模擬器(犯規顯示地圖) *org.osmdroid.views.MapView未能實例化
我把抓屏 http://i1196.photobucket.com/albums/aa402/funkee_iads/osmdroidnotLoad.png
該文,以圖形化的佈局
以下類別ses無法實例化: - org.osmdroid.views.MapView(Open Class,Show Error Log)有關更多詳細信息,請參見錯誤日誌(窗口>顯示視圖)。提示: 所示的Eclipse
時使用 View.isInEditMode()在您的自定義視圖跳過代碼和錯誤日誌顯示
org.osmdroid.views.MapView未能實例 真的奇怪的。
我用這個庫
-slf4j-機器人-1.5.8.jar/ -osmdroid-機器人-3.0.8.jar/ -osmbonuspack_v2.4.jar/ -mapsforge地圖-writer-0.3.0-JAR-與-dependencies.jar
在這裏,我把代碼::::
<?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:background="#ffd7bd"
android:orientation="vertical" >
<TableRow
android:id="@+id/tableRow1"
android:layout_width="match_parent"
android:layout_height="45dp" >
<ImageView
android:id="@+id/imageView0"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="#ffd7bd"
android:orientation="vertical"
android:layout_marginLeft="-200dp "
android:textStyle="bold"
android:textColor="#000000" android:shadowColor="#8a6603"
android:shadowDx="3" android:shadowDy="2" android:shadowRadius="1.8"
android:src="@drawable/muestra2" />
</TableRow>
<org.osmdroid.views.MapView
android:id="@+id/openmapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
</LinearLayout>
感謝您的幫助