我在新的WebSockets和我为了做出更大的项目一直在玩高速公路的WebSocket。它的工作原理在Python和js版本很棒,但我有与Android API的麻烦。
I'm new in websockets and I've been playing with Autobahn websocket in order to make a greater project. It works great in python and js versions, but I have trouble with Android API.
我按照 www.tavendo.de/autobahn/install_android_package教程html的和测试SimpleRpc,BroadcastClient,EchoClient具有相同的结果。
I'm following the tutorials in www.tavendo.de/autobahn/install_android_package.html and tested SimpleRpc, BroadcastClient, EchoClient with same results.
在所有的人,当我尝试过Android的虚拟仿真器自动关闭连接到正在运行的服务器蟒蛇,连接,如果我reclick连接按钮的应用程序崩溃。如果我编译应用程序,并在我的移动设备安装(Android版2.2.3)崩溃,当我尝试连接。
In all of them when I try to connect to the running python server through android virtual emulator, the connection close automatically, and if I reclick the connect button the application crashes. If I compile the application and install it in my mobile device (Android 2.2.3) it crashes when I try to connect.
我在做什么错?我的误差可能是Android的链接库(Jackson和高速公路,介绍最新),但我下面一步的教程一步。
What I'm doing wrong? My error may be is on linking android libraries (jackson and autobahn-lastest), but I'm following the tutorial step by step.
注1:最小Android SDK中编译例子是SDK 8。注2:当连接高速公路,latest.jar引发重复manifest.xml的错误。我从jar文件删除清单解决这个问题。
NOTE1: The minimum android sdk to compile examples is SDK 8. NOTE2: When linking autobahn-latest.jar raises a duplicate manifest.xml error. I solve it by erasing manifest from jar file.
推荐答案请使用/修建从GitHub的回购来源高速公路库..这个JAR已经过时..将无法正常工作。我也许应该是文件/删除它。
Please use/build the Autobahn library from the GitHub repo sources .. the JAR is outdated .. won't work. I should probably document that / remove it.
免责声明:我是高速公路的作者和工作Tavendo
Disclaimer: I am author of Autobahn and work for Tavendo.
更多推荐
高速公路的WebSockets的Android演示崩溃
发布评论