-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
一个可能的bug:关于64位系统运行32位的library #178
Comments
@heagoo 64位手机是可以兼容32位的library,但这是有个条件的,就是在运行之前,系统会检测libs中是否只有arm,而非arm64-v8a。所以如果你的宿主运行中有arm64-v8a的话,那么进程就是以64位去运行的,但是你的插件里面只有32为的arm so包的话,是不能安装的,因为安装运行也会失败 |
看下这个PR #170 |
谢谢解惑! On Tue, May 3, 2016 at 6:55 PM, jack_1900 [email protected] wrote:
"The first step is as good as half over." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Class:
com.morgoo.helper.compat.NativeLibraryHelperCompat
问题:原来的代码使得VM64无法安装32bit的library,但很多VM64的手机是可以运行32bit库的
参见下面的修改:
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
private static int copyNativeBinariesAfterL(File apkFile, File sharedLibraryDir) {
try {
Object handleInstance = MethodUtils.invokeStaticMethod(handleClass(), "create", apkFile);
if (handleInstance == null) {
return -1;
}
The text was updated successfully, but these errors were encountered: