[Android Q&A, Help & Troubleshooting] ocarinaz64:
I'm still getting the same problem again and again. And I have no idea how to fix it. Could somebody help please? I get the following output when building:

target thumb C++: libui <= frameworks/native/libs/ui/GraphicBuffer.cpp
frameworks/native/libs/ui/GraphicBuffer.cpp: In constructor 'android::GraphicBuffer::GraphicBuffer()':
frameworks/native/libs/ui/GraphicBuffer.cpp:39:33: error: class 'android::GraphicBuffer' does not have any field named 'mIndex'
frameworks/native/libs/ui/GraphicBuffer.cpp: In constructor 'android::GraphicBuffer::GraphicBuffer(uint32_t, uint32_t, android::PixelFormat, uint32_t)':
frameworks/native/libs/ui/GraphicBuffer.cpp:52:33: error: class 'android::GraphicBuffer' does not have any field named 'mIndex'
frameworks/native/libs/ui/GraphicBuffer.cpp: In constructor 'android::GraphicBuffer::GraphicBuffer(uint32_t, uint32_t, android::PixelFormat, uint32_t, uint32_t, native_handle_t*, bool)':
frameworks/native/libs/ui/GraphicBuffer.cpp:68:33: error: class 'android::GraphicBuffer' does not have any field named 'mIndex'
frameworks/native/libs/ui/GraphicBuffer.cpp: In constructor 'android::GraphicBuffer::GraphicBuffer(ANativeWindowBuffer*, bool)':
frameworks/native/libs/ui/GraphicBuffer.cpp:81:33: error: class 'android::GraphicBuffer' does not have any field named 'mIndex'
frameworks/native/libs/ui/GraphicBuffer.cpp: In member function 'android::status_t android::GraphicBuffer::reallocate(uint32_t, uint32_t, android::PixelFormat, uint32_t)':
frameworks/native/libs/ui/GraphicBuffer.cpp:132:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
frameworks/native/libs/ui/GraphicBuffer.cpp:132:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
frameworks/native/libs/ui/GraphicBuffer.cpp:132:71: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
frameworks/native/libs/ui/GraphicBuffer.cpp: At global scope:
frameworks/native/libs/ui/GraphicBuffer.cpp:212:14: error: prototype for 'android::status_t android::GraphicBuffer::flatten(void*, size_t, int*, size_t) const' does not match any in class 'android::GraphicBuffer'
In file included from frameworks/native/libs/ui/GraphicBuffer.cpp:26:0:
frameworks/native/include/ui/GraphicBuffer.h:116:14: error: candidate is: android::status_t android::GraphicBuffer::flatten(void*&, size_t&, int*&, size_t&) const
frameworks/native/libs/ui/GraphicBuffer.cpp:242:14: error: prototype for 'android::status_t android::GraphicBuffer::unflatten(const void*, size_t, int*, size_t)' does not match any in class 'android::GraphicBuffer'
In file included from frameworks/native/libs/ui/GraphicBuffer.cpp:26:0:
frameworks/native/include/ui/GraphicBuffer.h:117:14: error: candidate is: android::status_t android::GraphicBuffer::unflatten(const void*&, size_t&, const int*&, size_t&)
frameworks/native/libs/ui/GraphicBuffer.cpp:296:43: error: no 'void android::GraphicBuffer::setIndex(int)' member function declared in class 'android::GraphicBuffer'
frameworks/native/libs/ui/GraphicBuffer.cpp:300:35: error: no 'int android::GraphicBuffer::getIndex() const' member function declared in class 'android::GraphicBuffer'
make: *** [/home/michael/slimbean/out/target/product/jewel/obj/SHARED_LIBRARIES/libui_intermediates/GraphicBuffer.o] Error 1