Home AIDL not finding inner classes
Reply: 0

AIDL not finding inner classes

user1659
1#
user1659 Published in April 26, 2018, 5:26 pm

Trying to compile AIDL files found in the Android repo along with my Android project to use some of the built-in interfaces.

However, whenever I get to an inner type, I get the following error:

ITuner.aidl

aidl E 01-12 17:32:41 59280 1006000 type_namespace.cpp:129] In file ./app/src/main/aidl/android/hardware/radio/ITuner.aidl line 32 parameter config (argument 1):
aidl E 01-12 17:32:41 59280 1006000 type_namespace.cpp:129]     unknown type
aidl E 01-12 17:32:41 59280 1006000 type_namespace.cpp:107] In file ./app/src/main/aidl/android/hardware/radio/ITuner.aidl line 34 return type RadioManager.BandConfig:
aidl E 01-12 17:32:41 59280 1006000 type_namespace.cpp:107]     unknown type
aidl E 01-12 17:32:41 59280 1006000 type_namespace.cpp:107] In file ./app/src/main/aidl/android/hardware/radio/ITuner.aidl line 66 return type RadioManager.ProgramInfo:
aidl E 01-12 17:32:41 59280 1006000 type_namespace.cpp:107]     unknown type
aidl E 01-12 17:32:41 59280 1006000 type_namespace.cpp:107] In file ./app/src/main/aidl/android/hardware/radio/ITuner.aidl line 83 return type List<RadioManager.ProgramInfo>:
aidl E 01-12 17:32:41 59280 1006000 type_namespace.cpp:107]     unknown type

This happens for all inner types. What am I doing wrong?

Other things:

  • I copied all of the AIDL files in my project in the correct directory structures
  • All of the AIDL files build except the ones with inner classes. Inner classes give unknown type errors.
  • I am using the AIDL executable in the API 27 platform directory.
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.327814 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO