no member named 'asInterface' in 'android::IGraphicBufferProducer'

Search This thread
Jan 23, 2022
1
0
Hello, I'm trying to build android 9/lineageos 16.0 and I'm encountering the following error:
Code:
frameworks/native/libs/binder/include/binder/IInterface.h:44:23: error: no member named 'asInterface' in 'android::IGraphicBufferProducer'
    return INTERFACE::asInterface(obj);
           ~~~~~~~~~~~^

Link to the full log: https://pastebin.com/2p3d5br1
Any help is appreciated.