In android 11 , I want to use this "bitmap::toBitmap(bitmaphandle).getSkBitmap(&skBitmap);" function to get skBitman. but there was a packaging error

  android, android-11, c++, java-native-interface

The compilation passed,but Error packing into .so file.
ld.lld: error: undefined symbol: android::bitmap::toBitmap(long long)
How to solve this problem。
Here are some related codes。

SkBitmap skBitmap;
bitmap::toBitmap(page).getSkBitmap(&skBitmap);

android.mk

LOCAL_C_INCLUDES += 
$(JNI_H_INCLUDE) 
$(LOCAL_PATH) 
$(LOCAL_PATH)/../include 
frameworks/base/core/jni/android/graphics 
  frameworks/base/libs/androidfw/include
  frameworks/base/libs
  frameworks/base/libs/hwui 
  frameworks/base/libs/hwui/jni 
external/skia/include 
external/skia/include/core 
external/skia/include/images 
libnativehelper/include/nativehelper 
external/libchrome/base 
bionic 
external/stlport/stlport 
  $(LOCAL_PATH)/../hwreader/zlib/include 
$(LOCAL_PATH)/../hwreader/text/include 
$(LOCAL_PATH)/../hwreader/sqldb/include 
$(LOCAL_PATH)/../hwreader/parser/include 
$(LOCAL_PATH)/../hwreader/reader/include 

LOCAL_SHARED_LIBRARIES := 
libdl 
libutils 
libbase 
libskia  
libz 
libcrypto 
libexpat 
libsqlite 
libcutils 
libandroid_runtime 
liblog

LOCAL_STATIC_LIBRARIES :=
libreadercore
libparsercore
libdbcore
libtextcore
libzlibcore
libfribidi
liblinebreak
libhwdrm

Source: Windows Questions C++

LEAVE A COMMENT