我从这里下载了以下源: https ://github.com/djcoin/MBTilesDroidSpitterExampleSimple
我在 /sdcard/map.mbtiles 中有 map.mbtiles
我收到以下错误:
06-22 23:51:12.252: E/AndroidRuntime(29240): FATAL EXCEPTION: main
06-22 23:51:12.252: E/AndroidRuntime(29240): java.lang.NoClassDefFoundError: org.osmdroid.tileprovider.tilesource.XYTileSource
06-22 23:51:12.252: E/AndroidRuntime(29240): at org.tilespitter.mapboxtiles.MBTilesOsmdroidExample.<init>(MBTilesOsmdroidExample.java:29)
06-22 23:51:12.252: E/AndroidRuntime(29240): at java.lang.Class.newInstanceImpl(Native Method)
06-22 23:51:12.252: E/AndroidRuntime(29240): at java.lang.Class.newInstance(Class.java:1319)
06-22 23:51:12.252: E/AndroidRuntime(29240): at android.app.Instrumentation.newActivity(Instrumentation.java:1068)
06-22 23:51:12.252: E/AndroidRuntime(29240): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1982)
06-22 23:51:12.252: E/AndroidRuntime(29240): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2092)
06-22 23:51:12.252: E/AndroidRuntime(29240): at android.app.ActivityThread.access$600(ActivityThread.java:133)
06-22 23:51:12.252: E/AndroidRuntime(29240): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1203)
06-22 23:51:12.252: E/AndroidRuntime(29240): at android.os.Handler.dispatchMessage(Handler.java:99)
06-22 23:51:12.252: E/AndroidRuntime(29240): at android.os.Looper.loop(Looper.java:137)
06-22 23:51:12.252: E/AndroidRuntime(29240): at android.app.ActivityThread.main(ActivityThread.java:4808)
06-22 23:51:12.252: E/AndroidRuntime(29240): at java.lang.reflect.Method.invokeNative(Native Method)
06-22 23:51:12.252: E/AndroidRuntime(29240): at java.lang.reflect.Method.invoke(Method.java:511)
06-22 23:51:12.252: E/AndroidRuntime(29240): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)
06-22 23:51:12.252: E/AndroidRuntime(29240): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:561)
06-22 23:51:12.252: E/AndroidRuntime(29240): at dalvik.system.NativeStart.main(Native Method)
我正在寻找一个有效的 Android MBTiles 示例。我正在寻找一个工作的 android Offline MBtiles 示例。org.osmdroid.tileprovider.tilesource.XYTileSource 类在哪里?你能给我提供一个有效的 OSMDroid 离线 MBtiles 示例吗?OSMDroid 有 OSMMapTilePackager、OpenStreetMapViewer、GoogleWrapperSample 等。我想要一个加载了离线 MBtiles 的特定样本。