2
BUILD.zh
djwjb edited this page 2024-08-13 14:41:49 +08:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

环境

win

git-bash

jdk>=11

cp build_without_gradle.sh win_build_without_gradle.sh

修改

javac -bootclasspath "$ANDROID_JAR" \
    -cp "$LAMBDA_JAR:$GEN_DIR" \
    -d "$CLASSES_DIR" \
    -source 1.8 -target 1.8 \
    ${SRC[@]}

javac -bootclasspath "$ANDROID_JAR;$LAMBDA_JAR" \
    -sourcepath "$GEN_DIR" \
    -d "$CLASSES_DIR" \
    -encoding utf-8 \
    -source 1.8 -target 1.8 \
    ${SRC[@]}

最后

ANDROID_HOME=F:/sdk ./win_build_without_gradle.sh

需要jdk>=11;

如果默认是J8找到jdk11的路径插入j8前

PATH=/d/jdk11/jre/bin:$PATH