I had to upgrade a bunch of packages on reactive native to update to google api 35. The app was working before without any issue.
When uploading the app to a phone and opening, I'm getting the following error.
Logcar error:
com.facebook.soloader.SoLoaderDSONotFoundError: couldn't find DSO to load: libreact_featureflagsjni.so existing SO sources: SoSource 0: ApplicationSoSource[DirectorySoSource[root = /data/app/~~m8LRbKOUfGpaZuyeS9VjcA==/app.vitor.onedock-TWADAGnTWOipiiyLPy682g==/lib/x86_64 flags = 0]] SoSource 1: DirectApkSoSource[root = [/data/app/~~m8LRbKOUfGpaZuyeS9VjcA==/app.vitor.onedock-TWADAGnTWOipiiyLPy682g==/base.apk!/lib/x86_64]] SoSource 2: DirectorySoSource[root = /system/lib64 flags = 3] SoSource 3: DirectorySoSource[root = /vendor/lib64 flags = 3] Native lib dir: /data/app/~~m8LRbKOUfGpaZuyeS9VjcA==/app.vitor.onedock-TWADAGnTWOipiiyLPy682g==/lib/x86_64
com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1216) at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:1078) at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:943) at com.facebook.soloader.SoLoader.loadLibraryOnAndroid(SoLoader.java:859) at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:842) at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:812) at com.facebook.react.internal.featureflags.ReactNativeFeatureFlagsCxxInterop.(ReactNativeFeatureFlagsCxxInterop.kt:28) at com.facebook.react.internal.featureflags.ReactNativeFeatureFlagsCxxAccessor.override(ReactNativeFeatureFlagsCxxAccessor.kt:635) at com.facebook.react.internal.featureflags.ReactNativeFeatureFlags.override(ReactNativeFeatureFlags.kt:414) at com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load(DefaultNewArchitectureEntryPoint.kt:97) at com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load(DefaultNewArchitectureEntryPoint.kt:43) at app.vitor.onedock.MainApplication.onCreate(MainApplication.kt:43) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1365) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7746) at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2509) at android.os.Handler.dispatchMessage(Handler.java:110) at android.os.Looper.loopOnce(Looper.java:248) at android.os.Looper.loop(Looper.java:338) at android.app.ActivityThread.main(ActivityThread.java:8982) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:932)
I believe this has a relationship with a configuration on android/gradle.properties:
newArchEnabled=true
reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
Unfortunatelly setting newArchEnabled=false is not an option.
Tried to fix using chatgpt but I guess I hit the bottom of it.
Any help is well appreciated.
Let me know if you need more details.
Thanks.