在aidl的sdk文档中有这么一段话The client must also have access to the interface class, so if the client and service are in separate applications, then the client's application must have a copy of the .aidl file in its src/ directory (which generates the android.os.Binder interface—providing the client access to the AIDL methods).看来还是要在项目B中包含一份项目A所定义的aidl的copy啊求真相 我先按照这个方法试试看
我先按照这个方法试试看
LOCAL_SRC_FILES := $(call all-java-files-under, src) \
src/com/android/music/IMediaPlaybackService.aidl \
src/com/mediatek/bluetooth/avrcp/IBTAvrcpMusic.aidl \
src/com/mediatek/bluetooth/avrcp/IBTAvrcpMusicCallback.aidl