目次
問題の説明
Android Studio が仮想マシンを起動すると、[Haxm のインストール] が常に表示されますが、インストール手順に従っても、Haxm をインストールするためのプロンプトが表示され続けます。
問題のスクリーンショット
理由の推測
なぜこのようなことが起こるのでしょうか? これは権限の問題だと思います。つまり、win11/win10 で何かをインストールするには手動モードまたは管理者モードが必要であるということです。
解決
1 ファイルを開く→設定→クリック
2 Android SDK を見つけて表示されたパスをコピーし、リソース マネージャーを開き、コピーしたパスを貼り付けます。
3 次に、次のディレクトリを見つけて画像を確認します。私の具体的なディレクトリは次のとおりです。
B:\Android Studio adk\extras\intel\Hardware_Accelerated_Execution_Manager
4 haxm...exe を見つけてクリックしてインストールします
5 インストールが完了した後、Android Studio に戻ると、Haxm をインストールするためのプロンプトが表示されていないことがわかり、[開始] をクリックすると (最初は約 3 分かかりました)、仮想マシンが正常に起動できることがわかりました。
-------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- ---------------
<?xml version="1.0"coding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas .android.com/tools"><アプリケーション
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">
<アクティビティ
android:name=".MainActivity"
android:exported= 「真の」
アンドロイド:label="@string/app_name"
android:theme="@style/Theme.MyApplication.NoActionBar">
<インテントフィルター>
<アクション android:name="android.intent.action.MAIN" /><カテゴリ android:name="android.intent.category.LAUNCHER" />
</intent-filter><メタデータ
android:name="android.app.lib_name"
android:value="" /> </
アクティビティ> <
/アプリケーション></マニフェスト>
<?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>