我正在使用 'beeware'。使用 briefcase create android 时出现以下权限错误
I was using 'beeware'. While using briefcase create android i got the following permission error
我使用了 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'
嘿亲爱的尝试复制 file/folder
来自这里:'C:\Users\Alok\.briefcase\tools\jdk8u242-b08'
到这里:'C:\Users\Alok\.briefcase\tools\java'
这可能对你有帮助
谢谢
我使用了 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'
嘿亲爱的尝试复制 file/folder 来自这里:'C:\Users\Alok\.briefcase\tools\jdk8u242-b08' 到这里:'C:\Users\Alok\.briefcase\tools\java' 这可能对你有帮助 谢谢