如何在SystemUI中添加AIDL文件?

时间:2019-07-16 09:25:20

标签: android

为了与其他应用程序通信,我想添加一个AIDL文件(ITest.aidl),就像Google创建的文件“ IRecentsNonSystemUserCallbacks.aidl”一样,但是我不能使用ITest .stub,它给了我错误: ERROR: /home/cuixc/AOSP-ts/LINUX/android/frameworks/base/packages/SystemUI/src/com/android/systemui/overview/service/AIDLService.java:25.45: ITest cannot be resolved to a type ERROR: /home/cuixc/AOSP-ts/LINUX/android/frameworks/base/packages/SystemUI/src/com/android/systemui/overview/service/AIDLService.java:28.21: The method test() of type new Stub(){} must override or implement a supertype method [ 94% 177/187] Building with Jack: out/target/common/obj/APPS/SystemUI_intermediates/with-local/classes.dex ninja: build stopped: subcommand failed. 17:16:18 ninja failed with: exit status 1

无论如何,SystemUI都是在目录(out / target / common / obj / APPS / SystemUI_intermediates)中自动生成的。 这有多怪异,有人会怪异这个问题吗? 非常感谢有人可以帮助我。

0 个答案:

没有答案