Skip to content

Commit

Permalink
Gradle: Run the clean task before anything else to make sure nothing …
Browse files Browse the repository at this point in the history
…is "cached". (#2705)

* Gradle: Run the clean task before anything else to make sure nothing is cached.

* Reference the PR for the future
  • Loading branch information
misl6 authored Nov 21, 2022
1 parent 538266d commit 63e6fb6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pythonforandroid/toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,10 @@ def _build_package(self, args, package_type):
else:
raise BuildInterruptingException(
"Unknown build mode {} for apk()".format(args.build_mode))
output = shprint(gradlew, gradle_task, _tail=20,

# WARNING: We should make sure to clean the build directory before building.
# See PR: kivy/python-for-android#2705
output = shprint(gradlew, "clean", gradle_task, _tail=20,
_critical=True, _env=env)
return output, build_args

Expand Down

0 comments on commit 63e6fb6

Please sign in to comment.