java.lang.NoClassDefFoundError: io/netty/channel/DefaultChannelId

GitHub | steven-gao | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    java.lang.NoClassDefFoundError: io/netty/channel/DefaultChannelId

    GitHub | 2 years ago | steven-gao
    java.lang.NoClassDefFoundError: io/netty/channel/DefaultChannelId

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      io/netty/channel/DefaultChannelId

      at io.netty.channel.AbstractChannel.<init>()
    2. Netty
      Bootstrap.connect
      1. io.netty.channel.AbstractChannel.<init>(AbstractChannel.java:51)
      2. io.netty.channel.VoidChannel.<init>(VoidChannel.java:34)
      3. io.netty.channel.VoidChannel.<clinit>(VoidChannel.java:31)
      4. io.netty.bootstrap.AbstractBootstrap.initAndRegister(AbstractBootstrap.java:265)
      5. io.netty.bootstrap.Bootstrap.doConnect(Bootstrap.java:181)
      6. io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:137)
      6 frames
    3. com.example.netty
      MainActivity.onCreate
      1. com.example.netty.nettycore.NettyClient.start(NettyClient.java:47)
      2. com.example.netty.MainActivity.onCreate(MainActivity.java:16)
      2 frames
    4. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java)
      5. android.app.ActivityThread.access$700(ActivityThread.java)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java)
      7. android.os.Handler.dispatchMessage(Handler.java)
      8. android.os.Looper.loop(Looper.java)
      9. android.app.ActivityThread.main(ActivityThread.java)
      9 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
      2 frames