{"action":"closed","issue":{"url":"https://api.github.com/repos/mapsforge/mapsforge/issues/593","labels_url":"https://api.github.com/repos/mapsforge/mapsforge/issues/593/labels{/name}","comments_url":"https://api.github.com/repos/mapsforge/mapsforge/issues/593/comments","events_url":"https://api.github.com/repos/mapsforge/mapsforge/issues/593/events","html_url":"https://github.com/mapsforge/mapsforge/issues/593","id":64921812,"number":593,"title":"Build failed - bad class file magic (cafebabe) or version (0034.0000)","user":{"login":"hurzl","id":628746,"avatar_url":"https://avatars.githubusercontent.com/u/628746?v=3","gravatar_id":"","url":"https://api.github.com/users/hurzl","html_url":"https://github.com/hurzl","followers_url":"https://api.github.com/users/hurzl/followers","following_url":"https://api.github.com/users/hurzl/following{/other_user}","gists_url":"https://api.github.com/users/hurzl/gists{/gist_id}","starred_url":"https://api.github.com/users/hurzl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hurzl/subscriptions","organizations_url":"https://api.github.com/users/hurzl/orgs","repos_url":"https://api.github.com/users/hurzl/repos","events_url":"https://api.github.com/users/hurzl/events{/privacy}","received_events_url":"https://api.github.com/users/hurzl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-03-28T09:19:59Z","updated_at":"2015-03-29T12:50:10Z","closed_at":"2015-03-29T12:50:10Z","body":"```\r\n* What went wrong:\r\nExecution failed for task ':Applications:Android:Samples:preDexDebug'.\r\n> com.android.ide.common.internal.LoggedErrorException: Failed to run command:\r\n        /.../android/sdk/build-tools/22/dx --dex --output /.../mapsforge/Applications/Android/Samples/build/intermediates/pre-dexed/debug/mapsforge-map-0.5.1-c28fbb330a20f2bd2caceff3ecff8ca602a1543f.jar /.../mapsforge/mapsforge-map/build/libs/mapsforge-map-0.5.1.jar\r\n  Error Code:\r\n        1\r\n  Output:\r\n  \r\n        UNEXPECTED TOP-LEVEL EXCEPTION:\r\n        com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)\r\n                at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:472)\r\n                at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)\r\n                at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)\r\n                at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)\r\n                at com.android.dx.command.dexer.Main.processClass(Main.java:704)\r\n                at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673)\r\n                at com.android.dx.command.dexer.Main.access$300(Main.java:83)\r\n                at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602)\r\n                at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)\r\n                at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)\r\n                at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)\r\n                at com.android.dx.command.dexer.Main.processOne(Main.java:632)\r\n                at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510)\r\n                at com.android.dx.command.dexer.Main.runMonoDex(Main.java:280)\r\n                at com.android.dx.command.dexer.Main.run(Main.java:246)\r\n                at com.android.dx.command.dexer.Main.main(Main.java:215)\r\n                at com.android.dx.command.Main.main(Main.java:106)\r\n        ...while parsing org/mapsforge/map/view/MapView.class\r\n  \r\n        1 error; aborting\r\n```\r\nSomewhere I read it had to do with using java 1.8, I don't have 1.7, so I changed in build.gradle to \r\n```\r\n    compileOptions {\r\n      sourceCompatibility JavaVersion.VERSION_1_8\r\n      targetCompatibility JavaVersion.VERSION_1_8\r\n    }\r\n```\r\nbut that didn't change anything. Ideas?"}}