Recently App made with MIT App Inventor started showing a runtime error while doing operations related to Bluetooth connection. MIT shows errors like this, and the app crashes after that.
Need android.permission.BLUETOOTH_CONNECT permission for android.content.AttributionSource@31b7fb58: AdapterService getBondedState
Solution
In order to solve the runtime error problem, you need to ask for Bluetooth permission when initializing the screens. Here is the block for doing the same. Rebuild the app after adding these blocks and enjoy building more apps.