我尝试将aidl文件编译为java文件,以便我可以在eclipse中导入它们来纠正丑陋的红色警告。 我成功编译了一个aidl文件。但是当我批量编译它们时出了点问题。
boob@boob-virtual-machine:~/Workspace/jb-4.2/frameworks/base/core/java/android/os$ find -name 'I*.aidl' -exec aidl -I/home/boob/Workspace/jb-4.2/frameworks/base/core/java/ '{}' \;
./IVibratorService.aidl:20 interface IVibratorService should be declared in a file called android/os/IVibratorService.aidl.
为什么?