我从这里下载了以下来源: 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的特定样本。