1. 检查settings中的Code Completion 取消对match case的选择 2. 关闭省电模式Power save code 3. 在Projects Structure中更改compile sdk和target sdk的版本,更改为31