我使用了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'
答案 0 :(得分:1)
嘿亲爱的尝试复制文件/文件夹 从这里:'C:\ Users \ Alok \ .briefcase \ tools \ jdk8u242-b08' 到这里:'C:\ Users \ Alok \ .briefcase \ tools \ java' 这可能对您有帮助 谢谢