Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dlopen failed: cannot locate symbol "__fwrite_chk" referenced by 错误 #24

Open
1940913858 opened this issue Dec 5, 2017 · 1 comment

Comments

@1940913858
Copy link

AndroidRuntime: java.lang.UnsatisfiedLinkError:
dlopen failed: cannot locate symbol "__fwrite_chk" referenced by "/data/app/com
.android.sign.appstore-1/lib/arm64/libApkPatchLibrary.so "...

如上,使用您的https://github.com/cundong/SmartAppUpdates
github上的库,编译成64位so,。mk如下,

include $(CLEAR_VARS)

LOCAL_MODULE := libApkPatchLibrary
LOCAL_SRC_FILES := com_cundong_utils_PatchUtils.c

APP_PLATFORM := android-16
LOCAL_LDLIBS := -lz -llog

include $(BUILD_SHARED_LIBRARY)

但是使用的时候会直接报错,log是最上方那个,求解答是否有碰到过

@xiaoluqiaoba
Copy link

我遇到的是因为手机没有给app开启读写sd卡的权限导致的,开启权限就好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants