github加速
java
bash
# ubuntu20.04 安装 openjdk-17-jdk
sudo apt install openjdk-17-jdk
java -version
javac -version
which java
- 参考 openjdk
gradle换源
- 修改gradle-wrapper.properties
groovy
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
#distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip
# 换源
distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-8.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Android CMAKE_SYSROOT
bash
-DCMAKE_SYSROOT=$android_ndk_home/toolchains/llvm/prebuilt/linux-x86_64/sysroot