skip to Main Content

Here is the error I’m facing while building the android apk of a branch. (does not happen while building for ios). I have been using react-native-gesture-handler since years on this codebase but never faced this error.

This error started occuring after a pr was merged, but this pr does not contain any android side native change.

Version Info :
react-native-gesture-handler: ^2.3.2
kotlin version in build.gradle: 1.6.10
react-native version: 0.68.5

> Task :react-native-gesture-handler:compileReleaseKotlin FAILED
e: /Users/saumya/Desktop/latest/lc-app/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.kt: (247, 92): Unresolved reference: TIRAMISU

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-gesture-handler:compileReleaseKotlin'.
> Compilation error. See log for more details

* 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.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

Have tried popular solutions for this issue like :

  1. using this
npm i jetifier
npx jetify
  1. these are already present in gradle.properties :
android.useAndroidX=true  
android.enableJetifier=true

but still the issue is not getting solved!

Please share any solutions or ask any info . It will be super helpful.

2

Answers


  1. In my case, react-native-gesture-handler caused issue.

    Please try this version.

    "react-native-gesture-handler": "2.9.0"

    Login or Signup to reply.
  2. I change it from:

    Build.VERSION_CODES.TIRAMISU
    

    to:

    Build.VERSION_CODES.LOLLIPOP
    

    and it worked.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search