[Android] [Error] AIDL and “couldn’t find import” when you are building the Android source
When you catch this error message, you have to check the “build/core/pathmap.mk” file.
In the file, it defines the FRAMEWORKS_BASE_SUBDIRS variable for Android.mk which is located at “framework/base/”. This defined variable is used to tell the system where the definitions and implementations are for AIDL interfaces when you are building the Android.
The reason for this error message is you try to import a class that you don’t tell system where the definitions are located.
Solve this problem, you just need to insert the location where the AIDL are added into FRAMEWORKS_BASE_SUBDIRS in “build/core/pathmap.mk”.
Here is the key part of pathmap.mk from Android-x86 project,
FRAMEWORKS_BASE_SUBDIRS :=
$(addsuffix /java,
core
graphics
location
media
opengl
sax
telephony
ethernet
wifi
vpn
keystore
)
發佈留言
很抱歉,必須登入網站才能發佈留言。