// REPLACE ME: What are you trying to get done, what has happened, what went wrong, and what did you expect?
buildozer android debug
`
Spec file:
// REPLACE ME: Paste your buildozer.spec file here
Traceback (most recent call last):
File "/home/ren/.local/bin/buildozer", line 8, in
sys.exit(main())
File "/home/ren/.local/lib/python3.6/site-packages/buildozer/scripts/client.py", line 13, in main
Buildozer().run_command(sys.argv[1:])
File "/home/ren/.local/lib/python3.6/site-packages/buildozer/__init__.py", line 1071, in run_command
self.target.run_commands(args)
File "/home/ren/.local/lib/python3.6/site-packages/buildozer/target.py", line 92, in run_commands
func(args)
File "/home/ren/.local/lib/python3.6/site-packages/buildozer/target.py", line 104, in cmd_debug
self.buildozer.build()
File "/home/ren/.local/lib/python3.6/site-packages/buildozer/__init__.py", line 211, in build
self.build_application()
File "/home/ren/.local/lib/python3.6/site-packages/buildozer/__init__.py", line 739, in build_application
self._copy_application_libs()
File "/home/ren/.local/lib/python3.6/site-packages/buildozer/__init__.py", line 839, in _copy_application_libs
copytree(self.applibs_dir, join(self.app_dir, '_applibs'))
File "/usr/lib/python3.6/shutil.py", line 365, in copytree
raise Error(errors)
shutil.Error: [('/mnt/f/helo/.buildozer/applibs', '/mnt/f/helo/.buildozer/android/app/_applibs', "[Errno 13] Permission denied: '/mnt/f/helo/.buildozer/android/app/_applibs'")]
I have this problem too . Don't know thy this happens
We don't have enough logs to tell. We need full log and buildozer.spec file. Also code needs to be formatted (use grace accent/backquote) to be read properly

I am facing the same issue.
The issue persists regardless of what I add to buildozer.spec
WIndows 10:
Using it on WSL ubuntu
This happens because you are attempting to set permissions on files on mounted Windows drives from WSL, which is prohibited due to incompatibilities between Windows file permissions and Linux file permissions.
The function that is failing, copytree(), attempts to apply permissions to copied files, hence the Permission Denied error.
You can remedy this by building from a directory that is relative to the WSL root, e.g. ~/myProject
This happens because you are attempting to set permissions on files on mounted Windows drives from WSL, which is prohibited due to incompatibilities between Windows file permissions and Linux file permissions.
The function that is failing, copytree(), attempts to apply permissions to copied files, hence the
Permission Deniederror.You can remedy this by building from a directory that is relative to the WSL root, e.g.
~/myProject
please, how?
I explained how. Please use more words to describe what you don't understand about the solution I suggested.

This I what I'm currently facing
I explained how. Please use more words to describe what you don't understand about the solution I suggested.
I am building from ~/camera and getting:
PermissionError: [Errno 13] Permission denied: '/home/alchris/camera/main.py'
Thanks for the clarification. What do you see if you type ls -l /home/alchris/camera/main.py?
Also, strange that it's getting the error when opening the file, not when actually copying it. You can add this log statement in /usr/lib/python3.8/shuil.py just before line 261 print( f"{src=}, {dst=}" ) to get more clarity.
Permission denied by Kivy at the very last stage of the build compile
: shutil.Error: [('/mnt/d/kivy_projects/basics/.buildozer/applibs', '/mnt/d/kivy_projects/basics/.buildozer/android/app/_applibs', "[Errno 13] Permission denied: '/mnt/d/kivy_projects/basics/.buildozer/android/app/_applibs'")]

Can anyone please help
@SomyKamble I described the cause and a workaround for the problem in my first comment.
@stefan-sherwood Hello. I am facing the same issue.
As you recommended, I create ~/app directory and I have tried to build from there, but have got this error.

But I have got this file in my project root folder. What should I do?
Should I create the same file on the WSL, or someway give a route to the application root?
As shown in your screenshot, it's trying to set permissions on a file whose root is /mnt/d. That is a Windows directory. You cannot build projects located in a Windows directory. Move it to WSL and try again.
In what way can I totally copy application root folder to WSL? And the same question for returning apk, that will have been built there.
@stefan-sherwood I have started building, but at the very end got this error:


Where can I check logs?
Unfortunately the error is not shown. Try executing the exact command that comes after "Command failed: " and paste here what it says in response.
This is a response of command. But this module has to be installed...

After installing this package, I have got the same error, and after trying to debug got this:

The second one is a different error and it says exactly what the problem is 馃槷
Well, what the solution could be?
I have followed buildozer installation steps for Ubuntu 20.04, given here: https://buildozer.readthedocs.io/en/latest/installation.html
After that:
buildozer init -> rewrite buildozer.sped -> buildozer android debug deploy run
If you Google the error message then the answer comes up as the first result. I am not going to debug your whole application, especially if you don't demonstrate diligence in figuring it out yourself.
Permission problem probably from using root(sudo -s) while typing commands!
Do sudo su. Install the buildozer later
Nothing changed and I have this mistake ... What happened? With sudo -s is working... What caused this error? Ten minutes earlier everything worked without root (sudo -s)
@hladkky
Fixed by installing libtool.
sudo apt-get install -y libtool