ndk
ndk sdk要单独下载和android sdk不同
https://developer.android.google.cn/ndk/downloads?hl=zh-cn
解压后添加ndk路径到path即可
gradle
gradle下载太慢使用国内镜像
distributionUrl=https://mirrors.cloud.tencent.com/gradle/gradle-6.7.1-all.zip
执行gradlew.bat
gradlew //检查环境,下载gradle依赖项
gradlew tasks //查看可执行任务
gradlew build //编译
build.gradle配置,cmake使用add_library编译静态库
defaultConfig {applicationId "com.sample.textureview"minSdkVersion 24targetSdkVersion 28externalNativeBuild