AOSP build error: unrecognized module type hidl_package_root
Android 10 uses older Android.bp
system that does not support some things newer AOSP version Android.bp
supports.
try building your Android.bp
with the latest AOSP once.
Erro: unrecognized module type android_app_import. when building AOSP 10 r20+
android_app_import
is not a type that is known to the Android build tooling. It is a custom extension from the LineageOS project.
How to correctly clean up a module and rebuild it in AOSP?
Cleaning of module:
cd $ANDROID_BUILD_TOP
make clean-module_name
art project have more than one target modules. You should use clean for them one by one.