react-native-leaflet
react-native-leaflet copied to clipboard
Build failing after installation of the library.
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?
I also have the same issue . looks like it does not support the latest version of react native .
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
i fixed it with changing
node_modules/react-native-leaflet-view/android/gradle.properties
i changed
Leaflet_kotlinVersion
to1.6.10
and it works
Thanks you so much! This fixed my build