-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
BUILD.zh
djwjb edited this page Aug 13, 2024
·
2 revisions
环境
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