uts插件 android里引用了
import ContextCompat from 'androidx.core.content.ContextCompat';
然后这样使用
const activity = UTSAndroid.getUniActivity() as FragmentActivity;
const executor : Executor = ContextCompat.getMainExecutor(activity);
const biometricPrompt = new BiometricPrompt(activity, executor, new MyAuthenticationCallback(options));
不知道为啥编译就报错:error: Unresolved reference: getMainExecutor 但是重新制作自定义基座后就好了 不过一改代码编译提示更新三方依赖文件后又出现了 ,
1 个回复
DCloud_Android_DQQ
此问题已确认。 HBuilder X 4.26 会修复此问题
https://issues.dcloud.net.cn/pages/issues/detail?id=6345