1 Reply Latest reply on Jun 27, 2018 10:18 AM by Peter Arcuri

    getEMDKManager fatal error

    Laurent Malmendier



      I followed the Getting Started guide to integrate the emdk library in my project. When I try to launch the app i get the following crash:


      A/art: art/runtime/barrier.cc:90] Check failed: count_ == 0 (count_=-1, 0=0) Attempted to destroy barrier with non zero count

          art/runtime/runtime.cc:366] Runtime aborting --- recursively, so no thread-specific detail!


      A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 8593 (my.app)


      I have read this link: getEMDKManager method - EMDKManager object request fails (that guy has the same issue)

      But the answer cannot be used in my project. The answer is that to add the library to the project, we have to do it this way: EMDK for Android Programming Practices - Zebra Technologies Techdocs


      But we are working as a team on this project, therefor I cannot put the path "/user/MyUserName/..." in the build.gradle

      It would not compile on another computer


      How can I use the library by adding it directly to the project, without referencing a path to my computer file system ?


      Thanks for the help

        • Re: getEMDKManager fatal error
          Peter Arcuri

          To embedded the EMDK library in your project, simply place the com.symbol.emdk.jar library file in your project's app/libs folder.


          Then in the gradle file call the EMDK library from your project's libs folder as follows:


          dependencies {

              compile fileTree(dir: 'libs', include: ['*.jar'], exclude: ['com.symbol.emdk.jar'])

              provided fileTree(dir: 'libs', include: ['com.symbol.emdk.jar'])