This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Andriod ics 4.0 compilation issue

 Dear all,

I am getting follwoing error while compiling Andriod ics on my local pc. can anyone suggest me how to fix this issue.

  1. DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String16                                                                              ; VALUE = unsigned int]â:

  2. frameworks/base/tools/aapt/ResourceTable.h:485:100:   required from here

  3. frameworks/base/include/utils/KeyedVector.h:193:31: error: âindexOfKeyâ was not declared                                                                               in this scope, and no declarations were found by argument-dependent lookup at the point                                                                               of instantiation [-fpermissive]

  4. frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base                                                                               âandroid::KeyedVector<android::String16, unsigned int>â are not found by unqualified lo                                                                              okup

  5. frameworks/base/include/utils/KeyedVector.h:193:31: note: use âthis->indexOfKeyâ instead

  6. In file included from frameworks/base/include/utils/AssetManager.h:25:0,

  7.                  from frameworks/base/tools/aapt/AaptAssets.h:10,

  8.                  from frameworks/base/tools/aapt/Main.h:14,

  9.                  from frameworks/base/tools/aapt/Main.cpp:6:

  10. frameworks/base/include/utils/KeyedVector.h: In instantiation of âconst VALUE& android::                                                                              DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8;                                                                               VALUE = android::sp<AaptSymbols>]â:

  11. frameworks/base/tools/aapt/AaptAssets.h:446:59:   required from here

  12. frameworks/base/include/utils/KeyedVector.h:193:31: error: âindexOfKeyâ was not declared                                                                               in this scope, and no declarations were found by argument-dependent lookup at the point                                                                               of instantiation [-fpermissive]

  13. frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base                                                                               âandroid::KeyedVector<android::String8, android::sp<AaptSymbols> >â are not found by un                                                                              qualified lookup

  14. frameworks/base/include/utils/KeyedVector.h:193:31: note: use âthis->indexOfKeyâ instead

  15. make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/CrunchCache.o] Error 1

  16. In file included from frameworks/base/include/utils/AssetManager.h:25:0,

  17.                  from frameworks/base/tools/aapt/AaptAssets.h:10,

  18.                  from frameworks/base/tools/aapt/ResourceFilter.h:10,

  19.                  from frameworks/base/tools/aapt/ResourceFilter.cpp:7:

  20. frameworks/base/include/utils/KeyedVector.h: In instantiation of âconst VALUE& android::                                                                              DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8;                                                                               VALUE = android::sp<AaptSymbols>]â:

  21. frameworks/base/tools/aapt/AaptAssets.h:446:59:   required from here

  22. frameworks/base/include/utils/KeyedVector.h:193:31: error: âindexOfKeyâ was not declared                                                                               in this scope, and no declarations were found by argument-dependent lookup at the point                                                                               of instantiation [-fpermissive]make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_inter                                                                              mediates/Main.o] Error 1

  23.  

  24. frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base                                                                               âandroid::KeyedVector<android::String8, android::sp<AaptSymbols> >â are not found by un                                                                              qualified lookup

  25. frameworks/base/include/utils/KeyedVector.h:193:31: note: use âthis->indexOfKeyâ instead

  26. In file included from frameworks/base/include/utils/AssetManager.h:25:0,

  27.                  from frameworks/base/tools/aapt/AaptAssets.h:10,

  28.                  from frameworks/base/tools/aapt/Main.h:14,

  29.                  from frameworks/base/tools/aapt/StringPool.h:10,

  30.                  from frameworks/base/tools/aapt/StringPool.cpp:7:

  31. frameworks/base/include/utils/KeyedVector.h: In instantiation of âconst VALUE& android::                                                                              DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8;                                                                               VALUE = android::sp<AaptSymbols>]â:

  32. frameworks/base/tools/aapt/AaptAssets.h:446:59:   required from here

  33. frameworks/base/include/utils/KeyedVector.h:193:31: error: âindexOfKeyâ was not declared                                                                               in this scope, and no declarations were found by argument-dependent lookup at the point                                                                               of instantiation [-fpermissive]

  34. frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base                                                                               âandroid::KeyedVector<android::String8, android::sp<AaptSymbols> >â are not found by un                                                                              qualified lookup

  35. frameworks/base/include/utils/KeyedVector.h:193:31: note: use âthis->indexOfKeyâ instead

  36. frameworks/base/include/utils/KeyedVector.h: In instantiation of âconst VALUE& android::                                                                              DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String16                                                                              ; VALUE = int]â:

  37. frameworks/base/tools/aapt/StringPool.cpp:68:45:   required from here

  38. frameworks/base/include/utils/KeyedVector.h:193:31: error: âindexOfKeyâ was not declared                                                                               in this scope, and no declarations were found by argument-dependent lookup at the point                                                                               of instantiation [-fpermissive]

  39. frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base                                                                               âandroid::KeyedVector<android::String16, int>â are not found by unqualified lookup

  40. frameworks/base/include/utils/KeyedVector.h:193:31: note: use âthis->indexOfKeyâ instead

  41. make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/Command.o] Error 1

  42. make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/ResourceFilter.o] Error                                                                               1

  43. make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/StringPool.o] Error 1

  44. In file included from frameworks/base/include/utils/AssetManager.h:25:0,

  45.                  from frameworks/base/tools/aapt/AaptAssets.h:10,

  46.                  from frameworks/base/tools/aapt/Main.h:14,

  47.                  from frameworks/base/tools/aapt/Package.cpp:6:

  48. frameworks/base/include/utils/KeyedVector.h: In instantiation of âconst VALUE& android::                                                                              DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8;                                                                               VALUE = android::sp<AaptSymbols>]â:

  49. frameworks/base/tools/aapt/AaptAssets.h:446:59:   required from here

  50. frameworks/base/include/utils/KeyedVector.h:193:31: error: âindexOfKeyâ was not declared                                                                               in this scope, and no declarations were found by argument-dependent lookup at the point                                                                               of instantiation [-fpermissive]

  51. frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base                                                                               âandroid::KeyedVector<android::String8, android::sp<AaptSymbols> >â are not found by un                                                                              qualified lookup

  52. frameworks/base/include/utils/KeyedVector.h:193:31: note: use âthis->indexOfKeyâ instead

  53. Note: external/protobuf/java/src/main/java/com/google/protobuf/GeneratedMessageLite.java                                                                               uses unchecked or unsafe operations.

  54. Note: Recompile with -Xlint:unchecked for details.

  55. frameworks/base/include/utils/KeyedVector.h: In instantiation of âconst VALUE& android::                                                                              DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String16                                                                              ; VALUE = unsigned int]â:

  56. frameworks/base/tools/aapt/ResourceTable.h:485:100:   required from here

  57. frameworks/base/include/utils/KeyedVector.h:193:31: error: âindexOfKeyâ was not declared                                                                               in this scope, and no declarations were found by argument-dependent lookup at the point                                                                               of instantiation [-fpermissive]

  58. frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base                                                                               âandroid::KeyedVector<android::String16, unsigned int>â are not found by unqualified lo                                                                              okup

  59. frameworks/base/include/utils/KeyedVector.h:193:31: note: use âthis->indexOfKeyâ instead

  60. In file included from frameworks/base/include/utils/AssetManager.h:25:0,

  61.                  from frameworks/base/tools/aapt/AaptAssets.h:10,

  62.                  from frameworks/base/tools/aapt/Main.h:14,

  63.                  from frameworks/base/tools/aapt/StringPool.h:10,

  64.                  from frameworks/base/tools/aapt/XMLNode.h:10,

  65.                  from frameworks/base/tools/aapt/XMLNode.cpp:7:

  66. frameworks/base/include/utils/KeyedVector.h: In instantiation of âconst VALUE& android::                                                                              DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8;                                                                               VALUE = android::sp<AaptSymbols>]â:

  67. frameworks/base/tools/aapt/AaptAssets.h:446:59:   required from here

  68. frameworks/base/include/utils/KeyedVector.h:193:31: error: âindexOfKeyâ was not declared                                                                               in this scope, and no declarations were found by argument-dependent lookup at the point                                                                               of instantiation [-fpermissive]

  69. frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base                                                                               âandroid::KeyedVector<android::String8, android::sp<AaptSymbols> >â are not found by un                                                                              qualified lookup

  70. frameworks/base/include/utils/KeyedVector.h:193:31: note: use âthis->indexOfKeyâ instead

  71. frameworks/base/include/utils/KeyedVector.h: In instantiation of âconst VALUE& android::                                                                              DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String16                                                                              ; VALUE = unsigned int]â:

  72. frameworks/base/tools/aapt/ResourceTable.h:485:100:   required from here

  73. frameworks/base/include/utils/KeyedVector.h:193:31: error: âindexOfKeyâ was not declared                                                                               in this scope, and no declarations were found by argument-dependent lookup at the point                                                                               of instantiation [-fpermissive]

  74. frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base                                                                               âandroid::KeyedVector<android::String16, unsigned int>â are not found by unqualified lo                                                                              okup

  75. frameworks/base/include/utils/KeyedVector.h:193:31: note: use âthis->indexOfKeyâ instead

  76. make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/Package.o] Error 1

  77. In file included from frameworks/base/include/utils/AssetManager.h:25:0,

  78.                  from frameworks/base/tools/aapt/AaptAssets.h:10,

  79.                  from frameworks/base/tools/aapt/Main.h:14,

  80.                  from frameworks/base/tools/aapt/StringPool.h:10,

  81.                  from frameworks/base/tools/aapt/ResourceTable.h:10,

  82.                  from frameworks/base/tools/aapt/ResourceTable.cpp:7:

  83. frameworks/base/include/utils/KeyedVector.h: In instantiation of âconst VALUE& android::                                                                              DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8;                                                                               VALUE = android::sp<AaptSymbols>]â:

  84. frameworks/base/tools/aapt/AaptAssets.h:446:59:   required from here

  85. frameworks/base/include/utils/KeyedVector.h:193:31: error: âindexOfKeyâ was not declared                                                                               in this scope, and no declarations were found by argument-dependent lookup at the point                                                                               of instantiation [-fpermissive]

  86. frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base                                                                               âandroid::KeyedVector<android::String8, android::sp<AaptSymbols> >â are not found by un                                                                              qualified lookup

  87. frameworks/base/include/utils/KeyedVector.h:193:31: note: use âthis->indexOfKeyâ instead

  88. frameworks/base/include/utils/KeyedVector.h: In instantiation of âconst VALUE& android::                                                                              DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String16                                                                              ; VALUE = unsigned int]â:

  89. frameworks/base/tools/aapt/ResourceTable.h:485:100:   required from here

  90. frameworks/base/include/utils/KeyedVector.h:193:31: error: âindexOfKeyâ was not declared                                                                               in this scope, and no declarations were found by argument-dependent lookup at the point                                                                               of instantiation [-fpermissive]

  91. frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base                                                                               âandroid::KeyedVector<android::String16, unsigned int>â are not found by unqualified lo                                                                              okup

  92. frameworks/base/include/utils/KeyedVector.h:193:31: note: use âthis->indexOfKeyâ instead

  93. frameworks/base/include/utils/KeyedVector.h: In instantiation of âconst VALUE& android::                                                                              DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String16                                                                              ; VALUE = android::sp<ResourceTable::Package>]â:

  94. frameworks/base/tools/aapt/ResourceTable.cpp:1722:51:   required from here

  95. frameworks/base/include/utils/KeyedVector.h:193:31: error: âindexOfKeyâ was not declared                                                                               in this scope, and no declarations were found by argument-dependent lookup at the point                                                                               of instantiation [-fpermissive]

  96. frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base                                                                               âandroid::KeyedVector<android::String16, android::sp<ResourceTable::Package> >â are not                                                                               found by unqualified lookup

  97. frameworks/base/include/utils/KeyedVector.h:193:31: note: use âthis->indexOfKeyâ instead

  98. frameworks/base/include/utils/KeyedVector.h: In instantiation of âconst VALUE& android::                                                                              DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String16                                                                              ; VALUE = android::sp<ResourceTable::Type>]â:

  99. frameworks/base/tools/aapt/ResourceTable.cpp:1724:53:   required from here

  100. frameworks/base/include/utils/KeyedVector.h:193:31: error: âindexOfKeyâ was not declared                                                                               in this scope, and no declarations were found by argument-dependent lookup at the point                                                                               of instantiation [-fpermissive]

  101. frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base                                                                               âandroid::KeyedVector<android::String16, android::sp<ResourceTable::Type> >â are not fo                                                                              und by unqualified lookup

  102. frameworks/base/include/utils/KeyedVector.h:193:31: note: use âthis->indexOfKeyâ instead

  103. frameworks/base/include/utils/KeyedVector.h: In instantiation of âconst VALUE& android::                                                                              DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String16                                                                              ; VALUE = android::sp<ResourceTable::ConfigList>]â:

  104. frameworks/base/tools/aapt/ResourceTable.cpp:1819:62:   required from here

  105. frameworks/base/include/utils/KeyedVector.h:193:31: error: âindexOfKeyâ was not declared                                                                               in this scope, and no declarations were found by argument-dependent lookup at the point                                                                               of instantiation [-fpermissive]

  106. frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base                                                                               âandroid::KeyedVector<android::String16, android::sp<ResourceTable::ConfigList> >â are                                                                               not found by unqualified lookup

  107. frameworks/base/include/utils/KeyedVector.h:193:31: note: use âthis->indexOfKeyâ instead

  108. frameworks/base/include/utils/KeyedVector.h: In instantiation of âconst VALUE& android::                                                                              DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = ResourceTable::Co                                                                              nfigDescription; VALUE = android::sp<ResourceTable::Entry>]â:

  109. frameworks/base/tools/aapt/ResourceTable.cpp:1847:62:   required from here

  110. frameworks/base/include/utils/KeyedVector.h:193:31: error: âindexOfKeyâ was not declared                                                                               in this scope, and no declarations were found by argument-dependent lookup at the point                                                                               of instantiation [-fpermissive]

  111. frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base                                                                               âandroid::KeyedVector<ResourceTable::ConfigDescription, android::sp<ResourceTable::Entr                                                                              y> >â are not found by unqualified lookup

  112. frameworks/base/include/utils/KeyedVector.h:193:31: note: use âthis->indexOfKeyâ instead

  113. make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/XMLNode.o] Error 1

  114. make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/ResourceTable.o] Error                                                                               1

  115. Note: Some input files use unchecked or unsafe operations.

  116. Note: Recompile with -Xlint:unchecked for details.

  117. regards,

  118. sreedhar