Why isn’t this variable being detected? Android Studio Kotlin
In the code below, “takePermission” and “bluetoothAdapter” aren’t being recognized. I’ve been following along to this tutorial which seems slightly outdated, but his variables are recognized with no issue.
NoSuchMethodException: BluetoothAdapter on release builds
My application is crashing out with the error Caused by: java.lang.NoSuchMethodException: f4.b.<init> [class android.bluetooth.BluetoothAdapter]
when I run it in release mode. The app works fine if run in debug mode, or even release mode when installed via Android Studio. The problem is exclusively when running a release build which has been installed via our MDM solution. The stack trace doesn’t appear to me to be particularly helpful: