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

apk中的so插件没有安装 #595

Open
1 task done
huangping-hbab opened this issue Oct 15, 2018 · 1 comment
Open
1 task done

apk中的so插件没有安装 #595

huangping-hbab opened this issue Oct 15, 2018 · 1 comment

Comments

@huangping-hbab
Copy link

huangping-hbab commented Oct 15, 2018

  • 我已阅读并理解 贡献指南,严格遵循其约定。

错误报告

你做了什么?

生成的apk不包含armeabi-v7a 构架时,程序可以正常运行。
生成的apk包含armeabi-v7a 构架时,程序不能正常运行,找不到插件 Bundle.getLaunchableBundle 返回null。

你期望的结果是什么?

生成的apk包含armeabi-v7a 构架时,程序能正常运行。

实际结果是什么?

最后发现,如果生成的是包含了armeabi-v7a 构架的apk,安装后莫名的少了一些插件。
查看设备上/data/app-lib和/data/data/[packname]/files/lib目录,只有lib_device.so、lib_style.so、lib_upgrade.so。
但是查看apk,armeabi目录下插件都是存在的。

Small环境

Compile-time

  gradle-small plugin : 1.5.0-beta2 (maven)
            small aar : 1.5.0-beta2 (maven)
    small binding aar : 1.1.2 (maven)
          gradle core : 4.4
       android plugin : 2.3.0
                   OS : Windows 8.1 6.3 (x86)

Bundles

type name PP sdk aapt support file(armeabi) size
host app 27 25.0.2 25.1.0
app app.camera 0x43 27 25.0.2 25.1.0 *_camera.so 21.8 KB
app app.main 0x77 27 25.0.2 25.1.0 *_main.so 66 KB
app app.crasher 0x7c 27 25.0.2 25.1.0 *_crasher.so 16.5 KB
lib lib.http 0x3d 27 25.0.2 25.1.0 *_http.so 18.4 KB
lib lib.tcp 0x47 27 25.0.2 25.1.0 *_tcp.so 48.1 KB
lib lib.device 0x25 27 25.0.2 25.1.0 *_device.so 22.5 KB
lib lib.upgrade 0x7a 27 25.0.2 25.1.0 *_upgrade.so 5.6 KB
lib lib.location 0x7e 27 25.0.2 25.1.0 *_location.so 201.8 KB
lib lib.utils 0x73 27 25.0.2 25.1.0 *_utils.so 34.9 KB
lib lib.binding 0x15 27 25.0.2 25.1.0 *_binding.so 12.3 KB
lib lib.arcface 0x26 27 25.0.2 25.1.0 *_arcface.so 185.8 KB
lib lib.style 0x79 27 25.0.2 25.1.0 *_style.so 219.4 KB
@huangping-hbab
Copy link
Author

补充一下,如果我把生成好的so插件,拷贝到/data/data/[packname]/files/lib目录中,重启程序可以正常运行,证明只是so安装没有到位的原因。

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

1 participant