pavel-corsaghin / react-native-leaflet

A LeafletView component using WebView and Leaflet map for React Native applications
MIT License
114 stars 46 forks source link

Build failing after installation of the library. #26

Open imAunAbbas opened 1 year ago

imAunAbbas commented 1 year ago

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.

2: Task failed with an exception.

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?

cybergears commented 1 year ago

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

loloide commented 1 year ago

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

S21810014 commented 1 year ago

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