Android build failed
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 ?
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
facing the same issue mentioned above.
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 }
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 }