gpt4 book ai didi

android-studio - Android Studio 中的“编辑配置”中没有“模拟器”选项卡

转载 作者:行者123 更新时间:2023-12-03 15:45:09 24 4
gpt4 key购买 nike

General 和 Miscellaneous 选项卡正在显示,但在更新到 Android Studio 1.5 之前,模拟器选项卡在 Android Studio 1.4 中的 General 旁边丢失 - 我无法修复它。

enter image description here

最佳答案

我的解决方案是重命名/tools/emulator
到/tools/emulator.0

然后只有下面的 shell 脚本调用 emulator.0 并附加 qemu 标志

#!/bin/bash

# http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in

SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"

# echo "DIR is '$DIR'"
$DIR/emulator.0 "$@" -qemu -m 512 -enable-kvm

关于android-studio - Android Studio 中的“编辑配置”中没有“模拟器”选项卡,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33909062/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com