Skip to content

Commit 9ea7c33

Browse files
committed
Gradle: Run the clean task before anything else to make sure nothing is cached.
1 parent 538266d commit 9ea7c33

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pythonforandroid/toolchain.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,10 @@ def _build_package(self, args, package_type):
11081108
else:
11091109
raise BuildInterruptingException(
11101110
"Unknown build mode {} for apk()".format(args.build_mode))
1111-
output = shprint(gradlew, gradle_task, _tail=20,
1111+
1112+
# WARNING: We should make sure to clean the build directory before building.
1113+
# Looks like our private.tar is causing issues to gradle.
1114+
output = shprint(gradlew, "clean", gradle_task, _tail=20,
11121115
_critical=True, _env=env)
11131116
return output, build_args
11141117

0 commit comments

Comments
 (0)