
我正在使用 Android Studio 做一個學校項目,但我似乎無法啟動 AVD。我使用的是學校的 32 位元 Linux 電腦。
當我嘗試啟動 AVD 時遇到此錯誤。
無法在模擬器中啟動 AVD。
輸出:
ERROR: 32-bit Linux Android emulator binaries are DEPRECATED, to use them
you will have to do at least one of the following:
- Use the '-force-32bit' option when invoking 'emulator'.
- Set ANDROID_EMULATOR_FORCE_32BIT to 'true' in your environment.
Either one will allow you to use the 32-bit binaries, but please be
aware that these will disappear in a future Android SDK release.
Consider moving to a 64-bit Linux system before that happens.
我嘗試進入運行配置並將 -force-32bit- 命令新增至其他命令列選項,並且我嘗試開啟 gedit。設定檔並添加匯出 ANDROID_EMULATOR_FORCE_32BIT=true到它,但它仍然給我上面同樣的錯誤。
我無法切換到 64 位元計算機,而且我對該程式相當陌生,因此我們將不勝感激。謝謝。
答案1
也許您還沒有重新載入您的個人資料。變更僅在此之後生效(例如,重新啟動、重新啟動終端)。
嘗試僅為指令設定環境變數。轉到終端機並輸入:(
ANDROID_EMULATOR_FORCE_32BIT=true avd
或任何調用的命令。)