Hello, this may not be related to Kotlin but I'm t...
# android
r
Hello, this may not be related to Kotlin but I'm trying to find a solution for this problem. I have an Android project which we started to modularize, use version catalog and conventional plugins, following the NIA project. But we started to get some strange errors on the project:
(Too many open files)
.
Seems to be related to limit of files that a system can open on macOS.
Cannot run program "/Applications/Android Studio <http://Preview.app/Contents/jbr/Contents/Home/bin/java|Preview.app/Contents/jbr/Contents/Home/bin/java>": error=24, Too many open files
There are some discussions on the internet about adding flags like
-XX:-MaxFDLimit
to the Gradle JVM args and AS VM options, but none of them seem's to fix the issue. This discussion on the Gradle forum has more details. Also there are some repositories like this, which simulates the problem but their suggestions also does not fix the problem. The only thing that helped to reduce (almost solve) the problem is this list of commands to increase the OS file limit number. However, it reduces the performance of the computer, which makes almost impossible to couple with it. I have no more places to ask questions, so I appreciate any input. Thank you.
not kotlin but kotlin colored 3