react-native-leaflet icon indicating copy to clipboard operation
react-native-leaflet copied to clipboard

Build failing after installation of the library.

Open imAunAbbas opened this issue 2 years ago • 3 comments

After installation of the library into my project. But when I started to build the project, it failed every time saying:

> Task :react-native-leaflet-view:compileDebugKotlin FAILED Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

`FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • What went wrong: Execution failed for task ':react-native-leaflet-view:compileDebugKotlin'.

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

2: Task failed with an exception.

  • What went wrong: java.lang.StackOverflowError (no error message)

  • 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

BUILD FAILED in 10s`

I also tried to clean the project first but nothing worked for me. Is there any solution or anyone faced this issue and found anything to solve this?

imAunAbbas avatar Dec 14 '22 09:12 imAunAbbas

I also have the same issue . looks like it does not support the latest version of react native .

cybergears avatar Jan 27 '23 07:01 cybergears

i fixed it with changing node_modules/react-native-leaflet-view/android/gradle.properties

i changed Leaflet_kotlinVersion to 1.6.10 and it works

loloide avatar Feb 17 '23 20:02 loloide

i fixed it with changing node_modules/react-native-leaflet-view/android/gradle.properties

i changed Leaflet_kotlinVersion to 1.6.10 and it works

Thanks you so much! This fixed my build

S21810014 avatar Sep 16 '23 12:09 S21810014