Open hoangtrunnam opened 8 months ago
this bug happened when your react native project required compileSdkVersion >= 30. you can see this lib uses compileSdkVersion = 29 (node_modules/react-native-otp-auto-fill/android/build.gradle).
=>>> Update your build.gradle file in your root project: android/buildgradle (not in node_moudles) like this:
buildscript { ext { buildToolsVersion = "33.0.0" minSdkVersion = 21 compileSdkVersion = 33 targetSdkVersion = 33 OtpAutoFill_compileSdkVersion = 33 // have to change this to 33 to run on react native 0.72.5
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
ndkVersion = "23.1.7779620"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.google.gms:google-services:4.4.0'
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
}
}
this bug happened when your react native project required compileSdkVersion >= 30. you can see this lib uses compileSdkVersion = 29 (node_modules/react-native-otp-auto-fill/android/build.gradle).
=>>> Update your build.gradle file in your root project: android/buildgradle (not in node_moudles) like this:
buildscript { ext { buildToolsVersion = "33.0.0" minSdkVersion = 21 compileSdkVersion = 33 targetSdkVersion = 33 OtpAutoFill_compileSdkVersion = 33 // have to change this to 33 to run on react native 0.72.5
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP. ndkVersion = "23.1.7779620" } repositories { google() mavenCentral() } dependencies { classpath 'com.google.gms:google-services:4.4.0' classpath("com.android.tools.build:gradle") classpath("com.facebook.react:react-native-gradle-plugin") }
}
Thank you so much. It solved my issue on RN 0.72.6
Execution failed for task ':tasks'.