收藏
回答

android里调用微信支付报错

之前用的targetsdk是33,调用支付接口没有问题,但最近因为升级开发工具,将targetsdk改成了35. 调用支付接口报错:sendUsingPendingIntent fail, ex = com.one.aivoice: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.

Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.


回答关注问题邀请回答
收藏
登录 后发表内容