尝试使 AVD 工作时出错

尝试使 AVD 工作时出错

我设法安装了最新版本的 eclipse 并使其与 SDK 管理器一起正常工作。我下载了所有必要的部分。当我尝试运行 AVD(Android 虚拟设备)管理器时,一切正常。它读取 Android API 的版本并允许我创建模拟器配置文件,但当我尝试运行模拟器时,我收到以下错误:

Failed to start emulator: Cannot run program 
"/opt/SDK//tools/emulator": error=2, No such file or directory

问题显然是多余的斜杠。我已确保 SDK 路径(在 Eclipse 首选项中)中没有尾部斜杠,但我想不出它从何而来……有什么想法吗?

编辑3

已运行以下命令:

cromwell@Terminal-0:~$ sudo chown -R root:eclipse /opt/*
cromwell@Terminal-0:~$ sudo chmod -R 775 /opt/*
cromwell@Terminal-0:~$ sudo chmod +x /opt/*

编辑4 如果有什么不同,那就是手动安装(可能安装不正确)我将文件(用于 SDK 和 eclipse)复制到 /opt 并运行 EDIT 3 命令。JDK 是使用 PPA 安装的,但 /opt/eclipse/jre 下也有一个副本... 以下 2 页帮助我进行安装:

http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html https://wiki.ubuntu.com/fballem/Software%2012.04#Eclipse

我也在使用最新的 Kubuntu 13.1 64 位...这可能是问题的一部分吗?

编辑

这是控制台的输出

cromwell@Terminal-0:~$ sudo /opt/SDK/tools/emulator
[sudo] password for cromwell: 
sudo: unable to execute /opt/SDK/tools/emulator: No such file or directory

我觉得有些事情很有趣(不是很有趣“哈哈”),因为该目录中确实有这样的文件

编辑2

响应评论的控制台输出

cromwell@Terminal-0:~$ ls -l /opt/SDK/tools/
total 18272
-rwxrwxr-x 1 root eclipse     323 Mar 21 15:17 adb_has_moved.txt
-rwxrwxr-x 1 root eclipse    3498 Mar 21 15:17 android
drwxrwxr-x 2 root eclipse    4096 Mar 21 15:17 ant
drwxrwxr-x 3 root eclipse    4096 Mar 21 15:17 apps
-rwxrwxr-x 1 root eclipse    3286 Mar 21 15:17 ddms
-rwxrwxr-x 1 root eclipse   49112 Mar 21 15:17 dmtracedump
-rwxrwxr-x 1 root eclipse    1940 Mar 21 15:17 draw9patch
-rwxrwxr-x 1 root eclipse   37338 Mar 21 15:17 emulator
-rwxrwxr-x 1 root eclipse 2854385 Mar 21 15:17 emulator64-arm
-rwxrwxr-x 1 root eclipse 2884527 Mar 21 15:17 emulator64-mips
-rwxrwxr-x 1 root eclipse 2955802 Mar 21 15:17 emulator64-x86
-rwxrwxr-x 1 root eclipse 2706381 Mar 21 15:17 emulator-arm
-rwxrwxr-x 1 root eclipse 2679855 Mar 21 15:17 emulator-mips
-rwxrwxr-x 1 root eclipse 2809004 Mar 21 15:17 emulator-x86
-rwxrwxr-x 1 root eclipse  170613 Mar 21 15:17 etc1tool
-rwxrwxr-x 1 root eclipse    3464 Mar 21 15:17 hierarchyviewer
-rwxrwxr-x 1 root eclipse   10566 Mar 21 15:17 hprof-conv
-rwxrwxr-x 1 root eclipse    1845 Mar 21 15:17 jobb
drwxrwxr-x 8 root eclipse    4096 Mar 21 15:17 lib
-rwxrwxr-x 1 root eclipse    2046 Mar 21 15:17 lint
-rwxrwxr-x 1 root eclipse   11819 Mar 21 15:17 mksdcard
-rwxrwxr-x 1 root eclipse    1293 Mar 21 15:17 monitor
-rwxrwxr-x 1 root eclipse    3176 Mar 21 15:17 monkeyrunner
-rwxrwxr-x 1 root eclipse  695122 Mar 21 15:17 NOTICE.txt
drwxrwxr-x 7 root eclipse    4096 Mar 21 15:17 proguard
-rwxrwxr-x 1 root eclipse      70 Mar 21 15:17 source.properties
-rwxrwxr-x 1 root eclipse  681566 Mar 21 15:17 sqlite3
drwxrwxr-x 2 root eclipse    4096 Mar 21 15:17 support
drwxrwxr-x 6 root eclipse    4096 Mar 21 15:17 templates
-rwxrwxr-x 1 root eclipse    3219 Mar 21 15:17 traceview
-rwxrwxr-x 1 root eclipse    3054 Mar 21 15:17 uiautomatorviewer
-rwxrwxr-x 1 root eclipse   65552 Mar 21 15:17 zipalign

.....

cromwell@Terminal-0:~$ ls -l /opt/SDK/tools/emulator
-rwxrwxr-x 1 root eclipse 37338 Mar 21 15:17 /opt/SDK/tools/emulator

相关内容