netty:Failed to initialize a channel. Closing

netty 加到jar包 混淆后 报错

Failed to initialize a channel. Closing: [id: 0xf7195050]
                                                                        java.lang.AbstractMethodError: abstract method "void io.netty.channel.ChannelInitializer.initChannel(io.netty.channel.Channel)"
                                                                            at io.netty.channel.ChannelInitializer.initChannel(ChannelInitializer.java:113)
                                                                            at io.netty.channel.ChannelInitializer.handlerAdded(ChannelInitializer.java:105)
                                                                            at io.netty.channel.DefaultChannelPipeline.callHandlerAdded0(DefaultChannelPipeline.java:597)
                                                                            at io.netty.channel.DefaultChannelPipeline.access$000(DefaultChannelPipeline.java:44)
                                                                            at io.netty.channel.DefaultChannelPipeline$PendingHandlerAddedTask.execute(DefaultChannelPipeline.java:1387)
                                                                            at io.netty.channel.DefaultChannelPipeline.callHandlerAddedForAllHandlers(DefaultChannelPipeline.java:1122)
                                                                            at io.netty.channel.DefaultChannelPipeline.invokeHandlerAddedIfNeeded(DefaultChannelPipeline.java:647)
                                                                            at io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:506)
                                                                            at io.netty.channel.AbstractChannel$AbstractUnsafe.access$200(AbstractChannel.java:419)
                                                                            at io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:478)
                                                                            at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
                                                                            at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:418)
                                                                            at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:454)
                                                                            at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:873)
                                                                            at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
                                                                            at java.lang.Thread.run(Thread.java:776)

需要在报错的handler前面加上@sharable

你可能感兴趣的:(android)