react-native-worklets-core icon indicating copy to clipboard operation
react-native-worklets-core copied to clipboard

Build-Error in Android with RN 0.70.1 and Worklets 0.2.2

Open dfilla opened this issue 2 years ago • 4 comments

I get an error while building Android.' React-Native: 0.70.1 Vision-Camera: 3.5.1 Worklets-Core: 0.2.2

I have set the following flag in "gradle.properties". hermesEnabled=true

This gives me this error:

Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'. Could not find com.facebook.react:hermes-android:. Required by: project :app

But if I set Hermes as "false" I get this error:

Could not determine the dependencies of task ':react-native-worklets-core:compileDebugAidl'. Could not resolve all task dependencies for configuration ':react-native-worklets-core:debugCompileClasspath'. Could not find com.facebook.react:react-android:. Required by: project :react-native-worklets-core

In both cases, Worklets Core cannot load the libs.

Can someone help me please? Everything works fine on iOS, it's just Android.

dfilla avatar Oct 23 '23 13:10 dfilla

Is it possible that Worklets 0.2.2 only works with RN 0.71.0 or higher?

dfilla avatar Oct 23 '23 14:10 dfilla

Same here.

erickcrus avatar Oct 24 '23 18:10 erickcrus

I'm using react-native version 0.68.7, upgraded to 0.71.0 and it worked... However I am not ready to use this version of RN. Need a fix :)

josh-thompson13 avatar Nov 08 '23 02:11 josh-thompson13

It also fails with latest version 1.1.0. What is exactly causing the problem? It would be good to have a fix for RN < 0.71. I assume its a minor setting/config in the module that needs to be fixed for this

levepic avatar Feb 20 '24 08:02 levepic