更新编译版本为 甲方提供的版本

This commit is contained in:
xsl
2025-11-08 20:10:49 +08:00
parent 0c7455650d
commit 9f29667b73
7 changed files with 17 additions and 10 deletions
+3 -3
View File
@@ -38,13 +38,13 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
// 添加 Kotlin 编译选项
kotlinOptions {
jvmTarget = '21' // 与 Java 版本保持一致
jvmTarget = '17' // 与 Java 版本保持一致
}
kotlin {
@@ -271,4 +271,11 @@ public class FaceActivity extends GameActivity implements FaceLandmarkerHelper.L
Log.i("FaceActivity", "ChangeState:" + json);
ChangeStateCpp(json);
}
// 添加这个缺失的方法
@Override
public void onEmpty() {
// 当没有检测到人脸时的处理逻辑
Log.d(TAG, "No face detected in the current frame");
}
}