App crashing when SweetBlue dependency is added
-
I am trying to evaluate the SweetBlue ble kit but am unable to get it to work. I am using Android studio 4.0 and a brand new project. I have obtained a trial key for my packageId and have placed it in the assets folder. When I add the SweetBlue dependencies then launch the app, I get a RuntimeException: Unable to instantiate activity. Simply remove the SweetBlue dependencies and the app launches fine to the blank "Hello World" screen.
Am I missing something with integration??? I have not implemented any of the kit... just simply added the dependencies and the sweetblue_api_key.txt file.
-
Issue solved... make sure to add Java 8 compatibility to project.
compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }