android-studio 找不到在课堂上使用的 aidl 接口 [英] android-studio can't find an aidl interface for use in class

查看:37
本文介绍了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!

推荐答案

就我而言,CleanRebuild 项目解决了我的问题.

In my case Clean and Rebuild project solved my problem.

这篇关于android-studio 找不到在课堂上使用的 aidl 接口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆