android 6.0 沒法獲取READ_PHONE_STATE解決

1.首先要確認你的代碼是否正確web 代碼以下: TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); String deviceId = tm.getDeviceId(); 2.若是確認代碼沒問題,檢查你app的gradle裏的targetSdkVersion,是
相關文章
相關標籤/搜索