Android高版本(targetSdkVersion >= 30)AIDL bindService失败问题

(一)解决办法

方案1:
        项目的 targetSdkVersion 版本修改到30以下。

方案2【推荐】:
        CLIENT项目端,如果targetSdkVersion >= 30,则在项目的manifest文件,添加<queries>这个标签:

(二) 更详细的说明请跳转:AIDL报错,bindService一直连接不上、不起作用。_马占柱的博客-CSDN博客_bindservice中bind_auto_create失效

猜你喜欢

转载自blog.csdn.net/lichun85/article/details/128611808