Force javac to use UTF-8

The source files are encoded in UTF-8.

Refs <https://github.com/Genymobile/scrcpy/issues/4639#issuecomment-2467206100>

Signed-off-by: Romain Vimont <rom@rom1v.com>
This commit is contained in:
Simon Chan 2024-11-11 12:16:18 +08:00 committed by Romain Vimont
parent eff5b4b219
commit c0e2e27cf9

View File

@ -68,7 +68,7 @@ done
echo "Compiling java sources..."
cd ../java
javac -bootclasspath "$ANDROID_JAR" \
javac -encoding UTF-8 -bootclasspath "$ANDROID_JAR" \
-cp "$LAMBDA_JAR:$GEN_DIR" \
-d "$CLASSES_DIR" \
-source 1.8 -target 1.8 \