react-native-threads
react-native-threads copied to clipboard
Execution failed for task ':react-native-threads:compileDebugJavaWithJavac'.
@Traviskn @swansontec @aryo @newyankeecodeshop After successful installation while running the app the following error occurs
D:\React-native\BTSpeakz\node_modules\react-native-threads\android\src\main\java\com\reactlibrary\ReactContextBuilder.java:6: error: package com.facebook.hermes.reactexecutor does not exist
import com.facebook.hermes.reactexecutor.HermesExecutorFactory;
^
D:\React-native\BTSpeakz\node_modules\react-native-threads\android\src\main\java\com\reactlibrary\ThreadBaseReactPackage.java:19: error: cannot find symbol
import com.facebook.react.modules.debug.DevSettingsModule;
^
symbol: class DevSettingsModule
location: package com.facebook.react.modules.debug
D:\React-native\BTSpeakz\node_modules\react-native-threads\android\src\main\java\com\reactlibrary\ReactContextBuilder.java:69: error: cannot find symbol
return new HermesExecutorFactory();
^
symbol: class HermesExecutorFactory
location: class ReactContextBuilder
D:\React-native\BTSpeakz\node_modules\react-native-threads\android\src\main\java\com\reactlibrary\ThreadBaseReactPackage.java:52: error: cannot find symbol
new DevSettingsModule(reactInstanceManager.getDevSupportManager())
^
symbol: class DevSettingsModule
location: class ThreadBaseReactPackage
4 errors
3 warnings
Please post the solution for this. Thanks in advance
What version of RN are you using? Are you using Hermes? Was this package autolinked?
it's about 4 month there is no update on this package and some properties used for android part has been deprecated and is not compatible with new versions of android , I still haven't found any solution to fix this , but i hope the creator to think of this issue !
Any solution for this error?
There’s not enough information to look into this. If you need help, open a new ticket with more information on your issue
Switching to react-native version 0.60.5 and downgrading react-native-threads to version 0.0.17 worked for me. Also make sure you follow this steps 3-9 mentioned here