How to solve destination path ‘external/jpeg’ already exists and is not an empty directory.

Some times you may get the following error while building an android app from python code

RAN: /home/gk/.local/share/python-for-android/build/bootstrap_builds/sdl2/jni/SDL2_image/external/download.sh

STDOUT:
fatal: destination path 'external/jpeg' already exists and is not an empty directory.

This can be resolved by cleaning the build in both python for android p4a or buildozer by executing the following commands

p4aclean-dists
p4aclean_download_cache
p4aclean_builds
p4acleanall
or
delete the buildozer folder where you executed the buildozer command
buildozer clean

 

Scroll to Top