The problem persists for me when using ProGuard version 6.0.1 or 6.0.3 (it was working just fine with ProGuard 5.3.3). That's why I tried to figure out, what causes the problem. In my case, the function leading to the error during ProGuard optimization was this (Kotlin or Java should be irrelevant): private fun logInfo(action: String) { val wifiState = mWifiManager.wifiState val stateString = when (wifiState) { WifiManager.WIFI_STATE_ENABLED -> "enabled" WifiManager.WIFI_STATE_DISABLED -> "disabled"...
The problem persists for me when using ProGuard version 6.0.1 or 6.0.3. That's why I tried to figure out, what causes the problem. In my case, the function leading to the error during ProGuard optimization was this (Kotlin or Java should be irrelevant): private fun logInfo(action: String) { val wifiState = mWifiManager.wifiState val stateString = when (wifiState) { WifiManager.WIFI_STATE_ENABLED -> "enabled" WifiManager.WIFI_STATE_DISABLED -> "disabled" WifiManager.WIFI_STATE_DISABLING -> "disabling"...