Skip to content

Commit

Permalink
LooseVersion not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian-O committed Sep 15, 2023
1 parent 0e0b17c commit bf5556f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildozer/targets/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
from time import sleep
import traceback

from distutils.version import LooseVersion
import pexpect

import buildozer.buildops as buildops
from buildozer.exceptions import BuildozerException
from buildozer.libs.version import Version
from buildozer.logger import USE_COLOR
from buildozer.target import Target
from buildozer.libs.version import parse
Expand Down Expand Up @@ -1305,7 +1305,7 @@ def build_package(self):
pass

build_tools_versions = os.listdir(join(self.android_sdk_dir, "build-tools"))
build_tools_versions = sorted(build_tools_versions, key=LooseVersion)
build_tools_versions = sorted(build_tools_versions, key=Version)
build_tools_version = build_tools_versions[-1]
gradle_files = ["build.gradle", "gradle", "gradlew"]
is_gradle_build = build_tools_version >= "25.0" and any(
Expand Down

0 comments on commit bf5556f

Please sign in to comment.