Android Studio 中的“编辑配置"中没有“模拟器"选项卡 [英] No Emulator tab in Edit Configurations in Android Studio

查看:37
本文介绍了Android Studio 中的“编辑配置"中没有“模拟器"选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

General 和 Miscellaneous 选项卡正在显示,但在更新到 Android Studio 1.5 之前,在 Android Studio 1.4 中的 General 旁边缺少 Emulator 选项卡 - 我无法修复它.

General and Miscellaneous tabs are showing but Emulator tab is missing which was up next to General in Android Studio 1.4 before updating to Android Studio 1.5 - I cannot fix it.

推荐答案

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

My solution was to rename /tools/emulator to /tools/emulator.0

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

And then just have the below shell script that calls the emulator.0 and appends the qemu flags

#!/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 中的“编辑配置"中没有“模拟器"选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆