joltup / react-native-threads

Create new JS processes for CPU intensive work
MIT License
755 stars 141 forks source link

Execution failed for task ':react-native-threads:compileDebugJavaWithJavac'. #97

Open Arun1295 opened 4 years ago

Arun1295 commented 4 years ago

@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

jacobp100 commented 4 years ago

What version of RN are you using? Are you using Hermes? Was this package autolinked?

ehsannn32 commented 4 years ago

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 !

mauriciopf commented 4 years ago

Any solution for this error?

jacobp100 commented 4 years ago

There’s not enough information to look into this. If you need help, open a new ticket with more information on your issue

vardan10 commented 4 years ago

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