devfd / react-native-workers

Background services and web workers for react-native
BSD 2-Clause "Simplified" License
804 stars 89 forks source link

React-native-worker not working issue with @Override #31

Open manojcena opened 6 years ago

manojcena commented 6 years ago

HI , I am new to react-native i integrated react-native-workers as you mentioned in this repo i tried with manual as well as automatic. i am getting the below errors. i am unable to find any solution to resolve it. Please help me out to solve this problem.

import com.facebook.react.modules.core.JSTimersExecution; ^ symbol: class JSTimersExecution location: package com.facebook.react.modules.core C:\Users\Scketch\Desktop\scketch-chat\node_modules\react-native-workers\android\ src\main\java\co\apptailor\Worker\core\ReactContextBuilder.java:9: error: JSCJav aScriptExecutor is not public in com.facebook.react.bridge; cannot be accessed f rom outside package import com.facebook.react.bridge.JSCJavaScriptExecutor; ^ C:\Users\Scketch\Desktop\scketch-chat\node_modules\react-native-workers\android\ src\main\java\co\apptailor\Worker\core\ReactContextBuilder.java:19: error: canno t find symbol import com.facebook.react.devsupport.DevSupportManager; ^ symbol: class DevSupportManager location: package com.facebook.react.devsupport C:\Users\Scketch\Desktop\scketch-chat\node_modules\react-native-workers\android\ src\main\java\co\apptailor\Worker\core\ReactContextBuilder.java:29: error: canno t find symbol private DevSupportManager devSupportManager; ^ symbol: class DevSupportManager location: class ReactContextBuilder C:\Users\Scketch\Desktop\scketch-chat\node_modules\react-native-workers\android\ src\main\java\co\apptailor\Worker\core\ReactContextBuilder.java:42: error: canno t find symbol public ReactContextBuilder setDevSupportManager(DevSupportManager devSupport Manager) { ^ symbol: class DevSupportManager location: class ReactContextBuilder C:\Users\Scketch\Desktop\scketch-chat\node_modules\react-native-workers\android\ src\main\java\co\apptailor\Worker\core\ReactContextBuilder.java:128: error: cann ot find symbol private void addJSModules(JavaScriptModuleRegistry.Builder jsModulesBuilder) { ^ symbol: class Builder location: class JavaScriptModuleRegistry C:\Users\Scketch\Desktop\scketch-chat\node_modules\react-native-workers\android\ src\main\java\co\apptailor\Worker\core\ReactContextBuilder.java:137: error: cann ot find symbol private void addNativeModules(ReactApplicationContext reactContext, NativeMo duleRegistry.Builder nativeRegistryBuilder) { ^ symbol: class Builder location: class NativeModuleRegistry C:\Users\Scketch\Desktop\scketch-chat\node_modules\react-native-workers\android\ src\main\java\co\apptailor\Worker\WorkerModule.java:16: error: cannot find symbo l import com.facebook.react.devsupport.DevSupportManager; ^ symbol: class DevSupportManager location: package com.facebook.react.devsupport C:\Users\Scketch\Desktop\scketch-chat\node_modules\react-native-workers\android\ src\main\java\co\apptailor\Worker\WorkerModule.java:188: error: cannot find symb ol private DevSupportManager getDevSupportManager() { ^ symbol: class DevSupportManager location: class WorkerModule C:\Users\Scketch\Desktop\scketch-chat\node_modules\react-native-workers\android\ src\main\java\co\apptailor\Worker\core\BaseReactPackage.java:46: error: cannot f ind symbol new SourceCodeModule(reactInstanceManager.getSourceUrl()), ^ symbol: method getSourceUrl() location: variable reactInstanceManager of type ReactInstanceManager C:\Users\Scketch\Desktop\scketch-chat\node_modules\react-native-workers\android\ src\main\java\co\apptailor\Worker\core\BaseReactPackage.java:61: error: method d oes not override or implement a method from a supertype @Override ^ C:\Users\Scketch\Desktop\scketch-chat\node_modules\react-native-workers\android\ src\main\java\co\apptailor\Worker\core\BaseReactPackage.java:65: error: cannot f ind symbol JSTimersExecution.class, ^ symbol: class JSTimersExecution location: class BaseReactPackage C:\Users\Scketch\Desktop\scketch-chat\node_modules\react-native-workers\android\ src\main\java\co\apptailor\Worker\core\ReactContextBuilder.java:53: error: packa ge JSCJavaScriptExecutor does not exist JavaScriptExecutor jsExecutor = new JSCJavaScriptExecutor.Factory().crea te(new WritableNativeMap()); ^ C:\Users\Scketch\Desktop\scketch-chat\node_modules\react-native-workers\android\ src\main\java\co\apptailor\Worker\core\ReactContextBuilder.java:62: error: canno t find symbol NativeModuleRegistry.Builder nativeRegistryBuilder = new NativeModuleReg istry.Builder(); ^ symbol: class Builder location: class NativeModuleRegistry C:\Users\Scketch\Desktop\scketch-chat\node_modules\react-native-workers\android\ src\main\java\co\apptailor\Worker\core\ReactContextBuilder.java:62: error: canno t find symbol NativeModuleRegistry.Builder nativeRegistryBuilder = new NativeModuleReg istry.Builder(); ^ symbol: class Builder location: class NativeModuleRegistry C:\Users\Scketch\Desktop\scketch-chat\node_modules\react-native-workers\android\ src\main\java\co\apptailor\Worker\core\ReactContextBuilder.java:66: error: canno t find symbol JavaScriptModuleRegistry.Builder jsModulesBuilder = new JavaScriptModule Registry.Builder(); ^ symbol: class Builder location: class JavaScriptModuleRegistry C:\Users\Scketch\Desktop\scketch-chat\node_modules\react-native-workers\android\ src\main\java\co\apptailor\Worker\core\ReactContextBuilder.java:66: error: canno t find symbol JavaScriptModuleRegistry.Builder jsModulesBuilder = new JavaScriptModule Registry.Builder(); ^ symbol: class Builder location: class JavaScriptModuleRegistry C:\Users\Scketch\Desktop\scketch-chat\node_modules\react-native-workers\android\ src\main\java\co\apptailor\Worker\core\ReactContextBuilder.java:131: error: cann ot find symbol for (Class<? extends JavaScriptModule> jsModuleClass : reactPackage. createJSModules()) { ^ symbol: method createJSModules() location: variable reactPackage of type ReactPackage C:\Users\Scketch\Desktop\scketch-chat\node_modules\react-native-workers\android\ src\main\java\co\apptailor\Worker\WorkerModule.java:180: error: no suitable meth od found for createFileLoader(ReactApplicationContext,String) return JSBundleLoader.createFileLoader(getReactApplicationContext(), "as sets://workers/" + jsFileSlug + ".bundle"); ^ method JSBundleLoader.createFileLoader(String) is not applicable (actual and formal argument lists differ in length) method JSBundleLoader.createFileLoader(String,String,boolean) is not applica ble (actual and formal argument lists differ in length) C:\Users\Scketch\Desktop\scketch-chat\node_modules\react-native-workers\android\ src\main\java\co\apptailor\Worker\WorkerPackage.java:21: error: method does not override or implement a method from a supertype @Override ^ 20 errors :react-native-workers:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 1 mins 21.781 secs Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/getting-started.html

daanbouws1 commented 6 years ago

same problem here

developerium commented 6 years ago

I've just installed it and ran into this!

rahulbhankar786 commented 6 years ago

can someone solve this??

benhartouz commented 5 years ago

same problem

tabekg commented 5 years ago

I have same problem, could anybody help us?

benhartouz commented 5 years ago

@tabekg This lib has not seen a commit for 2 years. I suggest people interested in having similar features to look into this: https://github.com/joltup/react-native-threads