'Flipper doesn't show my network plugin and shows connection problem

My colleague did the same and his flipper works fine, but my flipper doesnt show network plugin and requests. Even if start other apps in same device it works great. I did debugging and got the error:enter image description here

Does anybody know how i can fix the problem?

object FlipperInitializer {
private val networkFlipperPlugin = NetworkFlipperPlugin()

fun createNetworkPluginInterceptor(): FlipperInterceptor =
        FlipperInterceptorImpl(FlipperOkhttpInterceptor(networkFlipperPlugin))

fun init(context: Context) {
    SoLoader.init(context, false);
    if (FlipperUtils.shouldEnableFlipper(context)) {
        val client = AndroidFlipperClient.getInstance(context)

        client.addPlugin(InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()))
        client.addPlugin(networkFlipperPlugin)
        client.addPlugin(CrashReporterPlugin.getInstance())
        client.start()
    }
}

}

internal class FlipperInterceptorImpl(private val interceptor: FlipperOkhttpInterceptor) : FlipperInterceptor {
override fun intercept(chain: Interceptor.Chain): Response {
    return interceptor.intercept(chain)
}

}

App class:

override fun onCreate() {
super.onCreate()

if (BuildConfig.DEBUG) {
  FlipperInitializer.init(this)
}


Solution 1:[1]

i solved problem by reinstalling flipper and updating its libraries in gradle.

Solution 2:[2]

just u need to add this import in same file : import com.facebook.flipper.android.utils.FlipperUtils;

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Alex Chanov
Solution 2 mohamed benmoussa