Android high version (targetSdkVersion >= 30) AIDL bindService failure problem

(1) Solution

Option 1:
        Modify the project’s targetSdkVersion to below 30.

Solution 2 [Recommended]:
        On the CLIENT project side, if targetSdkVersion >= 30, add the <queries> tag to the manifest file of the project:

(2) For more detailed instructions, please jump to: AIDL reports an error, bindService cannot be connected and does not work. _Ma Zhanzhu's blog-CSDN blog_bind_auto_create fails in bindservice

 

 

Guess you like

Origin blog.csdn.net/lichun85/article/details/128611808