locked
SignalR Android Java8 RRS feed

  • Question

  • User-385482571 posted

    Hello,

    Does SignalR Android SDK works with Java8?

    If yes, how to configure it?

    Thanks.

    Sunday, January 17, 2016 7:31 PM

Answers

  • User541108374 posted

    Hi,

    I suggest you log an issue over at Github.

    Grz, Kris.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 19, 2016 6:54 AM

All replies

  • User541108374 posted

    Hi,

    in case of need you can build the .jar file yourself for the version you want to target. The code's available here: https://github.com/SignalR/java-client.

    Grz, Kris.

    Monday, January 18, 2016 4:39 AM
  • User-385482571 posted

    Hi,

    Yes, I did it this way (Clone the github repository, build with Java8, copy the jar and aar file, paste to my project)

    But it doesn't build successful in my project. The SignalR project alone with its tests also doesn't build successful.

    But when I build the SignalR with Java7, the tests works fine...

    So is there support for Java8 (and only doesn't work for me) or there isn't and it doesn't work for anybody?

    :app:preDexDebug
    UNEXPECTED TOP-LEVEL EXCEPTION:
    java.lang.RuntimeException: Exception parsing classes
        at com.android.dx.command.dexer.Main.processClass(Main.java:752)
        at com.android.dx.command.dexer.Main.processFileBytes(Main.java:718)
        at com.android.dx.command.dexer.Main.access$1200(Main.java:85)
        at com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1645)
        at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
        at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
        at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
        at com.android.dx.command.dexer.Main.processOne(Main.java:672)
        at com.android.dx.command.dexer.Main.processAllFiles(Main.java:574)
        at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)
        at com.android.dx.command.dexer.Main.run(Main.java:277)
        at com.android.dx.command.dexer.Main.main(Main.java:245)
        at com.android.dx.command.Main.main(Main.java:106)
    Caused by: com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)
        at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:472)
        at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)
        at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)
        at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)
        at com.android.dx.command.dexer.Main.parseClass(Main.java:764)
        at com.android.dx.command.dexer.Main.access$1500(Main.java:85)
        at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1684)
        at com.android.dx.command.dexer.Main.processClass(Main.java:749)
        ... 12 more
    1 error; aborting
    Error:Execution failed for task ':app:preDexDebug'.
    > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_20\bin\java.exe'' finished with non-zero exit value 1
    Information:BUILD FAILED

    Monday, January 18, 2016 4:49 PM
  • User541108374 posted

    Hi,

    I suggest you log an issue over at Github.

    Grz, Kris.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 19, 2016 6:54 AM