[問題] android studio JNI log 問題
開發環境 W7, android studio 1.1.0
最近剛換成android studio開發
發現無法使用在 jni 使用 android log
.mk 已經加入 -llog
include <android/log.h>
#define LOG_TAG "test"
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__)
錯誤訊息如下:
undefined reference to '__android_log_print'
請問有人遇過同樣的問題嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 60.250.144.148
※ 文章網址: https://www.ptt.cc/bbs/AndroidDev/M.1427614191.A.055.html
※ 編輯: lalaboom (60.250.144.148), 03/29/2015 15:30:11
→
03/30 07:45, , 1F
03/30 07:45, 1F
→
03/30 22:03, , 2F
03/30 22:03, 2F