错误日志如下:
java.lang.VerifyError: Verifier rejected class com.tencent.youtu.ytagreflectlivecheck.jni.YTAGReflectLiveCheckJNIInterface: void com.tencent.youtu.ytagreflectlivecheck.jni.YTAGReflectLiveCheckJNIInterface.compressTest(android.graphics.Bitmap, int) failed to verify: void com.tencent.youtu.ytagreflectlivecheck.jni.YTAGReflectLiveCheckJNIInterface.compressTest(android.graphics.Bitmap, int): [0x5C] register v6 has type Precise Reference: android.graphics.Bitmap but expected Reference: java.io.FileOutputStream (declaration of 'com.tencent.youtu.ytagreflectlivecheck.jni.YTAGReflectLiveCheckJNIInterface' appears in /data/app/com.baihe-4yGhwuP8dOY2BCDIx36YtA==/base.apk!classes32.dex)
at com.tencent.youtu.ytagreflectlivecheck.jni.YTAGReflectLiveCheckJNIInterface.FRVersion
at com.tencent.cloud.huiyansdkface.facelight.net.model.request.actlight.SelectData.<init>
at com.tencent.cloud.huiyansdkface.facelight.net.model.request.LoginRequestParam.<init>
at com.tencent.cloud.huiyansdkface.facelight.net.LoginRequest.requestExec
at com.tencent.cloud.huiyansdkface.facelight.provider.WbFaceLiveImpl.login
at com.tencent.cloud.huiyansdkface.facelight.process.h.a.a
at com.tencent.cloud.huiyansdkface.facelight.process.d.a
at com.tencent.cloud.huiyansdkface.facelight.process.d.a
at com.tencent.cloud.huiyansdkface.facelight.process.d.b
at com.tencent.cloud.huiyansdkface.facelight.api.WbCloudFaceVerifySdk.initSdk
原因:app内部使用robust插桩sdk,对腾讯sdk插入了代码,导致验证拒绝崩溃。
解决方案:插桩类过滤掉腾讯包,解决