Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Arun1295 opened this issue Jan 23, 2020 · 5 comments

Comments

@Arun1295
Copy link

@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
Copy link

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

@ehsannn32
Copy link

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
Copy link

Any solution for this error?

@jacobp100
Copy link

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

@vardan10
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants