I have an AIDL file that is implemented in a package in ProjectA, and I'm trying to import the Parcelable (Foo) class from another package into ProjectB. The following is a way to implement the MyService.AIDL file:
package com.packageA.projectA
import com.packageB.projectB.Foo
interface MyService{
void getSomething(Foo foo);
}
However, I get this compilation error "Could not find import for class com.example.projectB.Foo". If I copied packageB to packageA, then I will not get a compilation error.
Is there a way to import a batch class from a package in another project? I know that there are several questions about stackoverflow and other places (e.g. google group) about importing parcelable within the same project, but none of the different projects. Thank you for your time.