Common problems of Aidl cross process communication

I will summarize the problems I encountered in learning AIDL today.
q.1 in the created entity class Book is in creating the Book. The aidl is wrong “Interface name must be unique”?
the solution: 1.
method to remove entity class, you first create the Book. The aidl file for creating entity class Book. The method of Java
2. When you have created an.aidl file, change the file name to Book
.
solution: this error is. Aidl document compilation errors, entity class must be serialized, implementing an interface Parceable, in a file. An aidl it needs to be referenced in the introduction file package name, even in the same package must also import
3. Run times wrong collapse Java. Lang. SecurityException: Binder invocation to the an incorrect interface?
the solution: storage is due to two projects. Aidl files do not match the package name, need to be unified, entity class must also be unified.
>
>
>
>
>
>
>

Read More: