[Android] buildsystem: use the matching gradle to create the gradle wrapper

Steve Lhomme git at videolan.org
Thu Jul 3 10:48:39 UTC 2025


vlc-android | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jul  2 12:16:09 2025 +0200| [13567cd0ddc3ae93b853229a532694eee25a526d] | committer: Steve Lhomme

buildsystem: use the matching gradle to create the gradle wrapper

It should not download anything if the version is matching.

> https://code.videolan.org/videolan/vlc-android/commit/13567cd0ddc3ae93b853229a532694eee25a526d
---

 buildsystem/compile.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/buildsystem/compile.sh b/buildsystem/compile.sh
index ae46e17f06..a8c30a90c2 100755
--- a/buildsystem/compile.sh
+++ b/buildsystem/compile.sh
@@ -274,7 +274,7 @@ if [ ! -e "./gradlew" ] || [ ! -x "./gradlew" ]; then
         rm -rf gradle-${GRADLE_VERSION}-bin.zip
     fi
 
-    gradle wrapper --gradle-version ${GRADLE_VERSION} ${gradle_prop} || fail "gradle: wrapper failed"
+    gradle wrapper ${gradle_prop} || fail "gradle: wrapper failed"
 
     chmod a+x gradlew
 fi



More information about the Android mailing list