diff --git a/pythonforandroid/bdistapk.py b/pythonforandroid/bdistapk.py index a87fc76c20..9358b382ab 100644 --- a/pythonforandroid/bdistapk.py +++ b/pythonforandroid/bdistapk.py @@ -87,7 +87,8 @@ def prepare_build_dir(self): 'that.') bdist_dir = 'build/bdist.android-{}'.format(self.arch) - rmtree(bdist_dir) + if exists(bdist_dir): + rmtree(bdist_dir) makedirs(bdist_dir) globs = []