Created BUILD.zh (markdown)
parent
cb3ff9c9bb
commit
f312e8e25a
34
BUILD.zh.md
Normal file
34
BUILD.zh.md
Normal file
@ -0,0 +1,34 @@
|
||||
环境
|
||||
|
||||
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`
|
Loading…
x
Reference in New Issue
Block a user