即使是空项目,我的 IDE 也会向我显示错误。如您所见,我创建了一个包含空 Activity 的新项目。应用程序在移动设备上成功启动并且运行良好。但是 logcat
无法正常工作,或者我遇到的任何其他问题都可以帮助我。当我连接我的手机时,即使我没有构建项目,logcat
也充满了指令/日志。
最佳答案
更新:
首先,gralloc
代表低级图形缓冲区分配器。
The gralloc is part of the HAL (Hardware Abstraction Layer) which means that the implementation is platform-specific. You can find the interface definitions in hardware/libhardware/include/hardware/gralloc.h. As expected from a HAL component, the interface is divided into a module interface (gralloc_module_t) and a device interface (alloc_device_t).
错误级别很低,与 OpenGLRenderer 相关。您的设备正在尝试打开一些 64 位库文件,但如果失败。然后就报错了。
我对此进行了非常深入的搜索,但没有找到任何有用的信息。
尝试在另一台设备上运行应用程序,发现错误再次出现。
如果错误没有导致崩溃或其他重要问题,则继续开发。如果找到解决方案,您将重试。
关于java - Android Studio 显示错误加载 : id=gralloc ! = hmi->id=gralloc,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46510718/