You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect to be able to use my library and underlying Nordic libraries.
The app using my library will not work, unless I also add the same 2 nordic libraries in its own build.gradle.
What am I missing?
java.lang.NoClassDefFoundError: Failed resolution of: Lno/nordicsemi/android/support/v18/scanner/BluetoothLeScannerCompat;
at io.sensoria.sdk.Scanner.lambda$start$9$io-sensoria-sdk-Scanner(Scanner.java:330)
at io.sensoria.sdk.Scanner$$ExternalSyntheticLambda4.run(Unknown Source:2)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.lang.ClassNotFoundException: Didn't find class "no.nordicsemi.android.support.v18.scanner.BluetoothLeScannerCompat" on path: DexPathList[[zip file "/data/app/~~ar3vAE4BarZp-xIAFkR4Ag==/io.sensoria.configurator-qzGFJlQd4u-R3t4pvtMPIQ==/base.apk"],nativeLibraryDirectories=[/data/app/~~ar3vAE4BarZp-xIAFkR4Ag==/io.sensoria.configurator-qzGFJlQd4u-R3t4pvtMPIQ==/lib/arm64, /data/app/~~ar3vAE4BarZp-xIAFkR4Ag==/io.sensoria.configurator-qzGFJlQd4u-R3t4pvtMPIQ==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64, /product/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at io.sensoria.sdk.Scanner.lambda$start$9$io-sensoria-sdk-Scanner(Scanner.java:330)
at io.sensoria.sdk.Scanner$$ExternalSyntheticLambda4.run(Unknown Source:2)
at java.lang.Thread.run(Thread.java:1012)
The text was updated successfully, but these errors were encountered:
mmacagno
changed the title
ClassNotFound
Failed to resolve BluetoothLeScannerCompat when used through a library
May 1, 2023
Hello.
I built a JAR library to provide Bluetooth capabilities to our Android apps.
The build.gradle file of our library has the following declaration:
the proguard file has:
I would expect to be able to use my library and underlying Nordic libraries.
The app using my library will not work, unless I also add the same 2 nordic libraries in its own build.gradle.
What am I missing?
The text was updated successfully, but these errors were encountered: