开发者

How to find Bonjour in local wifi in Android

I have a problem that I want to get an Ip of remote computer via Bonjour which is preinstalled . But I unable to connect with that, I don't know why because I have download an example code from Git Hub and also download the jmdns3.4.1 Jar. But the sa开发者_StackOverflow社区mple contains the error as Conversion to Dalvik format failed with error 1. Then I have written this question to get the exact answer.

Thanks is advance.


First off you need to use a special version of jmdns compiled for Android found here. The reason is Android cannot actually execute Java class files, but rather executes Java dex files since it uses Dalvik.

It may also be a jar-conflict if you are 100% sure you're using the right jar-file. See this question for more information.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜