[3.4.0][Fix]修复Tts的Java层崩溃

This commit is contained in:
chenfufeng
2023-07-24 11:57:02 +08:00
parent d654e49679
commit 17be77deb6

View File

@@ -57,4 +57,15 @@ class CrashFix {
t.printStackTrace()
}
}
@Insert
@TargetClass("com.aispeech.lite.tts.n")
@TargetMethod(methodName = "c")
fun fixTtsCrash() {
try {
Origin.callVoid()
} catch (t: Throwable) {
t.printStackTrace()
}
}
}