cts测试的时候,出现cts.SmsManager.testSendMessages fail,内容如下:
java.lang.IllegalArgumentException: Invalid destinationAddress at
android.telephony.SmsManager.sendTextMessage(SmsManager.java:154)查看代码之后,发现SmsManager.java:154的代码是: if (TextUtils.isEmpty(destinationAddress)) {
throw new IllegalArgumentException("Invalid destinationAddress");
}也就是说,出错是因为sendTextMessage的参数destinationAddress是空的,所以才throw "Invalid destinationAddress"出来,天呐,这是怎么回事啊,要怎么解决呢?
谢谢啦!!
java.lang.IllegalArgumentException: Invalid destinationAddress at
android.telephony.SmsManager.sendTextMessage(SmsManager.java:154)查看代码之后,发现SmsManager.java:154的代码是: if (TextUtils.isEmpty(destinationAddress)) {
throw new IllegalArgumentException("Invalid destinationAddress");
}也就是说,出错是因为sendTextMessage的参数destinationAddress是空的,所以才throw "Invalid destinationAddress"出来,天呐,这是怎么回事啊,要怎么解决呢?
谢谢啦!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货