Repository: pytorch
Issue:  java.lang.ExceptionInInitializerError         at org.pytorch.NativePeer.initHybrid(Native Method)
Labels: oncall: mobile

### 🐛 Describe the bug

 I have used  Jitsi_meet plugin on the flutter side and PyTorch dependency in the android module. So, I have faced a duplication issue in **com.facebook.fbjni** classes then I excluded the Facebook module from PyTorch dependency. After processing the image from the Andriod module side. I'm getting the below issue.
 
 **My dependency** :

 implementation("org.pytorch:pytorch_android:1.10.0"){
        exclude group: 'com.facebook.fbjni'
    }

 implementation("org.pytorch:pytorch_android_torchvision:1.10.0"){
        exclude group: 'com.facebook.fbjni'
    }


**My issue** :

  java.lang.ExceptionInInitializerError
        at org.pytorch.NativePeer.initHybrid(Native Method)
        at org.pytorch.NativePeer.<init>(NativePeer.java:27)
        at org.pytorch.Module.load(Module.java:28)
        at org.pytorch.Module.load(Module.java:38)
        at com.healthcubed.ezdxlib.bluetoothHandler.RDTClassifier.processRDTImage(Unknown Source:6)
        at com.healthcubed.ezdxlib.bluetoothHandler.EzdxDataParser.sendAIResult(Unknown Source:2)
        at com.healthcubed.ezdxlib.bluetoothHandler.EzdxDataParser.handleImageData(Unknown Source:147)
        at com.healthcubed.ezdxlib.bluetoothHandler.BluetoothClassicService.rawTestDataParser(Unknown Source:130)
        at com.healthcubed.ezdxlib.bluetoothHandler.BluetoothClassicService.access$800(Unknown Source:0)
        at com.healthcubed.ezdxlib.bluetoothHandler.BluetoothClassicService$ConnectedThread.dispatchBuffer(Unknown Source:42)
        at com.healthcubed.ezdxlib.bluetoothHandler.BluetoothClassicService$ConnectedThread.run(Unknown Source:23)
     Caused by: java.lang.RuntimeException: SoLoader.init() not yet called
        at com.facebook.soloader.SoLoader.assertInitialized(SoLoader.java:781)
        at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:505)
        at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:484)
        at com.facebook.jni.HybridData.<clinit>(HybridData.java:23)
        at org.pytorch.NativePeer.initHybrid(Native Method)
        at org.pytorch.NativePeer.<init>(NativePeer.java:27)
        at org.pytorch.Module.load(Module.java:28)
        at org.pytorch.Module.load(Module.java:38)
        at com.healthcubed.ezdxlib.bluetoothHandler.RDTClassifier.processRDTImage(Unknown Source:6)
        at com.healthcubed.ezdxlib.bluetoothHandler.EzdxDataParser.sendAIResult(Unknown Source:2)
        at com.healthcubed.ezdxlib.bluetoothHandler.EzdxDataParser.handleImageData(Unknown Source:147)
        at com.healthcubed.ezdxlib.bluetoothHandler.BluetoothClassicService.rawTestDataParser(Unknown Source:130)
        at com.healthcubed.ezdxlib.bluetoothHandler.BluetoothClassicService.access$800(Unknown Source:0)
        at com.healthcubed.ezdxlib.bluetoothHandler.BluetoothClassicService$ConnectedThread.dispatchBuffer(Unknown Source:42)

**if anyone has an idea about this issue. Please, post your suggestions and solutions.**

### Versions

org.pytorch:pytorch_android:1.10.0 and org.pytorch:pytorch_android_torchvision:1.10.0