当我遇到这段文字时,我正在乱搞MeasureSpec:
注意:在API级别17和更低级别,makeMeasureSpec的实现使得参数的顺序无关紧要,并且任何一个值的溢出都可能影响生成的MeasureSpec.RelativeLayout受此错误的影响.针对API级别大于17的应用将获得固定的,更严格的行为.
所以这让我想知道:如果我为API 14构建一个应用程序,但是我在API 22设备上运行它会修复错误还是<API 17的错误仍然存在于22设备上?
目前我正在测试使用蓝牙LE的应用.我已经让应用程序工作得很好问题是在Nexus 9上GATT连接会定期断开,看似没有理由我必须完全重启连接.这不会发生在我正在使用的其他设备上(LG G4).
在查看系统日志时,它会告诉我发生了什么,但我不知道如何解决它.
693-913/? W/BluetoothEventManager: CachedBluetoothDevice for device 00:20:62:00:12:03 not found, calling readPairedDevices().
693-913/? E/BluetoothEventManager: Got bonding state changed for 00:20:62:00:12:03, but we have no record of that device.
16562-16648/? W/bt_btif: bta_gattc_conn_cback() - cif=3 connected=0 conn_id=3 reason=0x0022
16562-16648/? W/bt_btif: bta_gattc_conn_cback() - cif=4 connected=0 conn_id=4 reason=0x0022
16562-16648/? W/bt_btif: bta_gattc_conn_cback() - cif=5 connected=0 conn_id=5 reason=0x0022
16562-16648/? I/bt_btm_sec: btm_sec_disconnected clearing pending flag handle:64 reason:34
16562-16648/? E/bt_btif: bta_gattc_mark_bg_conn unable to find the bg connection mask for: 00:20:62:00:12:03 //<-- the device address
16562-16626/? D/BtGatt.GattService: …Run Code Online (Sandbox Code Playgroud)