Ошибка: библиотека «librnscreens.so» не найдена, движок js: hermes

когда я пытаюсь запустить: npm run android, я получаю следующую ошибку:

**ERROR  Error: Exception in HostObject::get for prop 'RNSModule': java.lang.UnsatisfiedLinkError: dlopen failed: library "librnscreens.so" not found, js engine: hermes**
 ERROR  Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Registered callable JavaScript modules (n = 11): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient, RCTEventEmitter.
        A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes
 ERROR  Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Registered callable JavaScript modules (n = 11): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient, RCTEventEmitter.
        A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes

Я меняю build.gradle на

project.ext.react = [
    entryFile: "index.js",
    enableHermes: true, 
    bundleInDebug: true // clean and rebuild if changing
]

сбросить кеш

без успеха Приложение отлично работает на iOS Есть у кого идеи?
Я использую Visual Code на Mac со студией Android и эмуляторами.


1 258
1

Ответ:

Решено

Я столкнулся с тем же, наверное, это связано с совсем недавними изменениями в react-native-screens.

Я решил это, понизив версию:

"@react-navigation/native": "6.0.13",
"@react-navigation/native-stack": "6.4.0",
"react-native-screens": "3.14.0"

Надеюсь, поможет.