我正在创建一个AIDL接口,它使用来自 android库的对象类型,该库是不同项目的一部分.我可以导入并使用我的服务中的类型,但我无法在我的AIDL界面中导入它. package com.mysite.service;import com.
          package com.mysite.service;
import com.othersite.library.MyObject;
interface IMyService {
    int getPid();
    void basicTypes(int anInt, long aLong, boolean aBoolean, float aFloat,
        double aDouble, String aString);
    MyObject getObjects();
} 
 错误是:
couldn’t find import for class com.othersite.library.MyObject
You must create a separate .aidl file for each class you wish to use
within your service that declares that class as parcelable.
有关于此问题的博客文章here.
