编译安卓4.0.1的make错误

问题遇到的现象和发生背景

unubun22.04环境,安装了JDK6,编译安卓4.0.1出现make错误

用代码块功能插入代码,请勿粘贴截图
lunc
make -j
运行结果及报错内容
frameworks/base/tools/aapt/SourcePos.h:16:5: note: because ‘SourcePos’ has user-provided ‘SourcePos::SourcePos(const SourcePos&)’
   16 |     SourcePos(const SourcePos& that);
      |     ^~~~~~~~~
In file included from frameworks/base/tools/aapt/Images.h:10,
                 from frameworks/base/tools/aapt/CacheUpdater.h:14,
                 from frameworks/base/tools/aapt/CrunchCache.cpp:13:
frameworks/base/tools/aapt/ResourceTable.h: In member function ‘ResourceTable::Public& ResourceTable::Public::operator=(const ResourceTable::Public&)’:
frameworks/base/tools/aapt/ResourceTable.h:410:27: warning: implicitly-declared ‘SourcePos& SourcePos::operator=(const SourcePos&)’ is deprecated [-Wdeprecated-copy]
  410 |             sourcePos = o.sourcePos;
      |                           ^~~~~~~~~
In file included from frameworks/base/tools/aapt/AaptAssets.h:21,
                 from frameworks/base/tools/aapt/Main.h:14,
                 from frameworks/base/tools/aapt/StringPool.h:10,
                 from frameworks/base/tools/aapt/ResourceTable.h:10,
                 from frameworks/base/tools/aapt/Images.h:10,
                 from frameworks/base/tools/aapt/CacheUpdater.h:14,
                 from frameworks/base/tools/aapt/CrunchCache.cpp:13:
frameworks/base/tools/aapt/SourcePos.h:16:5: note: because ‘SourcePos’ has user-provided ‘SourcePos::SourcePos(const SourcePos&)’
   16 |     SourcePos(const SourcePos& that);
      |     ^~~~~~~~~
In file included from frameworks/base/tools/aapt/FileFinder.h:14,
                 from frameworks/base/tools/aapt/CrunchCache.cpp:12:
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android::DefaultKeyedVector::valueFor(const KEY&) const [with KEY = android::String8; VALUE = android::sp]’:
frameworks/base/tools/aapt/AaptAssets.h:446:54:   required from here
frameworks/base/include/utils/KeyedVector.h:193:27: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
  193 |     ssize_t i = indexOfKey(key);
      |                 ~~~~~~~~~~^~~~~
frameworks/base/include/utils/KeyedVector.h:193:27: note: declarations in dependent base ‘android::KeyedVector >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:27: note: use ‘this->indexOfKey’ instead
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android::DefaultKeyedVector::valueFor(const KEY&) const [with KEY = android::String16; VALUE = unsigned int]’:
frameworks/base/tools/aapt/ResourceTable.h:485:98:   required from here
frameworks/base/include/utils/KeyedVector.h:193:27: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
frameworks/base/include/utils/KeyedVector.h:193:27: note: declarations in dependent base ‘android::KeyedVectorint>’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:27: note: use ‘this->indexOfKey’ instead
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android::DefaultKeyedVector::valueFor(const KEY&) const [with KEY = android::String8; VALUE = long int]’:
frameworks/base/tools/aapt/CrunchCache.cpp:101:46:   required from here
frameworks/base/include/utils/KeyedVector.h:193:27: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
frameworks/base/include/utils/KeyedVector.h:193:27: note: declarations in dependent base ‘android::KeyedVectorlong int>’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:27: note: use ‘this->indexOfKey’ instead
make: *** [build/core/binary.mk:347:out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/CrunchCache.o] 错误 1

请问这是什么问题亚?怎么解决?谢谢各位.