Fix read NDK from env

This commit is contained in:
世界 2024-12-30 21:14:51 +08:00
parent 44176a840b
commit c493467ebd
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -14,6 +14,11 @@ android {
ndkVersion "28.0.12674087"
def ndkPathFromEnv = System.getenv("ANDROID_NDK_HOME")
if (ndkPathFromEnv != null) {
ndkPath ndkPathFromEnv
}
ksp {
arg("room.incremental", "true")
arg("room.schemaLocation", "$projectDir/schemas")