faizalshap / react-native-otp-verify

React native sms verification without additional permissions
MIT License
239 stars 92 forks source link

After installing build is failed #70

Open umairalirehan opened 1 year ago

umairalirehan commented 1 year ago

getting below error

Task :react-native-otp-verify:verifyReleaseResources FAILED w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions

FAILURE: Build completed with 2 failures.

pushpender-singh-ap commented 1 year ago

Would you mind sharing a sample project link with us so we can figure out what went wrong.

cisplRejjak commented 1 year ago

Same problem here, I just installed the package trying to build using react-native run-android. Tried also cleaning the build gradle, but same problem

umairalirehan commented 1 year ago

I will share it's solution very soon.

On Tue, Dec 13, 2022, 1:00 PM cisplRejjak @.***> wrote:

Same problem here, I just installed the package trying to build using react-native run-android. Tried also cleaning the build gradle, but same problem

— Reply to this email directly, view it on GitHub https://github.com/faizalshap/react-native-otp-verify/issues/70#issuecomment-1347889852, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKV2NFMNWYQFPZMZW767KUDWNAUIDANCNFSM6AAAAAASRR7X5E . You are receiving this because you authored the thread.Message ID: @.***>

ganjargal commented 1 year ago

I will share it's solution very soon.

pls share it

umairalirehan commented 1 year ago

I will share it's solution very soon.

pls share it

please made these changes at this location(whenever you run npm install do it again): nodeModules->react-native-otp-verify->android->build.gradlew add these lines in android tag from line number 22:

compileSdkVersion safeExtGet('OtpVerify_compileSdkVersion', 31) defaultConfig { minSdkVersion safeExtGet('OtpVerify_minSdkVersion', 21) targetSdkVersion safeExtGet('OtpVerify_targetSdkVersion', 31) versionCode 2 versionName "1.0"

cisplRejjak commented 1 year ago

@ganjargal Please use 1.0.4 version and remove ^ symbol for this package installed

image

then run npm install again. once done, do gradle clean and run the app, I hope it will resolve your problem.

Note: follow this version(1.0.4) documentation for the integration part