undefined reference to `__android_log_print'

前端 未结 15 2100
不知归路
不知归路 2020-12-02 09:26

What is wrong with my make file?

Android.mk

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE    := foo
LOCAL_SRC_FILES := foo.c
LOCAL         


        
15条回答
  •  孤街浪徒
    2020-12-02 10:07

    For Android Studio 2.2 and tools.build:gradle:2.2.0 using CMake add or edit row in CMakeLists.txt:

    target_link_libraries( 
                          android 
                          log)
    

    Thats connecting log library to yours.

提交回复
热议问题