Closed asifalikhokhar closed 5 years ago
I must share this solution with whoever is facing the same:
Add this to root of your project level build.gradle (android/build.gradle)
subprojects {
afterEvaluate {project ->
// force libs to use recent buildtools
if (project.hasProperty("android")) {
android {
compileSdkVersion = 27 // change to match your desired version
buildToolsVersion = "27.0.3" // ....
}
}
}
}
It works fine when I do react-native run-android.
But when I'm doing assembleRelease, build fails with following error: