0

我正在关注在 android 上运行应用程序的 beeware 文档。因此,根据文档,我执行了briefcase create android随后的命令,briefcase run android但是当我运行上述命令briefcase run android时,它给了我这个错误FileNotFoundError: [Errno 2] No such file or directory: '/home/kevin/.briefcase/tools/android_sdk/emulator/emulator'

这是完整的追溯:

  File "/home/kevin/.local/bin/briefcase", line 8, in <module>
    sys.exit(main())
  File "/home/kevin/.local/lib/python3.8/site-packages/briefcase/__main__.py", line 11, in main
    command(**options)
  File "/home/kevin/.local/lib/python3.8/site-packages/briefcase/commands/run.py", line 77, in __call__
    state = self.run_app(app, **full_options(state, options))
  File "/home/kevin/.local/lib/python3.8/site-packages/briefcase/platforms/android/gradle.py", line 151, in run_app
    device, name, avd = self.android_sdk.select_target_device(
  File "/home/kevin/.local/lib/python3.8/site-packages/briefcase/integrations/android_sdk.py", line 449, in select_target_device
    for avd in self.emulators():
  File "/home/kevin/.local/lib/python3.8/site-packages/briefcase/integrations/android_sdk.py", line 331, in emulators
    output = self.command.subprocess.check_output(
  File "/home/kevin/.local/lib/python3.8/site-packages/briefcase/integrations/subprocess.py", line 85, in check_output
    return self._subprocess.check_output(
  File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/subprocess.py", line 489, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/home/kevin/.briefcase/tools/android_sdk/emulator/emulator'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 72, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
    from apport.report import Report
  File "/usr/lib/python3/dist-packages/apport/report.py", line 32, in <module>
    import apport.fileutils
  File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 12, in <module>
    import os, glob, subprocess, os.path, time, pwd, sys, requests_unixsocket
ModuleNotFoundError: No module named 'requests_unixsocket'

Original exception was:
Traceback (most recent call last):
  File "/home/kevin/.local/bin/briefcase", line 8, in <module>
    sys.exit(main())
  File "/home/kevin/.local/lib/python3.8/site-packages/briefcase/__main__.py", line 11, in main
    command(**options)
  File "/home/kevin/.local/lib/python3.8/site-packages/briefcase/commands/run.py", line 77, in __call__
    state = self.run_app(app, **full_options(state, options))
  File "/home/kevin/.local/lib/python3.8/site-packages/briefcase/platforms/android/gradle.py", line 151, in run_app
    device, name, avd = self.android_sdk.select_target_device(
  File "/home/kevin/.local/lib/python3.8/site-packages/briefcase/integrations/android_sdk.py", line 449, in select_target_device
    for avd in self.emulators():
  File "/home/kevin/.local/lib/python3.8/site-packages/briefcase/integrations/android_sdk.py", line 331, in emulators
    output = self.command.subprocess.check_output(
  File "/home/kevin/.local/lib/python3.8/site-packages/briefcase/integrations/subprocess.py", line 85, in check_output
    return self._subprocess.check_output(
  File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/subprocess.py", line 489, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/home/kevin/.briefcase/tools/android_sdk/emulator/emulator'

有人可以告诉我我能做些什么来解决这个问题。我刚开始使用beeware,对它了解不多。

4

0 回答 0