bluetooth-gatt-parser icon indicating copy to clipboard operation
bluetooth-gatt-parser copied to clipboard

No interface method stream()

Open yosoycody opened this issue 5 years ago • 1 comments

On on older Android device running Android 6, I'm seeing the following crash:

java.lang.NoSuchMethodError: No interface method stream()Ljava/util/stream/Stream; in class Ljava/util/Set; or its super classes (declaration of 'java.util.Set' appears in /system/framework/core-libart.jar)
        at org.sputnikdev.bluetooth.gattparser.spec.BluetoothGattSpecificationReader.loadExtensionsFromCatalogResources(BluetoothGattSpecificationReader.java:263)
        at org.sputnikdev.bluetooth.gattparser.spec.BluetoothGattSpecificationReader.<init>(BluetoothGattSpecificationReader.java:92)
        at org.sputnikdev.bluetooth.gattparser.BluetoothGattParserFactory.getSpecificationReader(BluetoothGattParserFactory.java:59)
        at org.sputnikdev.bluetooth.gattparser.BluetoothGattParserFactory.getDefault(BluetoothGattParserFactory.java:74)

yosoycody avatar Feb 21 '20 02:02 yosoycody

Thats because stream() works only on higher java or sdk version.

mimoccc avatar Aug 22 '21 10:08 mimoccc