android-studio 找不到在课堂上使用的 aidl 接口
问题描述:
我在 aidl 中定义了一个接口,但我无法扩展它或以任何方式找到它.ide 只是告诉我:无法解析符号KeyEventListener"知道如何解决这个问题吗?
I have an interface defined in the aidl but I can't extend it or find it any way. The ide just tells me: Can not resolve symbol 'KeyEventListener' Any idea how to fix this?
附加信息:
- KeyEventListener 是 KeyEventListener.aidl 中定义的接口名称
- KeyEventListenerImpl 是扩展接口 Stub 的类
- KeyEventListener 只包含一个名为void doIt();"的方法并且格式正确;
我知道 android-studio 有点像 pre-alfa,但非常喜欢它,如果有人能帮我解决这个问题,我会很高兴!
I know android-studio is some thing like a pre-alfa but like it very much and would be very happy if some one could halp me out on this!
答
就我而言,Clean
和 Rebuild
项目解决了我的问题.
In my case Clean
and Rebuild
project solved my problem.