Android Studio keeps prompting to install Haxm when starting the virtual machine

Table of contents

Problem Description

Screenshot of problem

Reason guess

solution 


Problem Description

Install Haxm always appears when Android Studio starts the virtual machine, but after following his installation steps, it still keeps popping up prompts to install Haxm.

Screenshot of problem

Reason guess

Why does this happen? I guess it is a permissions issue, which means that win11/win10 should require manual or administrator mode to install something.

solution 

1 Open File-》Settings-》Click

2 Find the Android SDK and copy the path you see, open the resource manager, and paste the path you just copied

 

3 Then find the following directory and look at the picture. My specific directory is:

 B:\Android Studio adk\extras\intel\Hardware_Accelerated_Execution_Manager 

4 Find haxm...exe and click to install it 

5 After the installation was completed, I returned to Android Studio and found that there was no longer a prompt to install Haxm. Then we clicked Start (it took about 3 minutes for the first time) and found that the virtual machine could start normally!

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools">

    <application
        android:allowBackup="true"
        android:dataExtractionRules="@xml/data_extraction_rules"
        android:fullBackupContent="@xml/backup_rules"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/Theme.MyApplication"
        tools:targetApi="31">
        <activity
            android:name=".MainActivity"
            android:exported="true"
            android:label="@string/app_name"
            android:theme="@style/Theme.MyApplication.NoActionBar">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

            <meta-data
                android:name="android.app.lib_name"
                android:value="" />
        </activity>
    </application>

</manifest>

 

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools">

    <application
        android:allowBackup="true"
        android:dataExtractionRules="@xml/data_extraction_rules"
        android:fullBackupContent="@xml/backup_rules"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/Theme.MyApplication"
        tools:targetApi="31">
        <activity
            android:name=".MainActivity"
            android:exported="true"
            android:label="@string/app_name"
            android:theme="@style/Theme.MyApplication.NoActionBar">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

            <meta-data
                android:name="android.app.lib_name"
                android:value="" />
        </activity>
    </application>

</manifest>

Guess you like

Origin blog.csdn.net/qq_53679247/article/details/127352139