Android compile error

Hi,
I’m building the jitsi engine for Android v7001 and I’m facing a problem:

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Build file '<PATH TO PROJECT>/node_modules/react-native-reanimated/android/build.gradle' line: 11

* What went wrong:
A problem occurred evaluating project ':react-native-reanimated'.
> Cannot get property 'react' on extra properties extension as it does not exist

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* Where:
Build file '<PATH TO PROJECT>/android/build.gradle' line: 123

* What went wrong:
A problem occurred configuring project ':react-native-reanimated'.
> Could not get unknown property 'android' for task ':react-native-reanimated:jitsiAndroidSourcesJar' of type org.gradle.api.tasks.bundling.Jar.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

I’m using node v17.7.1
and tested with reanimated 2.2.0 and 2.2.4.

Any hint on how to fix it?

Thanks

Try node 16 and npm 8

We don’t support reanimated v2.

Thanks, I downgraded to 1.13.1 and then error is gone… but I got a new one

<PATH>/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerModule.kt: (17, 32): Type mismatch: inferred type is ReactApplicationContext? but ReactApplicationContext was expected

What can be the cause?

How exactly are you building the SDK?

I’m just running the script /android/scripts/release-sdk.sh on MacOS

After downgrade react to version 14, now it compile correctly!