编译Android4.0.4常见错误 indexOfKey was not declared
来源:互联网 发布:北大网络教育怎么样 编辑:程序博客网 时间:2024/05/15 02:45
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptSymbols> >’ are not found by unqualified lookupframeworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ insteadframeworks/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]’:frameworks/base/tools/aapt/ResourceTable.h:485:100: required from hereframeworks/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]frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String16, unsigned int>’ are not found by unqualified lookupframeworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
Fix:
vi frameworks/base/libs/utils/Android.mk
Add '-fpermissive' to line 60:
LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS) -fpermissive
vi frameworks/base/tools/aapt/Android.mk
Add '-fpermissive' to line 31:
LOCAL_CFLAGS += -Wno-format-y2k -fpermissive
两个都要
0 0
- 编译Android4.0.4常见错误 indexOfKey was not declared
- Android4.0.4编译问题‘SetState’ was not declared in this scope
- [编译错误]:exit was not declared in this scope
- BOOST ThreadPool 编译错误"TIME_UTC was not declared in this scope"
- android NDK编译ffmpeg错误 'UINT64_C' was not declared in this scope的解决
- ndk编译错误:error: 'nullptr' was not declared in this scope
- BOOST ThreadPool 编译错误"TIME_UTC was not declared in this scope"
- 使用BOOST库 多线程ThreadPool 编译错误"TIME_UTC was not declared in this scope"
- 编译Android4.0.4常见的错误解决办法
- 'dlcose' was not declared
- 'noinline' was not declared
- Coreseek 编译报错 “ExprEval” was not declared 解决方法
- ardupilot编译出错:'__builtin_bswap16' was not declared in this scope
- C++错误“exit was not declared in this scope”
- C++ - 错误: " 'strdup' was not declared in this scope "
- C++ 报'vector' was not declared in this scope错误
- C++ - "'itoa' was not declared in this scope" 错误
- 错误:count was not declared in this scope
- 如何用github进行项目托管
- JAVA类型转换
- 牛津大学公布自动驾驶研究成果,开放一千公里RobotCar数据集
- 神经网络入门
- IOS中输入框被软键盘遮挡的解决办法
- 编译Android4.0.4常见错误 indexOfKey was not declared
- RTMPDump源码分析-主要函数调用(0)
- Android视图状态及重绘流程分析,带你一步步深入了解View(三)
- oracle执行计划
- Android设置全屏
- 读书偶得
- nginx下载文件超时
- 关于kettle的空字符串和NULL的问题
- http协议中:GET/POST/PUT/DELETE/INPUT/TRACE/OPTIONS/HEAD方法