1

尝试运行 forge run android 命令并得到此错误,即使文件存在(Ubuntu 12.04)。即使我没有指定 sdk 路径并允许 forge 自行下载,我仍然会遇到同样的错误。

2012-07-04 15:08:36,414 [  DEBUG] Exception running detached command:
/home/rockyj/Apps/android-sdk-linux/platform-tools/adb start-server:
[Errno 2] No such file or directory while running
run_android(('/home/rockyj/Workspace/Projects/greeter/development',
u'/home/rockyj/Apps/android-sdk-linux', None, True, None), {})
2012-07-04 15:08:36,417 [  ERROR] Something went wrong that we didn't expect:
2012-07-04 15:08:36,417 [  ERROR] Exception running detached command:
/home/rockyj/Apps/android-sdk-linux/platform-tools/adb start-server:
[Errno 2] No such file or directory
2012-07-04 15:08:36,417 [  DEBUG] Traceback (most recent call last):
  File "/home/rockyj/Apps/forge-tools/forge/async.py", line 87, in run
    result = self._target(*self._args, **self._kwargs)
  File "/home/rockyj/Apps/forge-tools/forge/main.py", line 388, in run
    build_to_run=build_to_run,
  File "/home/rockyj/Workspace/Projects/greeter/.template/generate_dynamic/customer_goals.py",
line 120, in run_app
    build_to_run.run()
  File "/home/rockyj/Workspace/Projects/greeter/.template/generate_dynamic/build.py",
line 338, in run
    self._run_task(func_name, args, kw)
  File "/home/rockyj/Workspace/Projects/greeter/.template/generate_dynamic/build.py",
line 293, in _run_task
    self.tasks[func_name](self, *args, **kw)
  File "/home/rockyj/Workspace/Projects/greeter/.template/generate_dynamic/android_tasks.py",
line 588, in run_android
    run_detached([path_info.adb, 'start-server'], wait=True)
  File "/home/rockyj/Workspace/Projects/greeter/.template/generate_dynamic/android_tasks.py",
line 377, in run_detached
    raise ShellError(message="Exception running detached command: %s"
% full_command, output=str(output))
ShellError: Exception running detached command:
/home/rockyj/Apps/android-sdk-linux/platform-tools/adb start-server:
[Errno 2] No such file or directory

请帮忙。

谢谢。

4

1 回答 1

0

根据评论,通过在 Ubuntu 上安装 ia32 库解决了这个问题。

于 2012-07-06T01:21:38.240 回答