react-native-text-recognition icon indicating copy to clipboard operation
react-native-text-recognition copied to clipboard

Android build failed

Open Abdulhaque4241 opened this issue 1 year ago • 4 comments

image

buildscript { ext { buildToolsVersion = "34.0.0" minSdkVersion = 21 compileSdkVersion = 34 targetSdkVersion = 34 ndkVersion = "25.1.8937393" kotlinVersion = "1.8.0" } //.... }

@JoeyEamigh Would you please help me ?

Abdulhaque4241 avatar Jul 23 '24 15:07 Abdulhaque4241

hey @Abdulhaque4241,

For me adding this in my /android/build.gradle

ext {
    TextRecognition_compileSdkVersion = my_app_compileSdkVersion
    TextRecognition_buildToolsVersion = "my_app_buildToolsVersion"
    TextRecognition_targetSdkVersion = my_app_targetSdkVersion
    TextRecognition_minSdkVersion = my_app_minSdkVersion
}

fixed the issue. Hopefully it fixes it for you too 🤞

Try to replace my_app stuff with yours. I used

        buildToolsVersion = "35.0.0"
        minSdkVersion = 24
        compileSdkVersion = 34
        targetSdkVersion = 34

p-janik avatar Sep 05 '24 08:09 p-janik

facing the same issue mentioned above.

hamzasaleem3 avatar Oct 07 '24 11:10 hamzasaleem3

acing the same issue mentioned above.

But this above answer is working

ext { TextRecognition_compileSdkVersion = my_app_compileSdkVersion TextRecognition_buildToolsVersion = "my_app_buildToolsVersion" TextRecognition_targetSdkVersion = my_app_targetSdkVersion TextRecognition_minSdkVersion = my_app_minSdkVersion }

ravikantojha avatar Feb 04 '25 09:02 ravikantojha

in my android/gradle.build

ext { buildToolsVersion = findProperty('android.buildToolsVersion') ?: '35.0.0' minSdkVersion = Integer.parseInt(findProperty('android.minSdkVersion') ?: '24') compileSdkVersion = Integer.parseInt(findProperty('android.compileSdkVersion') ?: '34') targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: '34') kotlinVersion = findProperty('android.kotlinVersion') ?: '1.9.25' ndkVersion = "26.1.10909125" }

ext { TextRecognition_compileSdkVersion = compileSdkVersion TextRecognition_buildToolsVersion = buildToolsVersion TextRecognition_targetSdkVersion = targetSdkVersion TextRecognition_minSdkVersion = minSdkVersion }

timglenn123 avatar May 02 '25 13:05 timglenn123