更新时间:2022-03-17 05:32:59
这些是来自 libGL 和 libstdc++
您可以通过在 AVD 设置中将 Software
更改为 Emulated Performance Graphics
选项来快速解决此问题.
You can quick fix this by change to use Software
for Emulated Performance Graphics
option, in the AVD settings.
或者尝试使用 libstdc++.so.6
(在您的系统中可用)而不是捆绑在 Android SDK 中的那个.有两种方法可以替换它:
Or try to use the libstdc++.so.6
(which is available in your system) instead of the one bundled inside Android SDK. There are 2 ways to replace it:
模拟器有一个开关 -use-system-libs
.你可以在这里找到它:~/Android/Sdk/tools/emulator -avd Nexus_5_API_23 -use-system-libs
.
The emulator has a switch -use-system-libs
. You can found it here: ~/Android/Sdk/tools/emulator -avd Nexus_5_API_23 -use-system-libs
.
此选项强制 Linux 模拟器加载系统 libstdc++
(但不是 Qt 库),如果捆绑的(来自 Android SDK)阻止它加载或工作正常.请参阅此提交
This option force Linux emulator to load the system libstdc++
(but not Qt libraries),
in cases where the bundled ones (from Android SDK) prevent it from loading or
working correctly. See this commit
或者,您可以将ANDROID_EMULATOR_USE_SYSTEM_LIBS
环境变量设置为用户/系统
的1
.
Alternatively you can set the ANDROID_EMULATOR_USE_SYSTEM_LIBS
environment variable to 1
for your user/system
.
这样做的好处是确保模拟器可以正常工作如果您从 Android Studio 中启动它.
This has the benefit of making sure that the emulator will work even if you launched it from within Android Studio.