Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detected multiple Kotlin daemon sessions at build\kotlin\sessions - React-Native

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.

like image 754
Prashant Mali Avatar asked Jun 01 '20 12:06

Prashant Mali


3 Answers

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.

like image 176
Julian Corrêa Avatar answered Oct 14 '22 18:10

Julian Corrêa


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"
}
like image 29
Lawrence Cheuk Avatar answered Oct 14 '22 17:10

Lawrence Cheuk


it's works for me

step1. cd android && ./gradlew clean step2. cd .. step3. npx react-native start

like image 45
Saurabh Singh Avatar answered Oct 14 '22 16:10

Saurabh Singh