{"action":"created","issue":{"url":"https://api.github.com/repos/MKergall/osmbonuspack/issues/242","repository_url":"https://api.github.com/repos/MKergall/osmbonuspack","labels_url":"https://api.github.com/repos/MKergall/osmbonuspack/issues/242/labels{/name}","comments_url":"https://api.github.com/repos/MKergall/osmbonuspack/issues/242/comments","events_url":"https://api.github.com/repos/MKergall/osmbonuspack/issues/242/events","html_url":"https://github.com/MKergall/osmbonuspack/issues/242","id":171871748,"number":242,"title":"FolderOverlay -- >buildOverlay - NoClassDefFoundError: Failed resolution of: Lorg/osmdroid/bonuspack/R$layout;","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":3,"created_at":"2016-08-18T10:43:01Z","updated_at":"2016-08-19T08:07:57Z","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\n\r\nthis code Java : \r\n\r\n@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.activity_main);\r\n\t\t\r\n\t\tmyOpenMapView = (MapView)findViewById(R.id.openmapview);\r\n\t\tmyOpenMapView.setTileSource(TileSourceFactory.MAPNIK);\r\n        myOpenMapView.setBuiltInZoomControls(true); //quita los botones de zoom de la pantalla\r\n    \tmyOpenMapView.setMultiTouchControls(true);\r\n    \tmyOpenMapView.setEnabled(true);\r\n    \tmyOpenMapView.setClickable(true);\r\n    \t\r\n    \tString url = \"http://mapsengine.google.com/map/kml?forcekml=1&mid=z6IJfj90QEd4.kUUY9FoHFRdE\";\r\n    \tmKmlDocument = new KmlDocument();\r\n        \r\n        mapControl = (MapController) myOpenMapView.getController();\r\n        mapControl.setZoom(50);\r\n\t    GeoPoint myLocation = new GeoPoint(40.46560773896929, -3.6887799453731081);\r\n\t    mapControl.setCenter(myLocation);\r\n\t    putKMLAsync(url);\r\n\t    \r\n\t    \r\n\t}\r\n\t\r\n\tprivate 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\t\r\n\tprivate 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\n    private void putKMLAsync(String url) {\r\n        new putKML().execute(url);\r\n    }\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.<init>(Marker.java:101)\r\nat org.osmdroid.bonuspack.overlays.Marker.<init>(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\n\tat java.lang.Class.classForName(Native Method)\r\n\tat java.lang.BootClassLoader.findClass(ClassLoader.java:781)\r\n\tat java.lang.BootClassLoader.loadClass(ClassLoader.java:841)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:504)\r\n\t... 20 more\r\nCaused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available"},"comment":{"url":"https://api.github.com/repos/MKergall/osmbonuspack/issues/comments/240955309","html_url":"https://github.com/MKergall/osmbonuspack/issues/242#issuecomment-240955309","issue_url":"https://api.github.com/repos/MKergall/osmbonuspack/issues/242","id":240955309,"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:07:57Z","updated_at":"2016-08-19T08:07:57Z","body":"See also: https://github.com/osmdroid/osmdroid/issues/375"}}
{"actor":{"display_login":"k3b"}}