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

问题描述

显示了常规"和其他"选项卡,但是缺少仿真器"选项卡,该选项卡在更新到Android Studio 1.5之前位于Android Studio 1.4中的常规"旁边-我无法修复.

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

10-12 20:44