facebook / flipper

A desktop debugging platform for mobile developers.
https://fbflipper.com/
MIT License
13.32k stars 954 forks source link

Flipper connection issue #2897

Open masztalski opened 2 years ago

masztalski commented 2 years ago

Hello, I'm trying to integrate Flipper in my app. I have followed guides, however it looks like I have issue with certificate: image

Logs on starting app: I/AndroidApplication: Enabling flipper D/SoLoader: About to load: libfbjni.so D/SoLoader: libfbjni.so found on /data/data/courierplatform.couriermobileapp.test/lib-main D/SoLoader: Loading lib dependencies: [libandroid.so, liblog.so, libm.so, libc++_shared.so, libdl.so, libc.so] D/SoLoader: About to load: libandroid.so D/SoLoader: libandroid.so not found on /data/data/courierplatform.couriermobileapp.test/lib-main D/SoLoader: libandroid.so not found on /data/app/courierplatform.couriermobileapp.test--y8hx4L1ZWo_E8h4QrBiNA==/lib/arm64 D/SoLoader: libandroid.so not found on /vendor/lib64 D/SoLoader: libandroid.so found on /system/lib64 D/SoLoader: libandroid.so loaded implicitly D/SoLoader: Loaded: libandroid.so D/SoLoader: About to load: liblog.so D/SoLoader: liblog.so not found on /data/data/courierplatform.couriermobileapp.test/lib-main D/SoLoader: liblog.so not found on /data/app/courierplatform.couriermobileapp.test--y8hx4L1ZWo_E8h4QrBiNA==/lib/arm64 D/SoLoader: liblog.so not found on /vendor/lib64 D/SoLoader: liblog.so found on /system/lib64 D/SoLoader: liblog.so loaded implicitly D/SoLoader: Loaded: liblog.so D/SoLoader: About to load: libm.so D/SoLoader: libm.so not found on /data/data/courierplatform.couriermobileapp.test/lib-main D/SoLoader: libm.so not found on /data/app/courierplatform.couriermobileapp.test--y8hx4L1ZWo_E8h4QrBiNA==/lib/arm64 D/SoLoader: libm.so not found on /vendor/lib64 D/SoLoader: libm.so found on /system/lib64 D/SoLoader: libm.so loaded implicitly D/SoLoader: Loaded: libm.so D/SoLoader: About to load: libc++_shared.so D/SoLoader: libc++_shared.so found on /data/data/courierplatform.couriermobileapp.test/lib-main D/SoLoader: Loading lib dependencies: [libc.so, libdl.so] D/SoLoader: About to load: libc.so D/SoLoader: libc.so not found on /data/data/courierplatform.couriermobileapp.test/lib-main D/SoLoader: libc.so not found on /data/app/courierplatform.couriermobileapp.test--y8hx4L1ZWo_E8h4QrBiNA==/lib/arm64 D/SoLoader: libc.so not found on /vendor/lib64 D/SoLoader: libc.so found on /system/lib64 D/SoLoader: libc.so loaded implicitly D/SoLoader: Loaded: libc.so D/SoLoader: About to load: libdl.so D/SoLoader: libdl.so not found on /data/data/courierplatform.couriermobileapp.test/lib-main D/SoLoader: libdl.so not found on /data/app/courierplatform.couriermobileapp.test--y8hx4L1ZWo_E8h4QrBiNA==/lib/arm64 D/SoLoader: libdl.so not found on /vendor/lib64 D/SoLoader: libdl.so found on /system/lib64 D/SoLoader: libdl.so loaded implicitly D/SoLoader: Loaded: libdl.so D/SoLoader: Loaded: libc++_shared.so D/SoLoader: Loaded: libfbjni.so D/SoLoader: About to load: libflipper.so D/SoLoader: libflipper.so found on /data/data/courierplatform.couriermobileapp.test/lib-main D/SoLoader: Loading lib dependencies: [libfbjni.so, libevent_extra-2.1.so, libevent_core-2.1.so, liblog.so, libevent-2.1.so, libm.so, libc++_shared.so, libdl.so, libc.so] D/SoLoader: About to load: libevent_extra-2.1.so D/SoLoader: libevent_extra-2.1.so found on /data/data/courierplatform.couriermobileapp.test/lib-main D/SoLoader: Loading lib dependencies: [libevent_core-2.1.so, libm.so, libdl.so, libc.so] D/SoLoader: About to load: libevent_core-2.1.so D/SoLoader: libevent_core-2.1.so found on /data/data/courierplatform.couriermobileapp.test/lib-main D/SoLoader: Loading lib dependencies: [libm.so, libdl.so, libc.so] D/SoLoader: Loaded: libevent_core-2.1.so D/SoLoader: Loaded: libevent_extra-2.1.so D/SoLoader: About to load: libevent-2.1.so D/SoLoader: libevent-2.1.so found on /data/data/courierplatform.couriermobileapp.test/lib-main D/SoLoader: Loading lib dependencies: [libm.so, libdl.so, libc.so] D/SoLoader: Loaded: libevent-2.1.so D/SoLoader: Loaded: libflipper.so

I have read that some certificate should be uploaded by Flipper windows app to device to application storage, but I cannot see anything there connected with Sonar/Flipper: image

gradle: ` debugImplementation 'com.facebook.soloader:soloader:0.10.1' debugImplementation 'com.facebook.flipper:flipper:0.110.0' debugImplementation 'com.facebook.flipper:flipper-network-plugin:0.110.0'

releaseImplementation 'com.facebook.flipper:flipper-noop:0.110.0'`

Initalization method called from onCreate in application: ` SoLoader.init(this, false) if (BuildConfig.DEBUG && FlipperUtils.shouldEnableFlipper(this)) { Timber.i("Enabling flipper") AndroidFlipperClient.getInstance(this).also { it.addPlugin(flipperNetworkPlugin) it.addPlugin(SharedPreferencesFlipperPlugin(this, packageName + SharedPreferencesName)) it.addPlugin(InspectorFlipperPlugin(this, DescriptorMapping.withDefaults())) it.start() }

    }`

Previously I was working with Stetho on this project and everything was working (chrome://inspect was detecting app)

Have I missed anything about configuring or it is some strange issue? My device is Zebra TC57

Ashkimd commented 2 years ago

According to this page you have to install OpenSSL. It wasn't working with OpenSSL installed from official website for Windows for me. I removed it and installed OpenSSL via Chocolatey package manager and it works now.

stale[bot] commented 2 years ago

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.