devfd / react-native-workers

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

unable to run sample Application #10

Open arvindkkore opened 8 years ago

arvindkkore commented 8 years ago

I followed the process given with tutorial ,but gettting following error

\node_modules\react-native-workers\android\src\main\java\co\apptailor\Worker\WorkerModule.java:180: error: cannot find symbol return JSBundleLoader.createFileLoader(getReactApplicationContext(), "assets://workers/" + jsFileSlug + ".bundle");

yuvalsegev commented 8 years ago

Same here

sundou commented 7 years ago

Same here

amanthegreatone commented 7 years ago

any solutions? getting the same error. opened android studio and saw the main application was giving a package error. fixed that as per the installation docs but getting more package errors for the ReactContextBuilder java file

screen shot 2017-01-10 at 9 36 29 pm

ousat commented 7 years ago

@amanthegreatone I fixed the package errors following this -> https://github.com/devfd/react-native-workers/pull/24/commits/dce4185918f269dc9d3b877f94c23c6185ff0af2

@arvindkkore I m stuck at the same place

ousat commented 7 years ago

I fixed it , @arvindkkore have worker.js where you have your index.android.js , restart the react-native start and it runs fine , follow the changes I posted above

dont forget to kill the react-native server and start again everytime you change worker.js file