android.useAndroidX=true android.nonTransitiveRClass=true org.gradle.jvmargs=-Xmx4096m -XX:MaxMetaspaceSize=1024m # No file-system watching. # # Chaquopy extracts a 3,200-file Python environment into app/build during the build, and # Gradle's watcher trips over re-registering it: every single run of every task printed # "Caught exception: Already watching path: .../pip/_vendor/html5lib/_trie" into the output, # which is noise in front of every real build error this project has. # # It costs nothing. Measured on a no-op compileDebugKotlin, twice each: 1.50s and 1.59s with # watching, 1.46s and 1.46s without. The VFS is invalidated by that extraction anyway, so # there is nothing for the watcher to keep warm -- and a watcher holding stale state about a # tree another tool rewrites is a source of the "clean and try again" class of problem rather # than a cure for it. org.gradle.vfs.watch=false