问题已解决。我尝试的解决方案与答案非常相似。除了添加平台工具之外,我还必须在 bashrc 中添加工具文件夹。
这就是我在 bashrc 文件中添加 android 路径的方式。
# Android tools
export PATH=${PATH}:~/android-sdk-linux_x86/tools
export PATH=${PATH}:~/android-sdk-linux_x86/platform-tools
export ANDROID_SDK_HOME=~/android-sdk-linux_x86/tools
export PATH=$PATH:$ANDROID_SDK_HOME
For those who have this problem after adding this, if you still have this issue then please make sure that the java path is added. It may be like
export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.26
export PATH=$PATH:$JAVA_HOME
The java version name may varry depending on the version installed on your machine. To find the version name type java -version from terminal.
如果问题仍然存在,请检查 avd 文件夹、其内容和 .android 文件夹的权限。
同样的问题。但我的 jdk 版本是 7 。我通过执行以下步骤解决了它:
ctrl+alt+t>>vi ~/.bashrc>>Add the path "android-sdk/platform-tools" to export Path= ....:Path
set chmod -R 777 android-sdk`