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

插件中集成arcgis for android 100.8.0地图报错 #729

Closed
kunayo opened this issue Dec 28, 2021 · 2 comments · Fixed by #740
Closed

插件中集成arcgis for android 100.8.0地图报错 #729

kunayo opened this issue Dec 28, 2021 · 2 comments · Fixed by #740

Comments

@kunayo
Copy link

kunayo commented Dec 28, 2021

大佬你好,请教一下,在插件中测试集成了一下arcgis地图报如下错误:

微信图片_20211228181025

E/linker: library "/system/lib64/libc++_shared.so" ("/system/lib64/libc++_shared.so") needed or dlopened by "/apex/com.android.art/lib64/libnativeloader.so" is not accessible for the namespace: [name="classloader-namespace", ld_library_paths="", default_library_paths="/data/user/0/com.chinadci.host_app/files/ShadowPlugin_plugin-login/ShadowPluginManager/UnpackedPlugin/plugin-manager/lib/AF5C42A9-E7E5-450D-8041-11FD503A37CB_lib", permitted_paths="/data:/mnt/expand"]

@shifujun
Copy link
Collaborator

虽然看起来和#724 不像是一个问题。但确实有so解压失败的bug,可以先排除一下这个问题。先把 97b1d84 回滚掉。看看是不是插件的so没解压出来造成的。

然后如果不行,还是像#724 一样把复现的代码push上来。

@kunayo
Copy link
Author

kunayo commented Dec 29, 2021

谢谢大佬回答,我回滚之后,在插件的gradle里再添加了这个
微信图片_20211229141356

ndk {
abiFilters "armeabi-v7a"
}

就可以了,谢谢🌹

shifujun added a commit to shifujun/Shadow that referenced this issue Dec 31, 2021
根据ApplicationInfo.nativeLibraryDir后缀获得的其实是instructionSet,而不是ABI。

插件也不需要跟宿主采用完全一样的ABI,只需要保持32位或64位相同就可以了。

现根据instructionSet确定是否为64位,再匹配插件中包含的ABI,按Build.CPU_ABI等字段优先级决定。

允许override getPluginPreferredAbi方法,以应对没有考虑到的情况。

fix Tencent#724
fix Tencent#729
shifujun added a commit to shifujun/Shadow that referenced this issue Dec 31, 2021
根据ApplicationInfo.nativeLibraryDir后缀获得的其实是instructionSet,而不是ABI。

插件也不需要跟宿主采用完全一样的ABI,只需要保持32位或64位相同就可以了。

现根据instructionSet确定是否为64位,再匹配插件中包含的ABI,按Build.CPU_ABI等字段优先级决定。

允许override getPluginPreferredAbi方法,以应对没有考虑到的情况。

fix Tencent#724
fix Tencent#729
shifujun added a commit to shifujun/Shadow that referenced this issue Dec 31, 2021
根据ApplicationInfo.nativeLibraryDir后缀获得的其实是instructionSet,而不是ABI。

插件也不需要跟宿主采用完全一样的ABI,只需要保持32位或64位相同就可以了。

现根据instructionSet确定是否为64位,再匹配插件中包含的ABI,按Build.CPU_ABI等字段优先级决定。

允许override getPluginPreferredAbi方法,以应对没有考虑到的情况。

fix Tencent#724
fix Tencent#729
shifujun added a commit that referenced this issue Jan 4, 2022
根据ApplicationInfo.nativeLibraryDir后缀获得的其实是instructionSet,而不是ABI。

插件也不需要跟宿主采用完全一样的ABI,只需要保持32位或64位相同就可以了。

现根据instructionSet确定是否为64位,再匹配插件中包含的ABI,按Build.CPU_ABI等字段优先级决定。

允许override getPluginPreferredAbi方法,以应对没有考虑到的情况。

fix #724
fix #729
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

Successfully merging a pull request may close this issue.

2 participants