1

我用过briefcase create android,但它显示错误。我正在使用 Windows 命令提示符来完成这一切。有人可以告诉我该怎么做才能解决此错误

Downloading OpenJDK8U-jdk_x64_windows_hotspot_8u242b08.zip...
################################################## 100%
Installing AdoptOpenJDK...
Traceback (most recent call last):
  File "C:\Users\Alok\AppData\Local\Programs\Python\Python36\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\Alok\AppData\Local\Programs\Python\Python36\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\Alok\beeware-tutorial\beeware-venv\Scripts\briefcase.exe\__main__.py", line 9, in <module>
  File "c:\users\alok\beeware-tutorial\beeware-venv\lib\site-packages\briefcase\__main__.py", line 11, in main
    command(**options)
  File "c:\users\alok\beeware-tutorial\beeware-venv\lib\site-packages\briefcase\commands\create.py", line 677, in __call__
    self.verify_tools()
  File "c:\users\alok\beeware-tutorial\beeware-venv\lib\site-packages\briefcase\platforms\android\gradle.py", line 57, in verify_tools
    self.android_sdk = AndroidSDK.verify(self)
  File "c:\users\alok\beeware-tutorial\beeware-venv\lib\site-packages\briefcase\integrations\android_sdk.py", line 119, in verify
    jdk = JDK.verify(command, install=install)
  File "c:\users\alok\beeware-tutorial\beeware-venv\lib\site-packages\briefcase\integrations\java.py", line 223, in verify
    jdk.install()
  File "c:\users\alok\beeware-tutorial\beeware-venv\lib\site-packages\briefcase\integrations\java.py", line 279, in install
    java_unpack_path.rename(self.command.tools_path / "java")
  File "C:\Users\Alok\AppData\Local\Programs\Python\Python36\lib\pathlib.py", line 1287, in rename
    self._accessor.rename(self, target)
  File "C:\Users\Alok\AppData\Local\Programs\Python\Python36\lib\pathlib.py", line 393, in wrapped
    return strfunc(str(pathobjA), str(pathobjB), *args)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\Alok\\.briefcase\\tools\\jdk8u242-b08' -> 'C:\\Users\\Alok\\.briefcase\\tools\\java'
4

1 回答 1

1

嘿亲爱的尝试从这里复制文件/文件夹:'C:\Users\Alok\.briefcase\tools\jdk8u242-b08' 到这里:'C:\Users\Alok\.briefcase\tools\java' 这可能会对你有所帮助谢谢

于 2020-10-21T10:34:16.277 回答