undefined reference to `__android_log_print'

前端 未结 15 2029
不知归路
不知归路 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:05

    In lieu with

    If using the new Gradle NDK integration in Android Studio 1.3, you need to add ldLibs = ["android", "log"] to your android.ndk options – Stephen Kaiser Sep 24 at 4:20

    use ldLibs.addAll(["android", "log"]) for the experimental plugin

提交回复
热议问题