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
316 stars 93 forks source link

1.1.15 version had some issues in Android build #224

Closed MarwadTech closed 4 months ago

MarwadTech commented 5 months ago

Describe the bug while creating Android build showing error

To Reproduce Steps to reproduce the behavior:

  1. Go to 'normal run the android app (yarn android)'
  2. Click on 'build failed'
  3. Scroll down to 'nothing'
  4. See error = Could not determine the dependencies of task ':react-native-image-marker:compileDebugAidl'.

    Problems reading data from Binary store in /Users/bhanwarsuthar/.gradle/.tmp/gradle336922897664867668.bin offset 1065525 exists? true

Expected behavior successfully create android build

Screenshots If applicable, add screenshots to help explain your problem.

Screenshot 2024-04-01 at 3 49 18 PM

Devlopment environment(please complete the following information):

Smartphone (please complete the following information):

wublack commented 5 months ago

me too!

JimmyDaddy commented 5 months ago

@wublack @MarwadTech what is the gradle version your project use

MarwadTech commented 5 months ago

@JimmyDaddy Gradle Version

{ buildToolsVersion = "33.0.0" minSdkVersion = 23 compileSdkVersion = 33 targetSdkVersion = 33 kotlin_version = "1.8.0" kotlinVersion = "1.8.0" // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP. ndkVersion = "25.1.8937393" androidXAnnotation = "1.2.0" androidXBrowser = "1.3.0" }

classpath 'com.android.tools.build:gradle:7.3.1'

IamHungry113 commented 5 months ago

any update ? I have same problem here

lucasgbsampaio commented 4 months ago

same here

AlexMuhammad commented 4 months ago

@JimmyDaddy is there solution for this issue, i just got this problem when i rebuilt my project, and i got build failed.

JimmyDaddy commented 4 months ago

https://github.com/JimmyDaddy/react-native-image-marker/discussions/185

https://github.com/JimmyDaddy/react-native-image-marker/issues/188

Guys, you need to update your gradle to 8.3

Flano-123 commented 4 months ago

185

188

Guys, you need to update your gradle to 8.3

I got the same problem and update the gradle version to 8.3 doesn't work for me. It will raise another new problem:

\node_modules\react-native-gradle-plugin\src\main\kotlin\com\facebook\react\utils\TaskUtils.kt: (27, 12): Class 'kotl in.collections.ArraysKt___ArraysKt' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.6.0.

huynextlevel commented 4 months ago

Hi @JimmyDaddy ,

I got the same error. I also followed commetn #185 #183 . The issue still happen, current my version information: React Native: v0.72.10 react native image marker: v1.1.15 grandle: v8.0.1 (I tried with 8.3 still not working)

shubhadeep29 commented 4 months ago

same problem. any update?

but I am using "react-native-image-marker": "^1.2.6", and after gradle 8.3 changes getting the below error. @JimmyDaddy please help

Screenshot 2024-04-21 at 10 21 21 PM
lucasgbsampaio commented 4 months ago

Guys, check the library version in the yarn.lock/package-lock.json. Should be exactly 1.1.15

shubhadeep29 commented 4 months ago

The error is gone after switching the version to 1.1.15.

Thanks @lucasgbsampaio

pramahaditamaputra commented 4 months ago

Hi @shubhadeep29 do you face any problem in android 14 ? the font size come more bigger ?