在Android Studio 中build.gradle(Module:app) 如果compileSdkVersion >=26,进行findViewById操作会报 Casting 'findViewById(R.id.X)' to 'X' is redundant This inspection reports unnecessary cast expressions.
大意为findViewById前的强制类型转换是多余的。
mRvMsg = (RecyclerView)findViewById(R.id.rv_msg);
mEtPort = (EditText)