Skip to content

Display and control your Android device

Fix handling of non-integer ANDROID_PLATFORM

Yanf3d4fde15b51
diff --git a/server/build_without_gradle.sh b/server/build_without_gradle.sh
index 8c572f62..bb477a32 100755
--- a/server/build_without_gradle.sh
+++ b/server/build_without_gradle.sh
@@ -86,7 +86,7 @@ javac -encoding UTF-8 -bootclasspath "$ANDROID_JAR" \
echo "Dexing..."
cd "$CLASSES_DIR"
-if [[ $PLATFORM -lt 31 ]]
+if [[ "${PLATFORM%%.*}" -lt 31 ]]
then
# use dx
"$BUILD_TOOLS_DIR/dx" --dex --output "$BUILD_DIR/classes.dex" \