clementine-player / Android-Remote

Control Clementine from your Android device
GNU General Public License v3.0
198 stars 80 forks source link

F-Droid version crashes right after start: Multicaster binderDied #29

Closed amuttsch closed 10 years ago

amuttsch commented 10 years ago

From tov...@googlemail.com on November 27, 2013 20:04:57

The new F-Droid version crashes on my phone right after the start with this message:

11-27 18:38:25.825 E/dalvikvm(31257): Could not find class 'javax.jmdns.ServiceInfo', referenced from method de.qspool.clementineremote.backend.mdns.ClementineMDnsDiscovery.getHosts 11-27 18:38:25.875 E/AndroidRuntime(31257): FATAL EXCEPTION: Thread-3349 11-27 18:38:25.875 E/AndroidRuntime(31257): java.lang.NoClassDefFoundError: javax.jmdns.JmDNS 11-27 18:38:25.875 E/AndroidRuntime(31257): at de.qspool.clementineremote.backend.mdns.ClementineMDnsDiscovery.jmDnsListener(ClementineMDnsDiscovery.java:120) 11-27 18:38:25.875 E/AndroidRuntime(31257): at de.qspool.clementineremote.backend.mdns.ClementineMDnsDiscovery.access$100(ClementineMDnsDiscovery.java:40) 11-27 18:38:25.875 E/AndroidRuntime(31257): at de.qspool.clementineremote.backend.mdns.ClementineMDnsDiscovery$1.run(ClementineMDnsDiscovery.java:69) 11-27 18:38:25.875 E/AndroidRuntime(31257): at java.lang.Thread.run(Thread.java:856) 11-27 18:38:27.325 E/WifiService( 397): Multicaster binderDied 11-27 18:39:25.885 E/dalvikvm(31295): Could not find class 'javax.jmdns.ServiceInfo', referenced from method de.qspool.clementineremote.backend.mdns.ClementineMDnsDiscovery.getHosts 11-27 18:39:25.945 E/AndroidRuntime(31295): FATAL EXCEPTION: Thread-3355 11-27 18:39:25.945 E/AndroidRuntime(31295): java.lang.NoClassDefFoundError: javax.jmdns.JmDNS 11-27 18:39:25.945 E/AndroidRuntime(31295): at de.qspool.clementineremote.backend.mdns.ClementineMDnsDiscovery.jmDnsListener(ClementineMDnsDiscovery.java:120) 11-27 18:39:25.945 E/AndroidRuntime(31295): at de.qspool.clementineremote.backend.mdns.ClementineMDnsDiscovery.access$100(ClementineMDnsDiscovery.java:40) 11-27 18:39:25.945 E/AndroidRuntime(31295): at de.qspool.clementineremote.backend.mdns.ClementineMDnsDiscovery$1.run(ClementineMDnsDiscovery.java:69) 11-27 18:39:25.945 E/AndroidRuntime(31295): at java.lang.Thread.run(Thread.java:856) 11-27 18:39:27.456 E/WifiService( 397): Multicaster binderDied

When I built the app locally myself and tested in an emulator, it worked, so I'm not sure what is happening here. Any idea how to fix this?

Original issue: http://code.google.com/p/clementine-remote-android/issues/detail?id=29

amuttsch commented 10 years ago

From asfa...@googlemail.com on November 27, 2013 11:11:46

Hm, it looks like jmdns is not included correctly.

I don't know how they create the apk, the .jar file has to be in the libs/ dir.

amuttsch commented 10 years ago

From tov...@googlemail.com on November 28, 2013 09:05:20

Seems to be some issue with the F-Droid buildserver, when I locally build with he exact same process, the app does not crash. Maybe some different jdk version or something like that?

amuttsch commented 10 years ago

From asfa...@googlemail.com on November 28, 2013 09:25:23

I don't know how the buildserver builds them. The .project file includes the jar, so there shouldn't be a problem. Maybe ask the f-droid guys, maybe they encountered an issue like this before.

amuttsch commented 10 years ago

From asfa...@googlemail.com on December 03, 2013 03:53:23

Any news on this one?

amuttsch commented 10 years ago

From tov...@googlemail.com on December 04, 2013 11:37:30

No real news unfortunately, I build it myself with jdk 6 and 7 release and debug builds and it worked every time. But just not on the buildserver. We now suspect a over-optimizing proguard.

dalb8 commented 10 years ago

I've just enabled a build of 8.2 as part of a large merge request to f-droid; there's a chance it'll crash but maybe best to let it build anyway.

grote commented 10 years ago

@dalb8 I tried your version from the official F-Droid repository and it crashes as well :(

dalb8 commented 10 years ago

@grote the Android gradle team announced in last SDK that some java 1.7 features are now allowed; some ant apps e.g. epoch launcher are already using them and they all crash, so my guess is this is related. F-Droid should definitely upgrade to build tools 19.0.0 (blocked because of crashes with any target < android-16) or try publishing with android-18.

dalb8 commented 10 years ago

@grote That's definitely it! Update the build tools and all will be well.

amuttsch commented 10 years ago

okay, I'll close this issue them.

Thanks for the feedback! :)

amuttsch commented 10 years ago

Note: I changed the build setup for Clementine Remote to gradle builds. The fdroid builder should be updated too.