JimmyDaddy / react-native-image-marker

🙈Adding text or icon watermark to your image using React Native👀👀
https://jimmydaddy.github.io/react-native-image-marker/
MIT License
329 stars 94 forks source link

> Yes, It is 8.0.1. Should I upgrade it? #188

Closed dheeraj-jft closed 10 months ago

dheeraj-jft commented 11 months ago
          > Yes, It is 8.0.1. Should I upgrade it?

Yes, Coil need gradle 8.0.3. You can refer to the Gradle version settings in the example project.

Originally posted by @JimmyDaddy in https://github.com/JimmyDaddy/react-native-image-marker/issues/183#issuecomment-1870260351

I am getting this error while upgrading to gradle 8.3. /.gradle/wrapper/dists/gradle-8.3-bin/dxjbbhstwasg8cbags9q7cvli/gradle-8.3/lib/kotlin-stdlib-1.9.0.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.

Did you mention gradle 8.0.3 or 8.3

JimmyDaddy commented 11 months ago

@dheeraj-jft what the kotlin_version is in your project? You can find it in gradle.properties

And what is your react-native version?

dheeraj-jft commented 11 months ago

Screenshot from 2023-12-29 08-23-38 Screenshot from 2023-12-29 08-19-36

dheeraj-jft commented 11 months ago

image

JimmyDaddy commented 11 months ago

@dheeraj-jft react-native@0.72.x is not compatible with 1.2.x, your should use 1.1.x or upgrade your react-native to 0.73.x. doc here

dheeraj-jft commented 11 months ago

I have completely removed the library still I am getting this error on android. The same code with the latest version 1.2.1 worked on ios.

JimmyDaddy commented 11 months ago

I have completely removed the library still I am getting this error on android. The same code with the latest version 1.2.1 worked on ios.

This is caused by a conflict between the Kotlin version used by Gradle 8.3 and the Kotlin version used by react-native@0.72.x. If you want to keep the react native version unchanged and run normally on Android, you also need to downgrade the Gradle version to 8.0.x.

dheeraj-jft commented 11 months ago

I did all things you told, downgraded the package to 1.1.11 , gradle to 8.0.1. But it is still not working on android

My current configuration Screenshot from 2023-12-29 18-02-20

"react-native": "0.72.6",

JimmyDaddy commented 11 months ago

You need to gradle clean and rebuild