From 7578fea609d4445b3fed1f441813ab4c86ef0086 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Thu, 13 Feb 2020 01:36:04 +0100 Subject: [PATCH] android gradle build: fix apk name --- buildozer/targets/android.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildozer/targets/android.py b/buildozer/targets/android.py index 93ede4563..94f37a941 100644 --- a/buildozer/targets/android.py +++ b/buildozer/targets/android.py @@ -1181,9 +1181,9 @@ def build_package(self): if is_gradle_build: # on gradle build, the apk use the package name, and have no version - packagename = basename(dist_dir) # gradle specifically uses the folder name + packagename_src = basename(dist_dir) # gradle specifically uses the folder name apk = u'{packagename}-{mode}.apk'.format( - packagename=packagename, mode=mode) + packagename=packagename_src, mode=mode) apk_dir = join(dist_dir, "build", "outputs", "apk", mode_sign) else: # on ant, the apk use the title, and have version