0
在無根Android 4.0.1星系Nexus上使用Netty 3.5.6。嘗試在設備上運行Netty服務器。我有我的清單。無法在Android 4.0設備上啓動Netty服務器
Server綁定代碼:
rtspSA= new InetSocketAddress(InetAddress.getLocalHost(),544);
Channel rtspChannel = bootstrap.bind(rtspSA);
allChannels.add(rtspChannel);
我得到兩個錯誤:
E/dalvikvm(8884): Could not find class 'java.util.concurrent.LinkedTransferQueue', referenced from method org.jboss.netty.util.intenal.QueueFactory.createQueue
和
E/NettyServer(8884): org.jboss.netty.channel.ChannelException: Failed to bind to: localhost/127.0.0.1:544
E/NettyServer(8884): Caused by: java.net.BindException: bind failed: EACCES (Permission denied)
通過#1閱讀它聽起來像第一個是固定的:Netty 3.4.1.Final does not work on Android
第二個問題很可能是權限問題,但我無法推斷出我缺少的權限。
有什麼建議嗎?
我在我的清單文件中使用Internet權限 – jet
問題的部分答案。端口544已被另一個進程綁定。仍然在尋找類的幫助找不到問題 – jet
「在unrooted Android上使用Netty 3.5.6 ...」 - 我猜你的意思是Netty 3.4.6。最新的Netty 3.5仍然是Beta1。 –