{"action":"created","issue":{"url":"https://api.github.com/repos/osmdroid/osmdroid/issues/375","repository_url":"https://api.github.com/repos/osmdroid/osmdroid","labels_url":"https://api.github.com/repos/osmdroid/osmdroid/issues/375/labels{/name}","comments_url":"https://api.github.com/repos/osmdroid/osmdroid/issues/375/comments","events_url":"https://api.github.com/repos/osmdroid/osmdroid/issues/375/events","html_url":"https://github.com/osmdroid/osmdroid/issues/375","id":171874970,"number":375,"title":"NoClassDefFoundError: Failed resolution of: Lorg/osmdroid/bonuspack/R$layout; -- FolderOverlay -- >buildOverlay - ","user":{"login":"juamor86","id":18570341,"avatar_url":"https://avatars.githubusercontent.com/u/18570341?v=3","gravatar_id":"","url":"https://api.github.com/users/juamor86","html_url":"https://github.com/juamor86","followers_url":"https://api.github.com/users/juamor86/followers","following_url":"https://api.github.com/users/juamor86/following{/other_user}","gists_url":"https://api.github.com/users/juamor86/gists{/gist_id}","starred_url":"https://api.github.com/users/juamor86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juamor86/subscriptions","organizations_url":"https://api.github.com/users/juamor86/orgs","repos_url":"https://api.github.com/users/juamor86/repos","events_url":"https://api.github.com/users/juamor86/events{/privacy}","received_events_url":"https://api.github.com/users/juamor86/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-18T11:02:18Z","updated_at":"2016-08-19T08:04:31Z","closed_at":null,"body":"I use osmbonuspack v5.5 , osmdroid-v5.01 and slf4j-android-1.5.8.jar , gson22.4 and commons-lang3-3.3.2\r\nI am working in Eclipse\r\n\r\nthis code Java :\r\n\r\n@Override\r\nprotected void onCreate(Bundle savedInstanceState) {\r\nsuper.onCreate(savedInstanceState);\r\nsetContentView(R.layout.activity_main);\r\n\r\n    myOpenMapView = (MapView)findViewById(R.id.openmapview);\r\n    myOpenMapView.setTileSource(TileSourceFactory.MAPNIK);\r\n    myOpenMapView.setBuiltInZoomControls(true); //quita los botones de zoom de la pantalla\r\n    myOpenMapView.setMultiTouchControls(true);\r\n    myOpenMapView.setEnabled(true);\r\n    myOpenMapView.setClickable(true);\r\n\r\n    String url = \"http://mapsengine.google.com/map/kml?forcekml=1&mid=z6IJfj90QEd4.kUUY9FoHFRdE\";\r\n    mKmlDocument = new KmlDocument();\r\n\r\n    mapControl = (MapController) myOpenMapView.getController();\r\n    mapControl.setZoom(50);\r\n    GeoPoint myLocation = new GeoPoint(40.46560773896929, -3.6887799453731081);\r\n    mapControl.setCenter(myLocation);\r\n    putKMLAsync(url);\r\n\r\n\r\n}\r\n\r\nprivate class putKML extends AsyncTask<String, Void, Boolean> {\r\n    @Override\r\n    protected Boolean doInBackground(String... url) {\r\n        boolean sucess = false;\r\n        sucess = mKmlDocument.parseKMLUrl(url[0]);\r\n        return sucess;\r\n    }\r\n\r\n    @Override\r\n    protected void onPostExecute(Boolean ok) {\r\n        updateKML();\r\n    }\r\n}\r\n\r\nprivate void updateKML(){\r\n    if (mKmlOverlay != null){\r\n        mKmlOverlay.closeAllInfoWindows();\r\n        myOpenMapView.getOverlays().remove(mKmlOverlay);\r\n    }\r\n    mKmlOverlay = (FolderOverlay) mKmlDocument.mKmlRoot.buildOverlay(myOpenMapView, null, null, mKmlDocument);\r\n    myOpenMapView.getOverlays().add(mKmlOverlay);\r\n    myOpenMapView.invalidate();\r\n}\r\n\r\n\r\nprivate void putKMLAsync(String url) {\r\n    new putKML().execute(url);\r\n}\r\nTrace Error :\r\n\r\n08-18 12:32:34.832: E/AndroidRuntime(2510): FATAL EXCEPTION: main\r\nProcess: com.example.demo.osmdroid, PID: 2510\r\njava.lang.NoClassDefFoundError: Failed resolution of: Lorg/osmdroid/bonuspack/R$layout;\r\nat org.osmdroid.bonuspack.overlays.Marker.(Marker.java:101)\r\nat org.osmdroid.bonuspack.overlays.Marker.(Marker.java:67)\r\nat org.osmdroid.bonuspack.kml.KmlPoint.buildOverlay(KmlPoint.java:86)\r\nat org.osmdroid.bonuspack.kml.KmlPlacemark.buildOverlay(KmlPlacemark.java:124)\r\nat org.osmdroid.bonuspack.kml.KmlFolder.buildOverlay(KmlFolder.java:160)\r\nat org.osmdroid.bonuspack.kml.KmlFolder.buildOverlay(KmlFolder.java:160)\r\nat com.example.demo.osmdroid.MainActivity.updateKML(MainActivity.java:107)\r\nat com.example.demo.osmdroid.MainActivity.access$3(MainActivity.java:102)\r\nat com.example.demo.osmdroid.MainActivity$putKML.onPostExecute(MainActivity.java:98)\r\nat com.example.demo.osmdroid.MainActivity$putKML.onPostExecute(MainActivity.java:1)\r\nat android.os.AsyncTask.finish(AsyncTask.java:651)\r\nat android.os.AsyncTask.-wrap1(AsyncTask.java)\r\nat android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668)\r\nat android.os.Handler.dispatchMessage(Handler.java:102)\r\nat android.os.Looper.loop(Looper.java:148)\r\nat android.app.ActivityThread.main(ActivityThread.java:5417)\r\nat java.lang.reflect.Method.invoke(Native Method)\r\nat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\nat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n08-18 12:32:34.832: E/AndroidRuntime(2510): Caused by: java.lang.ClassNotFoundException: Didn't find class \"org.osmdroid.bonuspack.R$layout\" on path: DexPathList[[zip file \"/data/app/com.example.demo.osmdroid-2/base.apk\"],nativeLibraryDirectories=[/data/app/com.example.demo.osmdroid-2/lib/arm, /vendor/lib, /system/lib]]\r\nat dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)\r\nat java.lang.ClassLoader.loadClass(ClassLoader.java:511)\r\nat java.lang.ClassLoader.loadClass(ClassLoader.java:469)\r\n... 19 more\r\nSuppressed: java.lang.ClassNotFoundException: org.osmdroid.bonuspack.R$layout\r\nat java.lang.Class.classForName(Native Method)\r\nat java.lang.BootClassLoader.findClass(ClassLoader.java:781)\r\nat java.lang.BootClassLoader.loadClass(ClassLoader.java:841)\r\nat java.lang.ClassLoader.loadClass(ClassLoader.java:504)\r\n... 20 more\r\nCaused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available\r\n"},"comment":{"url":"https://api.github.com/repos/osmdroid/osmdroid/issues/comments/240954653","html_url":"https://github.com/osmdroid/osmdroid/issues/375#issuecomment-240954653","issue_url":"https://api.github.com/repos/osmdroid/osmdroid/issues/375","id":240954653,"user":{"login":"k3b","id":1374583,"avatar_url":"https://avatars.githubusercontent.com/u/1374583?v=3","gravatar_id":"","url":"https://api.github.com/users/k3b","html_url":"https://github.com/k3b","followers_url":"https://api.github.com/users/k3b/followers","following_url":"https://api.github.com/users/k3b/following{/other_user}","gists_url":"https://api.github.com/users/k3b/gists{/gist_id}","starred_url":"https://api.github.com/users/k3b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k3b/subscriptions","organizations_url":"https://api.github.com/users/k3b/orgs","repos_url":"https://api.github.com/users/k3b/repos","events_url":"https://api.github.com/users/k3b/events{/privacy}","received_events_url":"https://api.github.com/users/k3b/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T08:04:31Z","updated_at":"2016-08-19T08:04:31Z","body":"Todo Update: https://github.com/osmdroid/osmdroid/wiki/Upgrade-Guide#partial-merger-of-osm-bonus-pack to show which versions belong together.\r\n\r\nI assume that osmbonuspack v5.5 requires osmdroid-v5.2 or newer"}}
{"actor":{"display_login":"k3b"}}