esp-idf-provisioning-android icon indicating copy to clipboard operation
esp-idf-provisioning-android copied to clipboard

java.lang.NoClassDefFoundError: EventBus;

Open matteocollina opened this issue 5 months ago • 0 comments

Checklist

  • [X] Checked the issue tracker for similar issues to ensure this is not a duplicate
  • [X] Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • [X] Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

When my device is searching for wifi networks, the app crashes.

Actual behavior (suspected bug)

java.lang.NoClassDefFoundError: Failed resolution of: Lorg/greenrobot/eventbus/EventBus;

Error logs or terminal output

E/JavaBinder: *** Uncaught remote exception!  (Exceptions are not yet supported across processes.)
E/JavaBinder: java.lang.NoClassDefFoundError: Failed resolution of: Lorg/greenrobot/eventbus/EventBus;
E/JavaBinder: 	at com.espressif.provisioning.transport.BLETransport$1.onCharacteristicRead(BLETransport.java:338)
E/JavaBinder: 	at android.bluetooth.BluetoothGatt$1$6.run(BluetoothGatt.java:394)
E/JavaBinder: 	at android.bluetooth.BluetoothGatt.runOrQueueCallback(BluetoothGatt.java:780)
E/JavaBinder: 	at android.bluetooth.BluetoothGatt.access$200(BluetoothGatt.java:41)
E/JavaBinder: 	at android.bluetooth.BluetoothGatt$1.onCharacteristicRead(BluetoothGatt.java:388)
E/JavaBinder: 	at android.bluetooth.IBluetoothGattCallback$Stub.onTransact(IBluetoothGattCallback.java:246)
E/JavaBinder: 	at android.os.Binder.execTransactInternal(Binder.java:1024)
E/JavaBinder: 	at android.os.Binder.execTransact(Binder.java:997)
E/JavaBinder: Caused by: java.lang.ClassNotFoundException: Didn't find class "org.greenrobot.eventbus.EventBus" on path: DexPathList[[zip file "/data/app/com.effegibi.myeffe-Qx-yjDKLUmWJkELlu1j9Vw==/base.apk"],nativeLibraryDirectories=[/data/app/com.effegibi.myeffe-Qx-yjDKLUmWJkELlu1j9Vw==/lib/arm64, /data/app/com.effegibi.myeffe-Qx-yjDKLUmWJkELlu1j9Vw==/base.apk!/lib/arm64-v8a, /system/lib64, /product/lib64]]
E/JavaBinder: 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:230)
E/JavaBinder: 	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
E/JavaBinder: 	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/JavaBinder: 	... 8 more

Steps to reproduce the behavior

device.get().scanNetworks(new WiFiScanListener() {
                  @Override
                  public void onWifiListReceived(ArrayList<WiFiAccessPoint> wifiList) {
                      System.out.println("[BINDING_ANDROID]SCAN NETWORKS COMPLETED");
                      networksSsid = wifiList.stream().map(WiFiAccessPoint::getWifiName).collect(Collectors.joining(","));
                      isNetworkScanCompleted = true;
                  }

                  @Override
                  public void onWiFiScanFailed(Exception e) {
                      System.out.println("[BINDING_ANDROID]SCAN NETWORKS FAILED");
                      System.out.println(e);
                      System.out.println("[BINDING_ANDROID]------------------------");
                      isNetworkScanCompleted = true;
                  }
              });

Project release version

2.2.1

System architecture

ARM 64-bit (Apple M1/M2, Raspberry Pi 4/5)

Operating system

MacOS

Operating system version

Android

Shell

ZSH

Additional context

No response

matteocollina avatar Sep 10 '24 08:09 matteocollina