I facing this issues while making release Build apk in react native.
check screenshot - https://prnt.sc/sro8ua
Task :app:createReleaseExpoManifest FAILED w: Detected multiple Kotlin daemon sessions at build\Kotlin\sessions
Please help me anyone facing the same issues.
Sometimes just delete Build folders and retry. In my case, this problem happen after upgrade the RN version, so cleaning the builds folders, has solved.
It could be a lot of reasaons, I fixed it by:
step 1. go to ur_project/android/gradle.properties add the line
org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
step 2. go to ur_project/android/app/build.gradle, inside android{ .... } add
dexOptions {
incremental true
javaMaxHeapSize "4g"
}
it's works for me
step1. cd android && ./gradlew clean step2. cd .. step3. npx react-native start
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With