Posted on

Kotlin 2.1.0 Released

[https://blog.jetbrains.com/kotlin/2024/11/kotlin-2-1-0-released/]

https://t.me/arvidroid/552

What’s new:

New language features in preview: Guard conditions in when with a subject, non-local break and continue, and multi-dollar string interpolation.

K2 compiler updates: More flexibility around compiler checks and improvements to the kapt implementation.

Kotlin Multiplatform: Stable Gradle DSL for compiler options and many other improvements.

Kotlin/Native: Improved support for iosArm64 and other updates.

Kotlin/Wasm: Multiple updates, including support for incremental compilation.

Gradle support: Improved compatibility with newer versions of Gradle and the Android Gradle plugin, along with updates to the Kotlin Gradle plugin API.

Posted on

How to Allocate More Than 8GB RAM for Android Studio?

People discuss jvm options.

-Xms512m
-Xmx4g
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-XX:+IgnoreUnrecognizedVMOptions
-XX:MaxJavaStackTraceDepth=10000
-ea
-Dsun.io.useCanonCaches=false
-Dsun.java2d.metal=true
-Djbr.catch.SIGABRT=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-Djdk.attach.allowAttachSelf=true
-Djdk.module.illegalAccess.silent=true
-Dkotlinx.coroutines.debug=off
-XX:CICompilerCount=2
-XX:ReservedCodeCacheSize=512m
-XX:+UnlockDiagnosticVMOptions
-XX:TieredOldPercentage=100000
-XX:SoftRefLRUPolicyMSPerMB=50
-Dapple.awt.application.appearance=system