错误:X86 的意外 CPU 变体使用默认值:x86 [英] Error: Unexpected CPU variant for X86 using defaults: x86

查看:68
本文介绍了错误:X86 的意外 CPU 变体使用默认值:x86的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

While trying to create a simple math game in android studio 2.3.1 after trying to execute my project, the app closes in emulator and gives warnings;

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...

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

And I tried solving the problem, but I do not understand why these warnings come up and how to fix them!

推荐答案

你不需要修复这个,因为它只是根据源代码的警告 https://android.googlesource.com/platform/art/+/master/runtime/arch/x86/instruction_set_features_x86.抄.

You don't need to fix this as it is just a warning according to source code 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,您将看到这个可以忽略的警告.

If your emulators or devices are x86_64 or x86 you will see this warning which can be ignored.

这篇关于错误:X86 的意外 CPU 变体使用默认值:x86的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆