Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android-studio can't find an aidl interface for use in class

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?

Additional infos:

  • KeyEventListener is the name of the interface defined in KeyEventListener.aidl
  • KeyEventListenerImpl is the class which extends the interface Stub
  • KeyEventListener just contains one method named 'void doIt();' and is well formatted;

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!

enter image description here

like image 973
aichingm Avatar asked May 16 '13 19:05

aichingm


People also ask

Where is AIDL used in Android?

AIDL can be used between any process in Android: between platform components or between apps. However, it is never used as an API for apps. AIDL may be used to implement an SDK API in the platform, for instance, but the SDK API surface never contains AIDL APIs directly.

What is AIDL interface?

If you are familiar with the concept of IPC, you consider AIDL as Android-IDL (Interface Definition Language). This method is known as AIDL because the interface where the applications/processes shake hands for the communication to be established is created in the AIDL language. AIDL is a language that has Java syntax.


1 Answers

In my case Clean and Rebuild project solved my problem.

like image 123
Naruto Uzumaki Avatar answered Oct 21 '22 17:10

Naruto Uzumaki