您好,我尝试在Android上实现IPayPayment,
val checkoutIntent = Ipay.getInstance().checkout(payment,applicationContext, ResultDelegate())
checkoutIntent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
startActivity(checkoutIntent)
但我有错误
libc: Access denied finding property "ro.serialno"
任何解决方案?
使用反射读取序列号时会引发错误。
需要Build.serial标识符的应用程序现在必须请求READ_PHONE_STATE权限,然后使用Android 9中添加的新Build.getSerial()方法。[Android链接此处| [https://developer.android.com/about/versions/pie/android-9.0-migration]]