How to reference Symbol EMDK while targeting Lollipop or Higher

Is there a way of using the symbol EMDK libraries while compiling the Android project with API 23 ?

 

I have a working sample with EMDK scanning with a build.gradle file that reads like this:

android {

  compileSdkVersion 'Symbol Technologies, Inc.:EMDK 3.1 (API 16):16'
   buildToolsVersion "23.0.1"

 

When compiling with the Symbol EMDK 3.1 API16 it works fine.

 

In my case, I target not only Enterprise units, so I am always compiling with the latest Sdk available.

So I am trying to change the sdk to 23 and add the com.symbol.emdk.jar as a dependency of the project but my app fail to run.

compileSdkVersion 23
buildToolsVersion "23.0.1"

 

Is there a way to add a reference to the EMDK and still target the latest SDK ?