Error: Unexpected CPU variant for X86 using defaults: x86

前端 未结 1 1946
南旧
南旧 2020-12-30 22:46

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;

<         


        
相关标签:
1条回答
  • 2020-12-30 23:33

    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;
    }
    

    The definition for x86_known_variants is

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

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

    0 讨论(0)
提交回复
热议问题