Symbol 'ANDROID_LOG_DEBUG' could not be resolved
2014-03-03 15:41
417 查看
调试JNI代码的时候,加入了调试函数
#include<android/log.h>
#define TAG "DemoJNI" // 这个是自定义的LOG的标识
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,TAG ,__VA_ARGS__) // 定义LOGD类型
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO,TAG ,__VA_ARGS__) // 定义LOGI类型
#define LOGW(...) __android_log_print(ANDROID_LOG_WARN,TAG ,__VA_ARGS__) // 定义LOGW类型
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR,TAG ,__VA_ARGS__) // 定义LOGE类型
#define LOGF(...) __android_log_print(ANDROID_LOG_FATAL,TAG ,__VA_ARGS__) // 定义LOGF类型
但是使用的时候,总是提示Symbol 'ANDROID_LOG_DEBUG' could not be resolved
最后google得到的结果是重装eclipse或者勾掉
Properties --> C/C++ General --> Code Analysis --> Configure Workspace Settings--> "Symbol is not resolved"
也有人说
重新加载一下:
Project Properties -> C/C++ general -> Path and symbols -> the include directories are for both : c and
cpp.
我的做法是直接下载了google的ATD Bundle,运行一次就ok,然后返回到自己的eclipse,也没有再出现这样的问题了.真是奇怪的问题.
#include<android/log.h>
#define TAG "DemoJNI" // 这个是自定义的LOG的标识
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,TAG ,__VA_ARGS__) // 定义LOGD类型
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO,TAG ,__VA_ARGS__) // 定义LOGI类型
#define LOGW(...) __android_log_print(ANDROID_LOG_WARN,TAG ,__VA_ARGS__) // 定义LOGW类型
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR,TAG ,__VA_ARGS__) // 定义LOGE类型
#define LOGF(...) __android_log_print(ANDROID_LOG_FATAL,TAG ,__VA_ARGS__) // 定义LOGF类型
但是使用的时候,总是提示Symbol 'ANDROID_LOG_DEBUG' could not be resolved
最后google得到的结果是重装eclipse或者勾掉
Properties --> C/C++ General --> Code Analysis --> Configure Workspace Settings--> "Symbol is not resolved"
也有人说
重新加载一下:
Project Properties -> C/C++ general -> Path and symbols -> the include directories are for both : c and
cpp.
我的做法是直接下载了google的ATD Bundle,运行一次就ok,然后返回到自己的eclipse,也没有再出现这样的问题了.真是奇怪的问题.
相关文章推荐
- Symbol 'ANDROID_LOG_DEBUG' could not be resolved
- Symbol 'ANDROID_LOG_DEBUG' could not be resolved
- Symbol 'ANDROID_LOG_DEBUG' could not be resolved
- Android:Symbol 'ANDROID_LOG_DEBUG' could not be resolved
- Eclipse错误提示: Symbol 'xxxx' could not be resolved
- 解决Eclipse中C++代码显示Symbol 'std' could not be resolved的问题
- Type 'AndroidBitmapInfo' could not be resolved
- jni Symbol 'vector' could not be resolved
- 【android】NDK开发编译C++文件出现Type 'jint' could not be resolved和Unresolved inclusion: <jni.h>的解决办法
- 【android】解决NDK开发中的 Method 'NewStringUTF' could not be resolved
- adt-bundle-mac Symbol 'vector' could not be resolved 处理
- Symbol 'cv' could not be resolved
- Eclipse: symbol '???' could not be resolved [duplicate]
- Symbol &#39;stderr&#39; could not be resolved
- 解决Eclipse中C++代码显示Symbol 'std' could not be resolved的问题
- 编译jni时遇到错误提示:Symbol 'ANDROID_LOG_INFO' could not be resolved
- NDK :Type 'xxx' could not be resolved解决
- A definition for the symbol '<symbolName>' could not be located
- A definition for the symbol '' could not be located (vs2010)
- Function 'UINT64_C' could not be resolved