Open GordonShinozaki opened 2 years ago
Still same problem with flipper desktop 0.147.1
@GordonShinozaki have you find any workaround?
@GordonShinozaki @trigonometric-act Any solution? please share
@Ali-Sheharyar no solution yet, if you want an advice search for a workaround outside flipper to find leaks, for example xcode tools or chrome tools. I wasted too many hours diving in flipper without results when its supposed to be the optimal tool for developing react native
react-native 0.68.x + flipper 0.162.0
This setting works for me (这样的设置对我生效):
android/app/build.gradle
dependencies {
...
implementation "com.facebook.react:react-native:+"
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
exclude group:'com.facebook.fbjni'
}
debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
exclude group:'com.facebook.flipper'
// exclude group:'com.squareup.okhttp3', module:'okhttp'
}
debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") {
exclude group:'com.facebook.flipper'
}
debugImplementation("com.facebook.flipper:flipper-leakcanary2-plugin:${FLIPPER_VERSION}"){
exclude group:'com.facebook.flipper'
}
// https://github.com/facebook/flipper/blob/v0.162.0/build.gradle#L103
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.8.1'
...
}
android {
...
packagingOptions {
jniLibs {
pickFirsts += ['**/libc++_shared.so']
}
// pickFirst 'lib/x86/libc++_shared.so'
// pickFirst 'lib/x86_64/libjsc.so'
// pickFirst 'lib/arm64-v8a/libjsc.so'
// pickFirst 'lib/arm64-v8a/libc++_shared.so'
// pickFirst 'lib/x86_64/libc++_shared.so'
// pickFirst 'lib/armeabi-v7a/libc++_shared.so'
}
...
}
🐛 Bug Report
After running the build for android for my react native app, I get this error
To Reproduce
Environment
Things I've Tried So Far
to the leakcanary debugimplementation code (causes LeakCanary not defined / found error)