Open alicja-mruk opened 1 year ago
try adding this snippet to the end of android/build.gradle
configurations.all {
resolutionStrategy {
force 'androidx.core:core-ktx:1.6.0'
}
}
I still have the issue. I have no idea what's wrong.
I manually updated the compileSdkVersion, buildToolsVersion and targetSdkVersion to 31 on node_modules/react-native-text-recognition/android/build.gradle
. That worked for me
android {
compileSdkVersion safeExtGet('TextRecognition_compileSdkVersion', 31)
buildToolsVersion safeExtGet('TextRecognition_buildToolsVersion', '31.0.0')
defaultConfig {
minSdkVersion safeExtGet('TextRecognition_minSdkVersion', 16)
targetSdkVersion safeExtGet('TextRecognition_targetSdkVersion', 31)
versionCode 1
versionName "1.0"
...
}
That seems to solve the issue! Thank you a lot :)
react native version 70.5.0 expo version 47.0.3
gradle.properties
Project build.gradle project version