Home Features Docs Blog Support GitHub

Error (No field __natjCache in class)


#1

Hi,

I got the following error when I use “AVCaptureDevice.requestAccessForMediaTypeCompletionHandler”.
if you know hot to solve this problem, please let me know how to do it.

[Error Message]
No field __natjCache in class Lcom/xxx; (declaration of ‘xxx’ appears in build/moe/main/dex/classes.jar)

[Source code]
AVCaptureDevice.requestAccessForMediaTypeCompletionHandler(AVFoundation.AVMediaTypeVideo(),new AVCaptureDevice.Block_requestAccessForMediaTypeCompletionHandler() {
public void call_requestAccessForMediaTypeCompletionHandler(boolean var1) {
if (var1) {
//Logic
}
}
}
);