gpt4 book ai didi

android - 错误 : Unexpected CPU variant for X86 using defaults: x86

转载 作者:可可西里 更新时间:2023-11-01 19:06:53 29 4
gpt4 key购买 nike

在尝试执行我的项目后尝试在 android studio 2.3.1 中创建一个简单的数学游戏时,应用程序在模拟器中关闭并发出警告;

5-17 06:52:14.573 3088-3088/com.example.hp.game W/art: Unexpected CPU variant for X86 using defaults: x86
05-17 06:52:14.744 3088-3088/com.example.hp.game W/System: ClassLoader referenced unknown path: /data/app/com.example.hp.game-1/lib/x86
05-17 06:52:14.877 3088-3104/com.example.hp.game W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...

我尝试解决这个问题,但我不明白为什么会出现这些警告以及如何解决它们!

最佳答案

根据源代码https://android.googlesource.com/platform/art/+/master/runtime/arch/x86/instruction_set_features_x86.cc,您不需要修复此问题,因为它只是一个警告.

// Verify that variant is known.
bool known_variant = FindVariantInArray(x86_known_variants, arraysize(x86_known_variants),
variant);
if (!known_variant && variant != "default") {
LOG(WARNING) << "Unexpected CPU variant for X86 using defaults: " << variant;
}

x86_known_variants 的定义是

static constexpr const char* x86_known_variants[] = {
"atom",
"sandybridge",
"silvermont",
"kabylake",
};

如果您的模拟器或设备是 x86_64x86,您将看到此警告,可以忽略。

关于android - 错误 : Unexpected CPU variant for X86 using defaults: x86,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44022615/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com