Linux:启动 Android SDK 或 Android Emulator
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9511531/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Linux: start Android SDK or Android Emulator
提问by hqt
I'm using Linux (fedora 16). I try to install Android SDK and ADT. Each time I want to run Android SDKor Android Emulator, I must run from Eclipse, but I don't know how run directly. (don't need to open Eclipse)
我正在使用 Linux (fedora 16)。我尝试安装 Android SDK 和 ADT。每次要运行Android SDKor 时Android Emulator,必须从 Eclipse 运行,但不知道如何直接运行。(不需要打开Eclipse)
In Windows, in AndroidSDK folder has file exe so you can run directly such as AVD Manager.exeor SDK Manager.exebut not in Linux.
在 Windows 中,AndroidSDK 文件夹中有文件 exe,因此您可以直接运行,例如在 Linux 中运行AVD Manager.exe或SDK Manager.exe不运行。
Please help me about this issue.
请帮我解决这个问题。
Thanks :)
谢谢 :)
采纳答案by girimajiananth
try using the following commands , this should work if you have installed the sdk correctly
尝试使用以下命令,如果您正确安装了 sdk,这应该可以工作
- Open a terminal
- su
- input your password
- cd Android/SDK/tools (enter)
- ./emulator -noaudio @android_dev
- 打开终端
- 苏
- 输入您的密码
- cd Android/SDK/工具(进入)
- ./emulator -noaudio @android_dev
回答by dispatchMain
You can launch android SDK manager by simply moving to android-sdk/tools folder and using the following command:
您可以通过简单地移动到 android-sdk/tools 文件夹并使用以下命令来启动 android SDK 管理器:
./android &
To launch the emulator, from the same folder you need to execute the following command:
要启动模拟器,您需要从同一文件夹执行以下命令:
./emulator -avd youravdname
回答by Ashkan R.
It's better to store Android SDK in /opt/and just run:
$ sudo /opt/android-sdk-linux/tools/android
最好将 Android SDK 存储在其中/opt/并运行:
$ sudo /opt/android-sdk-linux/tools/android
You can add & at end to run it as background process.
您可以在末尾添加 & 以将其作为后台进程运行。

