图书馆" libmaliinstr.so"未找到

问题描述:

我有一个Android应用程序用Scala编写。当我启动它出现在日志窗口中出现以下错误信息:

I have an Android app written in Scala. When I launch it the following error message appears in the log window:

08-31 13:11:10.781    5398-5398/my.app.app123 E/linker﹕ load_library(linker.cpp:759): library "libmaliinstr.so" not found
08-31 13:11:10.784    5398-5398/my.app.app123 E/﹕ appName=my.app.app123, acAppName=com.android.cts.openglperf
08-31 13:11:10.784    5398-5398/my.app.app123 E/﹕ 0
08-31 13:11:10.784    5398-5398/my.app.app123 E/﹕ appName=my.app.app123, acAppName=com.android.browser
08-31 13:11:10.784    5398-5398/my.app.app123 E/﹕ 0

这是什么意思,如何解决呢?

What does it mean and how to solve it?

Scala是无关紧要的。

Scala is irrelevant.

我之前也遇到这个问题。这是一个硬件问题CPU。在一些中国的手机中找到。华为和小米是已知的设备可能有这个问题的品牌。

I had also meet this problem before. It's a hardware problem with CPU. Found in some of Chinese phones. Huawei and xiaomi are known brands which devices may have this problem.

加载该库错误发生时,应用程序无法找到正确的平台 *。所以

Load this library error occurs when application can't find a correct platform *.so.

这名 libmaliinstr ,我认为这涉及到马里仪器维基。马里是一个低级别的硬件驱动程序,支持增强的OpenGL / GLES特别是对浏览器的渲染。

From name libmaliinstr, I assume it related to Mali instrument Wiki. Mali is a low-level hardware driver, supporting enhanced OpenGL/GLES especially for browser rendering.

我重现它在CPU MT6582(红蜜1S),这意味着该设备缺少一个系统的lib libmaliinstr.so 。因此,应用程序无法使用 openglperf 和往常一样。

I reproduce it on CPU MT6582 (Hongmi 1S), which means this device missing a system lib libmaliinstr.so. So app can't use openglperf as usual.

目前的解决办法:

跳过此设备并忽略该错误。 (我们可能没有权限修改系统库)

Skip this device and ignore the error. (we may not have permission to modify a system library)

增加:

您可以禁用硬件加速这些设备肯定的。

You can disable hardware accelerate in these devices for sure.